* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
}

header {
    display: grid;
    background-color: #2c3350;
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    grid-template-columns: 10px 1fr;
    grid-template-rows: 50px;
}

header h1 {
    grid-column: 2/3;
}

header p {
    grid-column: 2/3;
}

header img {
    grid-column: 1/2;
    height: 70px;
    width: 70px;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #34385e;
}

nav a {
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #121a21;
}

.content-wrapper {
    display: flex;
    background-image: linear-gradient(to top, #ffffff, #555a96);
    margin: auto;
    gap: 1rem;
    padding: 2rem;
}

aside {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

aside img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

main {
    flex: 2;
    display: grid;
    background-color: #adb5ff;
    box-shadow: 3px 3px 3px #35395e;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    text-align: left;
    max-width: 1200px;
    margin: auto;
    border-radius: 30px;
}

main h1 {
    color: #0d0e17;
    padding-bottom: 30px;
}
main h2 {
    color: #0d0e17;
    padding-top: 30px;
}

main a {
    text-decoration: none;
}

form {
    grid-row: 2/4;
    display: flex;
    flex-flow: column nowrap;
}

form label {
    font-weight: bold;
}

form input, textarea {
    margin-bottom: 0.5em;
    padding: 10px;
    font-size: 1em;
    resize: none;
    border: 1px solid #35395e;
    border-radius: 10px;
}

form input:focus, textarea:focus {
    outline: 2px solid #34385e;
    background-color: #eaecff;
}

table {
    border-collapse: collapse;
}

tr {
    background-color: #8c97ff;
}

tr:nth-child(even) td {
    background-color: #c6ccff;
}

td, th {
    padding: 1em;
    border: 2px solid #34385e;
    text-align: center;
}

iframe {
    width: 75%;
}

footer {
    font-size: 75%;
    font-style: italic;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    padding: 2em;
    background-color: #ffffff;
    padding-bottom: 100px;
}

.contact {
    grid-row: 1/2;
}

.contact p {
    margin: 20px 0;
}

.text {
    text-align: left;
}

.workout-box {
    display: block;
    margin: 0.5rem 10px 10px 10px;
    color: #2c3e50;
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.2s transform;
}

.workout-box a {
    text-decoration: none;
}

.workout-box:hover {
    transform: translateY(-5px);
    background-color: #e9e9e9;
}

.workout {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 30px;
}

.workout h1, .nutrition h1 {
    padding: 0;
    letter-spacing: 3px;
    word-spacing: 6px;
}

.workout section {
    display: flex;
    text-align: left;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #d7dbff;
    border: 1px dotted #35395e;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 3px 3px 3px #35395e;
}

.workout section ul {
    width: 60%;
    font-size: 1.2em;
    line-height: 25px;
    margin-top: 25px;
    word-wrap: break-word;
}

.faq {
    display: block;
}

.faq section {
    margin: 10px 0px;
    line-height: 1.5em;
    text-align: left;
}

.content-wrapper-nutrition {
    display: flex;
    background-image: linear-gradient(to top, #ffffff, #555a96);
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
}

.nutrition {
    display: flex;
    flex-direction: column;
    background-color: #adb5ff;
    box-shadow: 3px 3px 3px #35395e;
    padding: 1rem;
    text-align: center;
    border-radius: 30px;
}

.nutrition section {
    display: inline-flex;
    background-color: #d7dbff;
    border: 1px dotted #35395e;
    border-radius: 30px;
    padding: 3em;
    gap: 10px;
    box-shadow: 3px 3px 3px #35395e;
}

.benefits, .nutrients {
    flex-direction: column;
    width: 50%;
}

.benefits h2, .nutrients h2 {
    background-color: #adb5ff;
    border-radius: 20px;
    padding: 0 50px;
    text-align: center;
    word-wrap: break-word;
    font-size: 1.7rem;
}

.nutrition img {
    width: 300px;
    height: 300px;
    border-radius: 30px;
}

.nutrition ul {
    grid-column: 3/4;
    text-align: left;
    font-size: 1.2rem;
}

.nutrition li {
    margin-left: 20px;
}

#workoutnav {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 50%;
    padding: 5px 0;
    text-align: center;
    z-index: 1000;
    border-radius: 50px;
}

@media (max-width: 1200px) {

    main {
        flex: 2;
        display: block;
        padding: 2rem;
    }

    aside {
        flex: 1;
    }

    ul {
        margin: 20px 0 20px 0;
    }

    .nutrition section {
        width: 100%;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: left;
        justify-content: left;
    }

    .nutrition section img {
        width: 100%;
    }

    .nutrition section h2 {
        padding: 25px;
    }

    .nutrition section ul {
        margin-left: 25px;
    }

    .workout section ul {
        margin: 10px 10px 0 10px;
    }

    #workoutnav {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 750px) {
    
    header img {
        display: none;
    }

    aside {
        display: none;
    }

    main {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0 10px;
    }

    iframe {
        width: 100%;
        height: 300px;
    }
    
    ul {
        margin-top: 20px;
        margin-left: 100px;
    }

    .faq {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .faq section {
        width: 100%;
        padding: 1rem 0;
    }

    .faq table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    #workoutnav {
        display: none;
    }
}