/* @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap"); */

/* CSS Variables */
:root {
    --primary: #ddd;
    /* --dark: #333; */
    --dark: rgb(248, 241, 255);
    --light: #fff;
    /* --tannish: #efedd6; */
    --tannish: rgb(122, 74, 218);
    --shadow: 0 1px 5px rgba(104, 104, 104, 0.8);
}

html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    color: var(--dark);
}

body {
    font-family: "Roboto", sans-serif;
    text-align: center;
    height: 100vh;
}

.container {
    display: grid;
    height: 100vh;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: masonry;
    grid-template-areas:
        "sect1  sect1  sect1  sect2  sect2  sect2"
        "sect5  sect5  sect5  sect3  sect3  sect4"
        "sect6  sect6  sect6  sect6  sect6  sect6";
    grid-gap: 10px;
}

.player-0-panel,
.player-1-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
}

.player-name {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.player-score {
    /* font-size: 3em; */
    font-size: 48px;
    font-weight: 900;
    /* color: #ce132d; */
    color: #ee6352;
}

.active {
    /* background-color: rgb(70, 130, 180); */
    background-color: rgb(162, 89, 240);
    /* background-color: rgb(244, 234, 255); */
}

.active .player-name {
    font-weight: 600;
}

.player-current-label {
    text-transform: uppercase;
    font-size: 20px;
}

.player-current-score {
    /* font-size: 30px; */
    font-size: 2em;
    color: lightblue;
}

.foul {
    font-size: 30px;
    color: steelblue;
}

.btn,
.btn-foul {
    color: #ffffff;
    width: 60px;
    height: 60px;
    margin-top: 20px;
    margin-left: 40px;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 1s ease;
}

.red {
    background-color: #ff0000;
}
.yellow {
    background-color: #ffff00;
    color: var(--dark);
}
.green {
    background-color: #00c000;
}
.brown {
    background-color: #996633;
}
.blue {
    background-color: #0000ff;
}
.pink {
    background-color: #fb5f87;
}
.black {
    background-color: #000000;
}

.btn-chg,
.switch-counter {
    background-color: #3498db;
    color: lightblue;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    margin-top: 60px;
}
.btn-chg:active {
    transform: scale(0.98);
}
.btn-chg:focus {
    outline: 0;
}

.btn-deduct,
.btn-free-ball {
    color: #ffffff;
    background-color: #ff0000;

    width: 60px;
    height: 60px;
    margin-top: 20px;
    margin-left: 40px;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 1s ease;
}

.switch-counter {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    margin-top: 60px;
}

aside {
    grid-area: sidebar;
    background-color: #007fff;
}
header {
    grid-area: header;
    background-color: #91c8ff;
}

section:nth-of-type(1) {
    grid-area: sect1;
    background-color: var(--tannish);
}
section:nth-of-type(2) {
    grid-area: sect2;
    background-color: var(--tannish);
}
section:nth-of-type(3) {
    grid-area: sect3;
    background-color: var(--tannish);
}
section:nth-of-type(4) {
    grid-area: sect4;
    background-color: var(--tannish);
}

section:nth-of-type(5) {
    grid-area: sect5;
    background-color: var(--tannish);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas:
        "box-red  box-ycg  box-ycg  box-ycg"
        "box-red  box-bpb  box-bpb  box-bpb";
}

section:nth-of-type(6) {
    grid-area: sect6;
    background-color: var(--tannish);
}

.box-red {
    grid-area: box-red;
}

.box-ycg {
    grid-area: box-ycg;
}

.box-bpb {
    grid-area: box-bpb;
}

@media only screen and (max-width: 667px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 3fr 3fr 1fr 1fr;
        grid-template-areas:
            "sect1 sect1 sect2 sect2"
            "sect5 sect5 sect5 sect5"
            "sect3 sect3 sect3 sect4"
            "sect6 sect6 sect6 sect6";
    }
}

.brown-foul {
    background-color: #996633;
}
.blue-foul {
    background-color: #0000ff;
}
.pink-foul {
    background-color: #fb5f87;
}
.black-foul {
    background-color: #000000;
}

#timer {
    /* font-size: 30px; */
    font-size: 2em;
    color: lightblue;
}

.disabled-ball {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}
