@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap'); /* The font */
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"); /* The icon set */

* {
    margin: 0;
    border: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    user-select: none;
    font-size: 1em;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48
}

body {
    display: flex;
    flex-flow: column nowrap;
    gap: 10px;
    width: 100vw;
}

#main-container {
    display: flex;
    flex-flow: column nowrap;
    margin-top: 7em;
    gap: 5px;
    align-self: center;
}

#display-container {
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-end;
    justify-content: space-between;
    padding: 5px;
    border-radius: 5px;
    font-size: 1.7em;
    /* height: 1.5em; */
    transition: 0.3s background-color;
}

#controller-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
}

#footer-container {
    position: absolute;
    bottom: 0;
    width: 100vw;
    padding: 15px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

#footer-container span {
    justify-self: center;
}

#footer-container a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

#footer-container a:hover {
    text-decoration: underline;
}

#change-theme {
    justify-self: flex-end;
    align-self: center;
    min-height: calc(50vh / 7);
    aspect-ratio: 1/1;
}

@media (orientation: landscape) {
    #main-container {
        width: 50vw;
    }

    #controller-container {
        height: 40vh;
    }

    #display-container {
        min-height: calc(50vh / 5);
    }

}

@media (orientation: portrait) {
    #main-container {
        width: 80vw;
    }

    #controller-container {
        height: 50vh;
    }

    #display-container {
        min-height: calc(50vh / 5);
    }
    
}