/* Semantic Elements */
header {
    background-color: #38b6ff;
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0px;
}

nav,
#navcheck {
    display: none;
}

#navcheck:checked~nav {
    display: flex;
    flex-direction: column;
}

footer {
    text-align: center;
    background-color: #38b6ff;
}

/* Images */
.card img {
    height: auto;
    width: 75%;
    /* border-radius: 20px; */
    display: flex;
    align-self: center;
}

.hero-img {
    display: none;
}

.heading img {
    display: none;
}

/* Text */
label {
    align-items: start;
    font-size: 1.5rem;
}

nav a {
    color: black;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.cards h3 {
    text-decoration: underline;
}

legend {
    font-size: 13pt;
    float: none;
    width: 37%;
}

#interests legend {
    width: 32%;
}

footer a {
    color: black;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Sections, Divs, and Classes */
.card {
    border: 5px solid black;
    text-align: center;
    margin: 5px;
    width: 90%;
}

.cards {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 10px;
}

.heading {
    display: flex;
    order: 2;
    align-items: center;
    justify-content: center;
    margin-left: 6.5rem;
}

#email3 {
    display: flex;
    flex-direction: column;
}

#email3 select {
    width: 50%;
}

.first input,
.last input {
    width: 50%;
}

.first label,
.last label,
.emtxt {
    color: black;
}

#workout-machine,
#personal-trainer,
#yogabox,
#nutritional {
    color: black;
    padding: 0 10px;
}

.third,
.second {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* Other */
#contact-information {
    border: 2px solid black;
}

#interests {
    padding: 5px;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 15px;
}

@media (min-width: 720px) {
    header {
        text-align: center;
        flex-direction: row;
    }

    .cards {
        flex-direction: column;
        width: 100%;
    }

     .card {
        width: 60%;
    }

    .second,
    .third {
        flex-direction: column;
    }
    
    legend {
        width: 24.25%;
    }

    #interests legend {
        width: 21.25%;
    }

    footer {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }
}

@media (min-width: 900px) {
    #navdiv label {
        display: none;
    }

    #navdiv {
        display: flex;
        order: 2;
        justify-content: center;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-self: center;
    }

    nav a {
        font-size: 1.5rem;
        font-weight: bold;
        padding: 0 10px;
    }

    .heading {
        margin-left: 0rem;
    }

    header {
        flex-direction: column;
    }

    .first input, .last input {
        width: 20%;
    }

    #email3 select {
        width: 20%;
    }

    legend {
        width: 13%;
    }

    #interests legend {
        width: 11.5%;
    }

    .card {
        width: 80%;
    }

}

@media (min-width: 1008px) {
    .cards {
        display: flex;
        flex-direction: row;
    }

    .card {
        width: 30%;
    }
}