:root {
    --primary-color: #E4DCC8;
    --secondary-color: #594128;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Added for smooth scrolling to anchor links */
}

@font-face {
    font-family: 'DancingScript';
    src: url('../fonts/DancingScript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    align-content: center;
    background-color: var(--secondary-color);
}

h1 {
    position: relative;
    margin: 0px 32px 16px 32px;
    color: white;
    text-align: center;
    font-family: 'DancingScript', sans-serif;
    font-size: 2.5em;
}

h2 {
    position: relative;
    padding: 0;
    margin: 0;
    color: white;
    text-align: center;
    font-family: 'Verdana', sans-serif;
    margin: 16px 64px 16px 64px;
    font-size: 1.2em;
}

h3 {
    position: relative;
    padding: 0;
    margin: 0;
    color: white;
    text-align: center;
    font-family: 'Verdana', sans-serif;
    margin: 16px 64px 16px 64px;
    font-size: 1em;
}

p {
    position: relative;
    padding: 16px;
    margin: 0;
    color: white;
    text-align: center;
    font-family: 'Verdana', sans-serif;
}

/* Buttons */

#custom-button {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(166, 124, 124, 0);
    width: 200px;
    margin: 16px 32px;
    padding: 12px;
    border-radius: 32px;
    background-color: var(--secondary-color);
    font-family: 'Verdana', sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    border: 5px solid var(--primary-color);
    text-align: center;
    color: white;
}

#custom-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
}

a {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgb(0, 0, 0, 0);
    text-decoration: none;
}

/* Images of Staff */
.portrait {
    max-width: 50%;
    margin: 32px auto 0px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    border-radius: 100%;
}

/* Animation styles */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Less than 650px */
@media screen and (max-width: 650px) {
    h2 {
        margin: 16px 32px;
        font-size: 1em;
    }

    h3 {
        margin: 16px 32px 16px 32px;
        font-size: 0.9em;
    }

    #custom-button {
        width: 40%;
    }
}

/* Between 600px and 1000px */
@media screen and (min-width: 650px) and (max-width: 1000px) {
    h1 {
        font-size: 3em;
        margin-bottom: 16px;
    }
}

/* Greater than 1000px */
@media screen and (min-width: 1000px) {
    h1 {
        margin: 0px 0px 16px 0px;
        font-size: 4em;
    }
}