/* FLIP MATCH CONTROLS */

.flip-match-controls {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 40px;
}

.flip-match-controls-active {
    display: flex;
}

/* FLIP MATCH CONTORLS HEADER CONTAINER */

.flip-match-controls-header-itself {
    color: white;
    font-family: mainHeader;
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
}

/* FLIP MATCH CONTROL BUTTONS CONTAINER */

.flip-match-control-buttons-container {
    width: 300px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    background-color: rgb(40, 40, 40);
    padding: 10px;
    border-radius: 1rem;
}

.flip-match-control-button-itself {
    border-radius: 0.5rem;
    border: 0;
    height: 45px;
    font-size: 1rem;
    background-color: rgb(60, 60, 60);
    cursor: pointer;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.flip-match-control-button-itself:hover {
    background-color: rgb(70, 70, 70);
}

#continueGameButton:disabled {
    display: none;
}

/* FLIP MATCH CONTROL MUSIC BUTTON */

.flip-match-control-button-itself-music::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 1rem;
    background-color: rgb(30, 255, 0);
}

.flip-match-control-button-itself-music-active::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 1rem;
    background-color: red;
}

/* FLIP MATCH CONTROL MODES BUTTON CONTAINER */

.flip-match-control-mode-button-container {
    width: 100%;
    height: 45px;
    overflow: hidden;
    background-color: rgb(30, 30, 30);
    border-radius: 0.5rem;
    interpolate-size: allow-keywords;
    transition: height 300ms;
}

.flip-match-control-mode-button-container-active {
    height: auto;
}

.flip-match-control-mode-button-itself {
    width: 100%;
    border-radius: 0.5rem;
    border: 0;
    height: 45px;
    font-size: 1rem;
    background-color: rgb(60, 60, 60);
    cursor: pointer;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-match-control-mode-button-itself-open {
    background-color: rgb(50, 50, 50);
}

.flip-match-control-mode-button-itself:hover {
    background-color: rgb(70, 70, 70);
}

/* FLIP MATCH CONTOL MODES THEMSELVES */

.flip-match-control-modes-themselves {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    margin-top: 5px;
    padding: 8px;
}

.flip-match-control-mode-itself {
    border-radius: 0.5rem;
    border: 0;
    height: 45px;
    font-size: 1rem;
    background-color: rgb(20, 20, 20);
    cursor: pointer;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.flip-match-control-mode-itself-active {
    background-color: rgb(10, 10, 10);
}

.flip-match-control-mode-itself-active::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 1rem;
    background-color: rgb(21, 255, 0);
}

.flip-match-control-mode-itself:hover {
    background-color: rgb(15, 15, 15);
}

/* MEDIA QUERIES */

@media (max-width: 800px) {
    .flip-match-controls-header-itself {
        font-size: 2rem;
    }
}

@media (max-width: 450px) {
    .flip-match-controls-header-itself {
        font-size: 1.8rem;
    }
}

@media (max-width: 350px) {
    .flip-match-control-buttons-container {
        width: calc(100% - 20px);
    }
    .flip-match-controls-header-container {
        padding-inline: 20px;
    }
}