.caption {
    position: relative;
    z-index: 600;
    padding: 25px 100px;
    width: calc(100% - 200px);
    margin: 0 auto;
    background-color: rgba(5, 14, 35, 0.5);
    font-size: 1.1em;
}

.caption a {
    text-decoration: none;
    color: #b49226;
}

.caption a:hover {
    text-decoration: underline;
}

.sliderContainer {
    position: relative;
    z-index: 600;
}

.halfWidth {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.halfWidth h2 {
    margin: 25px 0;
    text-align: center;
}

.halfWidth p {
    width: 400px;
    margin-bottom: 25px;
}

.firstHalf, .secondHalf {
    padding: 25px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
    filter: blur(1px) brightness(0.8);
    transition-duration: 0.25s;
}

.firstHalf.selected, .secondHalf.selected {
    filter: blur(0) brightness(1);
    width: 75%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

.firstHalf.selected {
    background-color: #785b0a;
}

.secondHalf.selected {
    background-color: #1b2638;
}

.sliderSection {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 600;
}

.slideContainer {
    height: auto;
    width: 75%;

    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.slide {
    width: 300px;
    box-shadow: 0 0 10px black;
    border-radius: 20px;
    height: 300px;
    margin: 0 50px;
    display: flex;
    scale: 0.8;
    transition: width 0.25s, height 0.25s, scale 0.5s;
}

.firstHalf .slide {
    background-image: linear-gradient(45deg, #b79027, #785b0a);
}

.secondHalf .slide {
    background-image: linear-gradient(45deg, #07568b, #1b2638);
}

.slideTitle {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.slideTitle img {
    opacity: 0.5;
}

.slideTitle h2 {
    padding: 0 10px;
    text-align: center;
}

.slideContent {
    min-width: calc(490px - 100px);
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-wrap: no-wrap;
}

.selected .slide:hover {
    width: 800px;
    scale: 1;
}

.slideInner {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 15px;
    margin: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    overflow: hidden;
}

/* Media queries */
@media (max-width: 1500px) {
    .halfWidth {
        max-width: 75vw;

        p {
            width: calc(100% - 150px);
            text-align: center;
        }
    }

    .sliderSection {
        gap: 10px;
    }

    .slideContainer {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .slide {
        margin: 0 ;
        width: calc(100% - 50px);
        height: 200px;
        scale: 1;

        .slideInner {
            flex-direction: column;

            .slideTitle {
                min-width: 0;
                height: 200px;
                display: flex;
                justify-content: center;
                align-items: center;

                img {
                    width: 75px;
                    height: 80px;
                    margin-top: 20px;
                }

                h2 {
                    font-size: 2em;
                }
            }

            .slideContent {
                padding: 15px;
                min-width: 0;
                height: 200px;
                box-sizing: border-box;

                p {
                    opacity: 0;
                    width: auto;
                    margin: 0;
                    overflow: hidden;
                    transition: opacity 0.5s;
                }
            }
        }
    }



    .halfWidth.selected {

        .slide:hover {
            width: calc(100% - 50px);
            height: 400px;

            p {
                opacity: 1;
            }
        }
    }
}

@media (max-width: 768px) {
    .caption {
        padding: 25px 50px;
        width: calc(100% - 100px);
    }
    
    .sliderContainer {
        flex-direction: column-reverse;
    }

    .halfWidth {
        max-width: none;
        width: 100% !important;
        padding: 25px 0;
    }

    .firstHalf, .secondHalf {
        filter: blur(0) brightness(1);
        box-shadow: none !important;
    }
    
    .firstHalf {
        background-color: #785b0a;
    }
    
    .secondHalf {
        background-color: #1b2638;
    }
}

@media (max-width: 450px) {
    .slideContent {
        padding: 5px !important;
    }
    p {
        font-size: 0.8em;
    }
}