/* Styles exclusive to Index page */

.hero {
    position: relative;
    height: 600px;
    width: 100vw;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.hero .swiper-container,
.hero .swiper-wrapper,
.hero .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero .swiper-slide {
    background-position: center;
    background-size: cover;
}

#heroContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 20px;
    width: 80%;
    max-width: 1000px;
}

.hero h1 {
    font-size: 2.5em;
    border-bottom: 2px solid white;
    width: 60%;
    margin: auto;
    padding: 20px;
}

#heroButtons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin: auto;
    margin-top: 30px;
    width: 70%;
}

.banner {
    width: 100%;
    background-color: #E60B2B;
    color: white;
    text-align: center;
    padding: 10px 0px;
    margin-top: 10px;
}

.banner h1 {
    padding: 0px 20px;
}

.mainContent {
    max-width: 2400px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: auto;
    width: 80%;
    background-color: #ffffff;
}

.mainContent p {
    font-size: large;
}

.mainContent h2 {
    text-align: center;
}

.mainContent * {
    text-align: center;
}

#topMain {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: space-around;
    align-items: center;
    padding: 0px 75px;
    margin: 20px 0px;
}

#topLeftMain,
#topRightMain {
    flex: 1;
    position: relative;
    min-width: 410px;
    margin: 20px;
}

#topLeftLinks {
    padding: 10px 0px;
    background-color: #dddddddd;
    border-radius: 5px;
}

#topLeftMain hr{
    width: 80%;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 20px;
}

#topLeftMain p{
    font-size: larger;
    margin-bottom: 20px;
}

#topRightMain img{
    max-height: 300px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.mediumImage {
    max-height: min(350px, 35vw);
}

#bottomMain {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    margin: 20px 0px 50px 0px;
}

.infoCard {
    position: relative;
    flex: 1 1 50%;
    min-width: 350px;
    max-width: 40%;
    text-align: center;
    padding: 20px;
    background-color: #CCCCCC;
    border: 3px solid #0030AC;
    border-radius: 20px;
}

.infoCard hr{
    margin: auto;
    margin-bottom: 5px;
    width: 70%;
}

.infoCard p{
    min-height: 4em;
}

.infoCard a{
    margin-bottom: 10px;
}

.cardImage{
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40vh;
    object-fit: cover;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 139, 0.5);
    background-blend-mode: multiply;
    border-radius: 10px;
}

.cardImage:hover{
    background-color: rgba(0, 0, 0, 0);
    box-shadow: 0px 0px 20px white;
    transition: all 0.2s ease-in-out;
    color: black;
}

.overlayText {
    padding: 10px 25px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}
.overlayText a{
    color: white;
    font-size: xx-large;
    font-weight: bold;
    text-decoration: none;
}

/* Media Queries */

@media (min-width: 2000px){
    .cardImage{
        height: 20vh;
    }
}

@media (max-width: 1312px){
    #topMain .fadeOverlayLeft{
        display: none;
    }
}

@media (max-width: 1100px){
    .infoCard{
        max-width: 70%;
    }
    .mainContent{
        width: 95%;
    }

    #topMain{
        padding: 10px 30px;
    }
}

@media (max-width: 700px){
    #heroButtons {
       width: 100%;
    }
    #heroContent{
        width: 100%;
    }
}

/* Compacts hero/main content to fit mobile */
@media (max-width: 550px) {
    .hero{
        height: 400px;
    }
    .hero h1 {
        width: 90%;
        font-size: 2em;
    }
    #heroButtons {
        width: 100%;
    }
    .mainContent{
        width: 90vw;
    }
    .mainContent p {
        font-size: medium;
    }
    .mainContent *{
        padding-left: 0px;
        padding-right: 0px;
    }
    #topMain{
        padding: 0px 30px;
    }
    #topLeftMain,
    #topRightMain {
        min-width: 300px;
        margin: 10px 0px;
    }
    #topRightMain img{
        display: none;
    }
    #bottomMain{
        gap: 20px;
    }
    .infoCard{
        max-width: 100%;
        padding: 15px;
    }
    .overlayText{
        font-size: x-large;
        padding: 5px;
    }
    .fakeButtonLarge {
        font-size: large;
        padding: 5px;
    }
    .fakeButton{
        padding: 5px;
    }
}