body {
    margin: 0;
    background-color: rgb(44, 44, 46);
    color: rgb(237, 236, 243);
    font-family: sans-serif;
    height: 100vh;
    margin-left: 7%;
    margin-right: 7%;
}

header {
    height: 17vh;
    /* background-color: aqua; */
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    font-size: 2.5vh;
    /* margin-bottom: -2%; */
}

header a {
    color: rgb(237, 236, 243);
    text-decoration: none;
    padding-left: 1vw;
    padding-right: 1vw;
}

footer {
    height: 60px;
    display: flex;
    align-items: center;
}

#language {
    position: absolute;
    right: 6%;
    top: 3%;
    display: flex;
    flex-direction: row;
}

.active {
    background-color: rgb(228, 228, 228);
    pointer-events: none;
}

.inactive {
    background-color: rgb(151, 151, 151);
    pointer-events: all;
}
.inactive:hover {
    background-color: rgb(121, 121, 121);
}

.button {
    border: none;
    border-radius: 5px;
    /* width: 3vw; */
    aspect-ratio: 1/1;
    margin: 5px;
}
.button:hover {
    cursor: pointer;
}

main {
    height: 1fr;
}

/*make footer text match p sizing on project pages*/
@media only screen and (max-width: 700px) {
    footer p {
        font-size: 2.5vw;
    }
}

@media only screen and (max-width: 1300px) {
    header {
        height: 18vw;
    }
    
    header h1 {
        font-size: 5vw;
    }

    header a {
        font-size: 3vw;
    }

    #language {
        flex-direction: column;
    }

    .button {
        width: 4vw;
        font-size: 1.5vw;
    }
}

/*language buttons follow screen size when its between 900 and 1500px (and also below 900px)*/
@media only screen and (min-width: 900px) {
    .button {
        width: 4vw;
        font-size: 1.5vw;
    }
}

/*stop language buttons growing when the screen goes above 1500px*/
@media only screen and (min-width: 1500px) {
    .button {
        width: 50px;
        font-size: 20px;
    }
}
