* {
    margin: 0;
    padding: 0%;
    box-sizing: border-box;
}

:root {
    --sma-blue: rgb(8, 51, 143);
    --sma-red: rgb(186, 18, 43);
    --sma-light-red: rgba(186, 18, 43, 0.1);
    --sma-light-red-2: rgba(186, 18, 43, 0.2);
    --sma-title-red: rgba(186, 18, 43, 0.5);
    --sma-green: rgb(3,56,39);
    --sma-green-light: rgba(3,56,39,0.4);
    --sma-green-light-2: rgba(3,56,39,0.6);
    --text: 1.5rem;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    animation: opening 1s ease-in-out;
}

h1,
h2 {
    font-family: trajan-pro-3, serif;
}

.button {
    padding: 2rem;
    border: 2px solid var(--sma-red);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 2rem;
    color: var(--sma-red);
    background-color: var(--sma-light-red);
    cursor: pointer;
}

.button:hover {
    background-color: var(--sma-light-red-2);
}

.button:active {
    background-color: white;
}

.emphasize {
    font-style: italic;
}

/* Nav Section */
.main-head {
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    /* position: relative; */
}

#title-line {
    height: 16vh;
    padding: 1rem;
    display: flex;
    justify-content: flex-start;
    background-color: #00539f;
}

#logo-container {
    height: 100%;
    padding-left: 10px;
}

#logo-container img {
    height: 100%;
    object-fit: cover;
}

#title-container {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 2rem;
}

#title-container h1 {
    font-weight: 700;
    font-style: normal;
    font-size: 1.5rem;
    font-size: clamp(1.5rem, 1.32rem + 0.9vw, 2.4rem);
    color: white;
}

.welcome-section {
    display: flex;
    height: 30vh;
}

.welcome-text {
    width: 100%;
    flex: 1 1 40rem;
    text-align: right;
    padding-left: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.welcome-text p {
    font-size: clamp(1rem, 0.6rem + 0.7vw, 1.5rem);
    padding-top: 2rem;
    width: 100%;
    text-align: left;
}

.welcome-text h2 {
    padding-top: 2rem;
    font-size: clamp(1.5rem, -0.3rem + 3.6vw, 4rem);
    color: var(--sma-red);
}

.button-container {
    width: 80%;
}
.button-container button {
    width: 45%;
    margin: 0 2%;
    font-size: 1.2rem;
    /* font-size: clamp(1rem, 0.2857142857142857rem + 1.4285714285714286vw, 2rem); */
}

#scroll-text {
    padding-bottom: 0rem;
}

#divider-arrow {
    width: 80%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#divider-arrow hr {
    width: 95%;
    height: 1px;
    background-color: var(--sma-red);
    border: none;
}

#divider-arrow p {
    width: 5%;
    color: var(--sma-red);
}

.welcome-video {
    flex: 1 1 40rem;
    position: relative;
    z-index: 1;
    width: 50%;
    object-fit: cover;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.welcome-video video {
    width: 90%;
    height: 90%;
}

.section-title {
    width: 100%;
    padding: 2rem 4rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: white;
    background-color: #00539f;
}

.class-list {
    border-top: 1px solid var(--sma-light-red-2);
    border-bottom: 1px solid var(--sma-light-red-2);
    margin-bottom: 1rem;
}

.class-title {
    width: 100%;
    padding: 1rem 4rem;
    font-size: 1.5rem;
    color: #666666;
    background-image: linear-gradient(to bottom, var(--sma-title-red), white);
}

.class-list p {
    padding: 2rem 0rem 1rem 4rem;
    font-size: 1.2rem;
}

.cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 4rem;
}

.card {
    border: 1px solid var(--sma-light-red-2);
    /* Add shadows to create the "card" effect */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    width: 100px;
    margin: 1.5rem;
}

/* On mouse-over, add a deeper shadow */
.card img:hover {
    filter: grayscale(0);
}

.card img {
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    cursor: pointer;
}

/* Add some padding inside the card container */
.avatar-name {
    padding: 5px;
    text-align: center;
}

footer {
    background-color: #00539f;
    display: flex;
    justify-content: flex-end;
    height: 120px;
    width: 100%;
}

footer img {
    padding: 1rem 8rem 1rem 2rem;
    height: 100%;
    object-fit: contain;
}

#contact-info {
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    align-self: center;
}

.name {
    font-weight: 700;
}

.space-below {
    padding-bottom: 1rem;
}

/* ***** BAck to Top Button ***** */
#toTopBtn {
    display: none;  /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 0;
    width: 50px;
    height: 50px;
    z-index: 99;
    border-radius: 10px 0 0 10px;
    border-left: 2px solid var(--sma-red);
    border-top: 2px solid var(--sma-red);
    border-bottom: 2px solid var(--sma-red);
    border-right: 0;
    outline: none;
    background-color: var(--sma-title-red);
    color: white;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    animation: easeButton 500ms ease-in-out both;
}

.slideOut {
    animation: easeButton 500ms ease-in-out both reverse;
}

#toTopBtn:hover {
    background-color: var(--sma-red);
    /* Add a dark-grey background on hover */
}

#toTopBtn:active {
    background-color: var(--sma-light-red);
    /* Add a dark-grey background on hover */
}

/* //////  Animation  ////// */

/* /// Animate fade-in of page /// */
@keyframes opening {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ***** Animate entrance of to top button ***** */
@keyframes easeButton {
    from {
        right: -50px;
    }

    to {
        right: 0;
    }
}

/* ////// MEDIA QUERIES ////// */
@media only screen and (max-width: 1000px) {
    .welcome-section {
        background-image: url(../images/background.jpg);
        background-position: right;
        background-size: auto 100%;
        background-repeat: no-repeat;
    }

    .welcome-video {
        display: none;
    }

    .welcome-text {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
        align-items: center;
    }

    .welcome-text p {
        width: 80%;
        font-size: 1.4rem;
    }

    .welcome-text h2 {
        font-size: 2.8rem;
    }

    .section-title,
    .class-title {
        text-align: center;
    }
}