@font-face {
    font-family: "Fasad-Regular";
    src: url("./fonts/Fasad-Regular.woff");
}

body {
    background-color: #848FA5;
    box-sizing: border-box;
}

html, 
body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

main {
    background-color: #F1F1F1;
    display: flex;
    flex-direction: column;
    flex-flow: column;
    justify-content:space-around;
    margin: 0 auto;
    padding: 2rem 2rem;
    width: 75vw;
    height: 80vh;
}

#controls {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dropdown-toggle,
#invert-btn {
    width: 50vw;
    margin-top: 0.12rem;
}

#invert-btn {
    margin: 0 auto;
}

form {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6rem 0;
}

.graphic {
    display: flex;
    margin: 0 auto;
    width: 50vw;
}

#svg1 {
    border: solid;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #2D2D2A;
}

.infoblock
{
    width: 50vw;
    margin: 0 auto;
}

#information {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
    font-size: small;
}



/* shoutout w3schools for the header css */
.header {
    overflow: hidden;
    /* background-color: #F1F1F1; */
    background-color: #2D2D2A;
    padding: 1.6rem 0.8rem;
    height: 15vh;
}

.header a {
    float: left;
    color: #F1F1F1;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 2.1rem;;
    border-radius: 0.25rem;;
}

.header a.logo {
    font-family: "Fasad-Regular", Arial, sans-serif;;
    font-size: 2.1rem;
    font-weight: bold;
}

.header a:hover {
    background-color: #ddd;
    color: black;
}

.header a.active {
    background-color: dodgerblue;
    color: white;
}

.header-right {
    float: right;
}

#footer {
    display: flex;
    height: 2.25rem;  /* Footer height */
    color: #F1F1F1;
    background-color: #2D2D2A;
    font-weight: 800;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 5vh;
}

/* make responsive!: */

@media screen and (max-width: 500px) {
    .header {
        height: 30vh;
    }
    .header a {
        float: none;
        display: block;
        text-align: left;
    }
    .header-right {
        float: none;
    }
    .graphic {
        padding: 0 0.25rem;
        display: flex;
        justify-content: center;
        width: 80vw;
    }
    main {
        width: 100%;
        height: 65vh;
        padding: 0 2rem;
    }
    .svg-white-keys *:hover {
        filter: brightness(150%);
        transform: translateY(-4px);
    }
    .svg-black-keys *:hover {
        filter: brightness(150%);
        transform: translateY(-4px);
    }
    #footer {
        height: 5vh;
    }
    .dropdown-toggle,
    #invert-btn {
    width: 80vw;
    }
    .infoblock
    {
    width: 100%;
    margin: 0 auto;
    }

}

.svg-white-keys *:hover {
    transform: translateY(-12px);
}

.svg-black-keys *:hover {
    transform: translateY(-12px);
}

/* legacy code, included just in case */
/* #black-keys {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

#white-keys {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
} */

#root-selection {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.25rem;
}

#chord-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#chord-selection input {
    width: 100%;
    height: 100%;
    font-size:x-small;
}

rect:hover {
    cursor: pointer;
    transform: translateY(-12px);
}