/* Main Nav Section */
#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 20px);
    padding: 0px 10px 0px 10px;
    background-color: whitesmoke;
    position: fixed;
    top: 0;
    z-index: 2;
}

/* Main Section */
main {
    padding: 60px 0px 0px 0px;
    z-index: 1;
}

/* Team Section */
#team-section {
    visibility: hidden;
    margin: 30px 0px 5% 0px;
}
.team-section-card-picture {
    width: 300px;
    height: 400px;
}
.team-section-card-picture img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    object-position: center;
}
.team-section-card-text-container h3  {
    font-family: 'Cagliostro', sans-serif;
    margin: 10px 0px 0px 10px;
}
.team-section-card-text-container p {
    font-family: 'Cagliostro', sans-serif;
    margin: 10px 0px 0px 10px;
}
.team-section-card-text-container a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

/* Footer Section */
footer {
    z-index: 1;
}

/* Small screens (Mobile) */
@media only screen and (max-width: 600px) {
    /* Main Nav Section */
    #main-nav h2 {
        cursor: pointer;
        font-family: "Merienda", cursive;
        font-size: 25px;
        margin: 5px;
    }

    /* Team Section */
    #team-section-cards-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto; 
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }
    #team-section h2 {
        font-family: 'Times New Roman', Times, serif;
        font-size: 25px;
        text-align: center;
        margin: 3%;
    }
    .team-section-card {
        margin: 10px;
        display: flex;
        flex-direction: column;
        scroll-snap-align: start;
        scroll-margin: 10px;
    }
    .team-section-card-text-container {
        width: 300px;
        height: fit-content;
        display: block;
    }
}

/* Medium screens (Tablets) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    /* Main Nav Section */
    #main-nav h2 {
        cursor: pointer;
        font-family: "Merienda", cursive;
        font-size: 30px;
        margin: 5px;
    }

   /* Team Section */
    #team-section-cards-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto; 
        overflow-y: hidden;
        scrollbar-width: thin;
    }
    #team-section h2 {
        font-family: 'Times New Roman', Times, serif;
        font-size: 30px;
        text-align: center;
        margin: 3%;
    }
    .team-section-card {
        margin: 10px;
        display: flex;
        flex-direction: column;
    }
    .team-section-card-text-container {
        width: 300px;
        height: 400px;
        display: none;
    }
}

/* Large screens (Desktops) */
@media only screen and (min-width: 1025px) {
    /* Main Nav Section */
    #main-nav h2 {
        cursor: pointer;
        font-family: "Merienda", cursive;
        font-size: 30px;
        margin: 5px;
    }

    /* Team Section */
    #team-section-cards-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    #team-section h2 {
        font-family: 'Times New Roman', Times, serif;
        font-size: 30px;
        text-align: center;
        margin: 3%;
    }
    .team-section-card {
        margin: 10px;
        display: flex;
        flex-direction: column;
    }
    .team-section-card-text-container {
        width: 300px;
        height: 400px;
        display: none;
    }
}