:root {
    --main-text-color: rgb(60, 60, 60);
    --cell-dark: rgb(238, 238, 238);
    --cell-light: rgb(255, 255, 242);
    --header-color: rgb(163, 27, 20);
    --submit-color: rgb(209, 52, 44)
}

body {
    min-height: 90vh;
    margin: 0px;
    font-family: Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}
h1 {
    margin: 1rem 0 0.5rem;
}

header {
    min-height: 5vh;
    background-color: var(--header-color);

    display: flex;
}
header a {
    min-height: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

    color: white;
    padding: 0 0.5rem;
    font-size: 1.2rem;
    text-decoration: none;
}
header a:hover {
    background-color: #bd1f32;
    transition: background-color .15s;
}

footer {
    background-color: brown;
    min-height: 5vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
footer div {
    color: white;
    text-align: center;
    margin: .5rem 0;
}

main {
    min-height: 90vh;
    font-size: 1.1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--main-text-color);
}

.main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
}


table {
    margin-top: 1rem;
}
tr:nth-child(even) {
    background-color: var(--cell-light);
}
tr:nth-child(odd) {
    background-color: var(--cell-dark);
}

.pitch-audio-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}


form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

form input {
    margin: 0.5rem 0 0.7rem 0;
}

form button {
    min-width: 8rem;
    min-height: 4rem;
    padding: 0;
    flex-grow: 2.5;

    background-color: var(--submit-color); 
    color: white;
    font-family: Roboto, sans-serif;
    font-size: 180%;

    border: 0;
    border-radius: 8px;
}

form button:hover {
    background-color: darkred;
    transition: background-color .1s;
}

.listen-button, .listen-button-nohover {
    min-width: 8rem;
    min-height: 4rem;

    background-color: gold;
    color: var(--main-text-color);
    font-family: Roboto, sans-serif;
    font-weight: bold;
    font-size: 200%;

    border: 0;
    border-radius: 8px;
}
.listen-button:hover {
    background-color: rgb(175, 149, 0);
}
.listen-button--playing {
    background-color: rgb(138, 138, 138);
}
#interval-button {
    margin: 0.5rem 0;
}

/* Home page specific things */
#home-grid {
    display: grid;
    grid-template-columns: 400px 400px;
    grid-template-rows: repeat(3, 225px);
    column-gap: 20px;
    row-gap: 20px;

    margin-bottom: 1rem;
}
#home-grid a{
    display: flex;
    flex-direction: column;
    align-items: center;
    border: rgb(170, 170, 170) solid 2px;
    border-radius: 8px;
    overflow: hidden;

    /* This removes text blue underline text */
    text-decoration: none;
}
#home-grid a div {
    flex-grow: 3;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#home-grid a img {
    width: auto;
    height: 185px;
    object-fit: cover;
}
#home-grid menu-link-title {
    background-color: rgb(209, 91, 91);

    flex-grow: 1;
    width: 100%;

    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#home-grid menu-link-title:hover {
    background-color: #9b2937;
}

/* About page specific things */
#about-main-content p {
    max-width: 50%;
    text-align: justify;
}

#about-main-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact-info {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;

    border: 2px solid rgb(196, 196, 196);
    border-radius: 5px;
}
#contact-info h2 {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
#contact-info ul {
    min-width: 540px;
    padding-right: 1.5rem;
}
#contact-info li{
    position: relative;
}
#contact-info li span {
    font-weight: bold;
}
#contact-info li a {
    position: absolute;
    right: 0;
}

/* Page interval specific */
#pitch-interval-main > div {
    margin: .25rem 0;
}

.answer-choice-heading {
    margin-bottom: 0.5rem;
}

answer-choice-grid {
    min-width: 40%;
    margin-bottom: 1rem;

    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(5, 1fr);

    border: .125rem solid rgb(129, 129, 129)
}
#scale-choice-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
#chord-choice-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
#interval-choice-grid {
    grid-template-columns: repeat(3, 1fr);
}
#key-choice-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
}
answer-choice-grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
}
answer-choice-grid div:nth-child(odd) {
    background-color: var(--cell-dark);
}

answer-choice-grid div:nth-child(even) {
    background-color: var(--cell-light);
}