body {
    background-color: #394253;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.screen {
    text-align: center;
    margin-top: 20px;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/night.png');
    background-size: cover;
    background-position: center;
    margin: 0;
}

/* Dropdown / Menu */
.dropdown {
    margin: 24px 24px 0 0;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
}

.dropdown-item.active {
    background: linear-gradient(48deg, #75492F 19.6%, #75492F 77.32%);
}

.dropdown-menu {
    background-color: #394253;
    box-shadow: 10px 10px 20px 0px #262C37, -10px -10px 20px 0px rgba(72, 80, 99, 0.26);
}

.dropdown-menu.show {
    display: block;
}

.languageDropdown {
    background: linear-gradient(48deg, #2C3341 19.6%, #313949 77.32%);
    border: 2px solid rgba(49, 57, 73, 0.50);
    box-shadow: 10px 10px 20px 0px #262C37, -10px -10px 20px 0px rgba(72, 80, 99, 0.26);
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
}

/* Buttons */
button {
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid rgba(49, 57, 73, 0.50);
    background: linear-gradient(48deg, #2C3341 19.6%, #313949 77.32%);
    box-shadow: 10px 10px 20px 0px #262C37, -10px -10px 20px 0px rgba(72, 80, 99, 0.26);
    color: rgba(255, 255, 255, 0.65);
    height: 64px;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
}

#night-falls-btn {
    background: linear-gradient(48deg, #75492F 19.6%, #75492F 77.32%);
    border: 0px solid rgba(49, 57, 73, 0.50);
    margin-top: 240px;
}

#start-game-btn {
    margin-top: 24px;
}

/* Input fields */
#screen-setup input[type="number"], .fixedText {
    margin-top: 24px;
    padding-left: 24px;
    border-radius: 12px 0 0 12px;
    border: 1px solid #313949;
    background: #313949;
    box-shadow: 5px 5px 10px 0px #2C3341 inset, -5px -5px 10px 0px rgba(64, 75, 95, 0.25) inset;
    height: 64px;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
}

.inputGroup {
    display: flex;
    align-items: center;
}

.flexibleText {
    flex: 1;
}

.fixedText {
    min-width: 100px;
    align-items: center;
    display: flex;
    fill: linear-gradient(45deg, #2C3341 15.46%, #313949 72.37%);
    border-radius: 0 12px 12px 0;
    stroke-width: 2px;
    stroke: rgba(49, 57, 73, 0.50);
    filter: drop-shadow(10px 10px 20px #262C37) drop-shadow(-10px -10px 20px rgba(72, 80, 99, 0.26));
    color: rgba(255, 255, 255, 0.2);
}

/* Role turn images */
.role-turn-img {
    margin-top: 24px;
}

/* Role turn prompts */
#screen-savior-turn p,
#screen-werewolf-turn p,
#screen-witch-turn p,
#screen-seer-turn p {
    margin-top: 24px;
}

/* Player grid buttons */
.savior-btn, .werewolf-btn, .witch-poison-btn, .vote-btn, .hunter-btn {
    margin-top: 24px;
}

/* Selected states */
.savior-selected,
.werewolf-selected,
.witch-decision-selected,
.witch-poison-selected,
.vote-selected,
.hunter-selected {
    background: linear-gradient(48deg, #75492F 19.6%, #75492F 77.32%);
    border: 0px solid rgba(49, 57, 73, 0.50);
}

/* Werewolf highlight (shows which players are werewolves during werewolf turn) */
.werewolf-highlight {
    border: 2px solid #BF4B4B;
}

/* Werewolf target number */
.werewolf-number {
    color: #75492F;
    font-weight: bold;
    font-size: 18pt;
}

/* Witch buttons */
.witch-btn {
    margin-top: 24px;
}

#start-witch-btn {
    margin-top: 24px;
}

/* Witch content - visibility controlled by JS */

#witch-poison-title p {
    margin-top: 32px;
    margin-bottom: 0;
}

#witch-heal-info p {
    margin-bottom: 0;
}

/* Seer */
/* Seer content - visibility controlled by JS */

.seer-selected {
    border-radius: 10000px;
    border: 2px solid #BF4B4B;
}

.seer-checked-good {
    border-radius: 10000px;
    border: 2px solid rgba(107, 255, 131, 0.65);
}

.seer-checked-wolf {
    border-radius: 10000px;
    border: 2px solid #BF4B4B;
}

.seer-disabled {
    opacity: 20%;
}

.seer-player-image {
    margin-top: 24px;
    cursor: pointer;
}

#screen-witch-turn {
    padding-bottom: 60px;
}

/* The seer's Confirm stays at the foot of the screen however long the player list is */
#seer-confirm-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: 24px;
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #394253 70%, rgba(57, 66, 83, 0));
}

/* Vote */
.vote-text {
    margin-top: 24px;
    margin-bottom: 0px;
}

#next-round-btn {
    margin-top: 60px;
}

#next-round-btn:disabled,
#hunter-confirm-btn:disabled {
    background: linear-gradient(48deg, #2C3341 19.6%, #313949 77.32%);
    border: 2px solid rgba(49, 57, 73, 0.30);
    color: rgba(255, 255, 255, 0.30);
    cursor: not-allowed;
    opacity: 0.5;
}

#next-round-btn:disabled:hover,
#hunter-confirm-btn:disabled:hover {
    background: linear-gradient(48deg, #2C3341 19.6%, #313949 77.32%);
    border: 2px solid rgba(49, 57, 73, 0.30);
    color: rgba(255, 255, 255, 0.30);
}

/* Hunter */
#hunter-confirm-btn {
    margin-top: 24px;
}

/* Player roles display */
.player-number {
    margin-top: 24px;
}

.player-image {
    padding: 24px;
}

/* Win text */
.villager-win-text {
    font-size: 24pt;
    color: rgba(107, 255, 131, 0.65);
}

.werewolf-win-text {
    font-size: 24pt;
    color: #75492F;
}

/* Audio (hidden) */
.audio {
    display: none;
}

/* Countdown timer */
.countdown-display {
    display: inline-block;
    font-size: 20pt;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

/* Reveal role */
.reveal-image {
    cursor: pointer;
}

/* Restart button */
#restart-btn {
    margin-top: 24px;
    background: linear-gradient(48deg, #75492F 19.6%, #75492F 77.32%);
    border: 0px solid rgba(49, 57, 73, 0.50);
}

/* View screens */
#screen-view-roles h2,
#screen-view-actions h2 {
    margin-top: 24px;
    margin-bottom: 24px;
}

#back-from-roles-btn,
#back-from-actions-btn {
    margin-top: 24px;
}

/* Death announcement */
.death-announcement {
    font-size: 16pt;
    color: #BF4B4B;
    margin-top: 12px;
}

/* Action history */
.round-section {
    margin-bottom: 32px;
    padding: 16px;
    background: linear-gradient(48deg, #2C3341 19.6%, #313949 77.32%);
    border-radius: 12px;
    border: 2px solid rgba(49, 57, 73, 0.50);
}

.round-title {
    color: #75492F;
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 16px;
}

.action-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14pt;
    margin-bottom: 8px;
    padding-left: 16px;
}
