* {
    box-sizing: border-box;
}

#body-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 20px 0;

    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 3fr;
    grid-template-areas:
        "nav     header"
        "nav content"
        "nav      footer";
}


button {
    background: transparent;
    border: transparent;
}

.player {
    grid-area: content;
    position: relative;
    width: fit-content;
    margin: auto;
}

.player>* {
    max-height: 500px;
}

.score {
    grid-area: header;
    text-align: center;
    margin: auto 10px;
}

.score p {
    margin-bottom: 0;
}

.nav {
    grid-area: nav;
    justify-content: center;
}

.round-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    width: fit-content;
    padding: 25% 0;
}

.round-button {
    width: fit-content;
    margin: auto;
    padding: 10px 20px;
    border-radius: 8px;
}

.round-button:hover,
.round-button:active,
.round-button:focus,
.round-button.active {
    border: 2px solid var(--text-color);
    font-weight: 600;
}

.player-buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
    text-align: center;
}

.player-buttons p {
    color: white;
    font-weight: bold;
}

.results {
    grid-area: footer;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 5px;
}

#prev,
#next {
    padding: 0 20px;
    transform: scale(0.8);
}

.results-inner {
    display: flex;
    justify-content: center;
    width: 300px;
}

.result-button {
    background-color: var(--accent-color);
    color: var(--dark-bkg-text-color);
    font-weight: 500;
    border-radius: 8px;
    margin: 0 20px;
}

.result-message {
    color: var(--accent-color);
    margin: auto;
}

.audio {
    display: none;
}

button,
button:hover,
button:active,
button:focus {
    outline: none;
}

button:hover {
    cursor: pointer;
}

.score-counter {
    font-weight: 600;
    font-size: 24px;
}

#transcript-container {
    width: 100%;
    margin: 0 auto;
    height: 5em;
    overflow-y: hidden;
    border-radius: 10px;
    line-height: 1.8em;
    font-size: 32px;
    text-align: left;
    position: relative;
    display: flex;
}

#transcript {
    /* add these two lines back if we don't want to break up phrases */
    /* display: flex; */
    /* flex-wrap: wrap; allow phrases to wrap naturally */
    width: 100%;
    white-space: normal;
    word-break: normal;
    /* Allow wrapping within phrases */
    line-height: 1.6em;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.phrase {
    display: inline;
    /* margin-right: 6px; */
    color: #bebebe;
    font-weight: bold;
    opacity: 0.5;
    transition: opacity 0.25s ease, color 0.25s ease;
    white-space: pre-wrap;
}

.active {
    color: #fff;
    opacity: 1;
    transition: none;
}

#phone-items-wrapper {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin-top: 10px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#phone {
    transform: scaleX(1.05);
}

#phone-person {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1;
}

.final-score {
    background-color: var(--accent-color);
}