* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    background-color: white;
    display: grid;
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: 5% 85% 5%;
    grid-template-areas: 
    "nav"
    "contact"
    "foot";
    grid-gap: 1rem;
}

.navbar {
    background-color: darkblue;
    display: flex;
    justify-content: space-between;
    color: white;
    align-items: center;
    grid-area: nav;
}

.headline {
    font-size: 1.5rem;
    margin: 1rem;
}

.navbar-links ul {
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-links li {
    list-style: none;
    padding: 1rem;
}

.navbar-links li a {
    color: white;
    text-decoration: none;
    display: block;
}

.navbar-links li:hover {
    background-color: lightblue;
}

.contact {
    background-color: whitesmoke;
    border: 2px solid black;
    border-radius: 1.5rem;
    margin: 1.5rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    grid-area: contact;
}

.foot {
    padding-right: 1rem;
    text-align: right;
    grid-area: foot;
}

.toggle-button {
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

/*mobile view*/
@media (max-width: 600px) {
    .container {
        display: flex;
        flex-direction: column;
    }

    .contact {
        padding: 1rem;
        font-size: xx-small;
    }
    
    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        width: 100%;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-links ul {
        width: 100%;
        flex-direction: column;
    }

    .navbar-links li {
        text-align: center;
    }

    .navbar-links.active {
        display: flex;
    }
}