.slider {
    position: relative;
    height: 350px;
    overflow: hidden;
    /*border-radius: 12px;*/
    /*margin: 20px;*/
}

/* SLIDES */
/* FADE EFFECT */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    background-size: cover;
    background-position: center;
}

/* ACTIVE */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* BACKGROUND IMAGES */
.slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475');
}

.slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c');
}
/* SLIDE 2 BACKGROUND (LIGHT GREEN) */
.slide:nth-child(2) {
    background: #d1fa98;
}
/* TEXT COLOR FIX FOR LIGHT BG */
.slide:nth-child(2) .overlay {
    background: rgba(255,255,255,0.7);
    color: #0b2a44;
}

.slide:nth-child(2) .highlight {
    color: #2e7d32;
}

.slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1545235617-9465d2a55698');
}

/* OVERLAY */
.overlay {
    background: rgba(11,42,68,0.75);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.overlay h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 14px;
    max-width: 700px;
}

/* TALLY LOGO */
.tally-logo {
    height: 100px;
    margin-bottom: 2px;
}

/* BUTTON */
.btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: #f57c00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* MOBILE */
@media (max-width: 768px) {
    .slider {
        height: 250px;
    }

    .overlay h1 {
        font-size: 18px;
    }

    .overlay p {
        font-size: 12px;
    }
}
/* HIGHLIGHT TEXT */
.highlight {
    color: #ff9800;
    font-weight: 600;
}

/* ARROWS */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 22px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.arrow:hover {
    background: #f57c00;
}

/* ZOOM EFFECT */
.slide {
    transform: scale(1.05);
}

.slide.active {
    transform: scale(1);
    transition: opacity 1.2s ease-in-out, transform 5s ease;
}
