/* GLOBAL */

:root {
    --main-bg-color: #89495D;
    --main-bg-color-dark: #6b3244;

    --main-bg-color-status-playing: #4E9448;
    --main-bg-color-status-waiting: var(--main-bg-color);
    --main-bg-color-status-thinking: #9C9C9C;

    font-family: 'Roboto';
}
html,body {
    height: 100%;
    width: 100%;

    margin: 0;
    padding: 0;
}

/* UTILITAIRES */

.hide {
    display: none!important;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BASE */

body {
    background: linear-gradient(135deg, #FFECD2, #FCB69F);
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: center;
}
body::after {
    content: "";
    opacity: .8;
    z-index: -1;

    position: fixed;
    inset: 0;

    background: url(images/grains.png);
}

.container {
    width: calc(100% - 40px);
    max-width: 350px;

    padding: 20px 0;

    background-color: rgba(255, 255, 255, .8);
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 1px 4px;
}

.container-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-direction: column;
    flex-wrap: nowrap;
}
.container-section > .line {
    width: 100%;
}

/* TITRE */

.content-container {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-direction: column;
    flex-wrap: nowrap;
}
.content-container > * {
    width: calc(100% - 40px);
}

h1 {
    margin: 0;

    text-align: center;

    color: black;
    font-weight: bold;
    font-size: 30px;
}

.line {
    width: calc(100% - 40px);
    height: 1px;

    background-color: #828282;
}

/* BOUTONS */

button {
    height: 40px;

    background-color: var(--main-bg-color);

    color: white;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;

    border-radius: 5px;
    border: 0;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 1px 4px;

    cursor: pointer;
}
button:hover {
    background-color: var(--main-bg-color-dark);
}
button:disabled, button[disabled] {
    background-color: #a1a1a1;
}

/* SECTION - PSEUDO */

#pseudo-form > * {
    width: 100%;
}

.pseudo-input-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 5px;
}
.pseudo-input-container label {
    font-size: 14px;
    color: black;
}
.pseudo-input-container input {
    height: 30px;
    
    font-size: 14px;

    border: 1px solid #828282;
    border-radius: 4px;

    padding: 0 5px;
}

/* SECTION - BUZZER */

#buzzer {
    height: 160px;
    width: 180px;

    position: relative;

    background: none;
    box-shadow: none;
}
#buzzer #buzzer-normal {
    display: block;
}
#buzzer #buzzer-pressed {
    display: none;
    
    bottom: -1px;
}
#buzzer:active #buzzer-normal {
    display: none;
}
#buzzer:active #buzzer-pressed {
    display: block;
}
#buzzer img {
    width: 100%;

    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#player-list-container {
    width: 100%;

    gap: 5px;
}
.player-container {
    width: calc(100% - 15px);
    height: 40px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;

    border: 1px solid #A1A1A1;
    border-radius: 30px;

    padding-left: 10px;
    padding-right: 5px;
}
.player-left, .player-right {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
}

.player-left > span {
    font-size: 16px;
}
.player-time {
    color: #828282;
    font-size: 14px!important;
}

.player-status {
    height: calc(100% - 10px);

    border: 1px solid black;
    border-radius: 100px;

    display: flex;
    align-items: center;
    justify-content: center;
}
.player-status > span {
    color: black;
    font-size: 12px;

    margin: 0 10px;
}

.player-status.playing {
    border-color: var(--main-bg-color-status-playing);
}
.player-status.playing > span {
    color: var(--main-bg-color-status-playing);
}
.player-status.waiting {
    border-color: var(--main-bg-color-status-waiting);
}
.player-status.waiting > span {
    color: var(--main-bg-color-status-waiting);
}
.player-status.thinking {
    border-color: var(--main-bg-color-status-thinking);
}
.player-status.thinking > span {
    color: var(--main-bg-color-status-thinking);
}

button.give-host {
    height: 32px;
    width: 32px;

    background: none;

    border: 1px solid #EFC20F;
    border-radius: 100px;
    box-shadow: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
}
button.give-host > img {
    width: 100%;
}

button.sortir {
    height: 32px;
    width: 32px;

    background: none;

    border: 1px solid #ef0f0f;
    border-radius: 100px;
    box-shadow: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
}
button.sortir > img {
    width: 100%;
}

#suivant {
    width: 100%;
}

/* FOOTER */

footer {
    width: 100%;
    height: 25px;

    position: fixed;
    bottom: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: var(--main-bg-color);
}

.copyright {
    color: white;
    font-size: 12px;
}