* {
    font-family: 'Poppins', sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    overflow-y: auto;
}

/* Navigation Bar */
.nav-container {
    display: flex;
    flex-direction: row;
    padding: 1em;
    position: fixed;
    background: #ffff;
    width: 100%;
    height: 7vh;
    border-bottom: 2px solid #ff0000;
}

#header-img {
    height: 3em;
}

#nav-bar {
    text-align: right;
}

ul {
    display: flex;
}

.nav-links {
    list-style: none;
    padding-left: 2vh;
}

a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

nav a:hover {
    color: #ff0000;
    border-bottom: 3px solid #ff0000;
}

/* Media for Mobile and Tablet */
@media screen and (min-width: 350px) and (max-width: 850px) {

    /* Home Container */
    .home-container {
        padding: 1em;
        background-image: url(./Img/bg.png);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: 5em;
    }

    .content h1 {
        color: #000;
    }

    #pepsi-red {
        color: #ff0000;
    }

    #pepsi-blue {
        color: #0000ff;
    }

    iframe {
        border: 3px solid #0000ff;
    }

    /* History Container */
    #header-history {
        padding: 1em;
        height: auto;
    }

    #header-contact {
        height: auto;
    }

    .cards-container {
        display: subgrid;
        grid-template-columns: repeat(3, 10em);
        grid-template-rows: repeat(3, auto);
    }

    .cards {
        background: #06283D;
        border-radius: 2em;
        padding: 1em;
        margin-top: 3vh;
        width: 18em;
    }

    .cards h3,
    p {
        color: #ffff;
    }

    /* Contact Container */
    #header-contact {
        height: auto;
        width: 100%;
        border-top: 2px solid #06283D;
        background: #06283D;
        margin-top: 2em;
    }

    form {
        padding: 1em;
    }

    label {
        color: #fff;
    }

    #email,
    #message {
        width: 23em;
    }

    #message {
        height: 15vh;
    }

    #submit {
        display: inline-block;
        padding: 0.5em 1.7em;
        margin: 0 0.1em 0.1em 0;
        border: 0.16em solid rgba(255, 255, 255, 0);
        background-color: #256D85;
        border-radius: .5em;
        box-sizing: border-box;
        text-decoration: none;
        font-family: "Roboto", sans-serif;
        font-weight: 300;
        color: #ffffff;
        text-shadow: 0 0.04em 0.04em rgba(0, 0, 0, 0.35);
        text-align: center;
        transition: all 0.2s;
        margin-top: 1vh;
    }

    #submit:hover {
        border-color: rgb(255, 255, 255);
    }

    /* Footer Container */
    .footer-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        height: auto;
        padding: 0.7em;
    }

    #footer-logo {
        height: 7vh;
    }

    .footer-info{
        color: #000;
        font-size: 2vh;
    }
}

/* Media for Desktop */
@media screen and (min-width: 850px) {

    /* Home Container */
    .home-container {
        padding: 1em;
        background-image: url(./Img/bg.png);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10vw;
        padding-top: 10em;
        padding-bottom: 5em;
    }

    .content {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
    }

    .content h1 {
        color: #000;
    }

    #pepsi-red {
        color: #ff0000;
    }

    #pepsi-blue {
        color: #0000ff;
    }

    iframe {
        border: 3px solid #0000ff;
    }

    /* History Container */
    #header-history {
        padding: 1em;
        height: auto;
        text-align: center;
    }

    #header-contact {
        height: auto;
    }

    .cards-container {
        display: grid;
        grid-template-columns: repeat(2, 10em);
        grid-template-rows: repeat(2, auto);
        grid-gap: 1em 15em;
        justify-content: center;
        width: 85vw;
    }

    .cards {
        background: #06283D;
        border-radius: 2em;
        padding: 1em;
        margin-top: 3vh;
        width: 21em;
        height: auto;
    }

    .cards h3,
    p {
        color: #ffff;
    }

    /* Contact Container */
    #header-contact {
        height: auto;
        width: 100%;
        border-top: 2px solid #06283D;
        background: #06283D;
        margin-top: 2em;
        display: flex;
        justify-content: center;
    }

    form {
        padding: 1em;
    }

    label {
        color: #fff;
    }

    #email,
    #message {
        width: 48vw;
    }

    #message {
        height: 15vh;
    }

    #submit {
        display: inline-block;
        padding: 0.5em 1.7em;
        margin: 0 0.1em 0.1em 0;
        border: 0.16em solid rgba(255, 255, 255, 0);
        background-color: #256D85;
        border-radius: .5em;
        box-sizing: border-box;
        text-decoration: none;
        font-family: "Roboto", sans-serif;
        font-weight: 300;
        color: #ffffff;
        text-shadow: 0 0.04em 0.04em rgba(0, 0, 0, 0.35);
        text-align: center;
        transition: all 0.2s;
        margin-top: 1vh;
    }

    #submit:hover {
        border-color: rgb(255, 255, 255);
    }

    /* Footer Container */
    .footer-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        height: auto;
        padding: 0.7em;
    }

    #footer-logo {
        height: 7vh;
    }

    .footer-info{
        color: #000;
        font-size: 2vh;
    }
}