/* Reset default browser margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
}

header {
    margin-bottom:1vh;
    min-height: 30vh;
    width: 100vw;
    background-color: black;
}

.topnav {
    display: grid;
    width: 100vw;
    grid-template-columns: 1fr repeat(4, minmax(100px,200px));
    grid-template-rows: 100px;
    gap: 30px;
    text-align: center;
    align-items: center;
    margin-right: 20vw;
    margin-left: 5vw;
    overflow: hidden;
    height: 100%;
}

.logo {
   justify-self: start;
}

.topnav a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    padding: 10px 10px;
}

.topnav a:hover {
    color: blue;
}

.topnav a.active {
    color: green;
}

.topnav .icon {
    display: none;
}

#main {
    color: rgb(52, 171, 240);
    width: 100vw;
    min-height: 80vh;
    background-image: url("../img/bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
}

#main p {
    font-size: 32px;
    border: 2px solid red;
    margin-right: 2em;
}

footer{
    height: 15vh;
    width: 100vw;
    background-color: bisque;
}

/* Tablet breakpoint (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {}

/* Mobile breakpoint*/
@media screen and (max-width: 768px) {


    .topnav a:not(:first-child, :last-child) {
        display: none;
    }

    .topnav {
        display: grid;
        width: 100vw;
        grid-template-columns: 0.5fr 0.3fr;
        margin:0;
        padding:0;
    }

    .topnav .icon {
        display: block;
        position: absolute;
        right: 20px;
    }

    .topnav.responsive a {
        display: block;
        text-align: left;
    }
}