*{
    font-family: Georgia, serif;
}

body {
    padding: 0;
    margin: 0;
  }
h1{
    color: white;
}
body h1, body h2{
    color: white;
}
.navbar {
    background-color: #baaa80;
    text-align: inline-block;
    padding: 0;
    position: fixed; 
    left: 0; 
    right: 0; 
    z-index: 1; 
    min-height: 7vh;
    display: flex;
    align-items: center; 
    border-bottom: 3px solid #857361;
}
.nav-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0px;
}

.nav-link-left {
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    color: #000000;
    background-color: #857361;
    text-align: center;
    padding: 0px 10px;
    text-decoration: none;
    font-size: 17px;
    border-color: #402523;
    border-width: 3px;
    border-style: solid;
    margin: 2px 2px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link-right {
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    color: #000000;
    background-color: #857361;
    text-align: center;
    padding: 0px 10px;
    text-decoration: none;
    font-size: 17px;
    border-color: #402523;
    border-width: 3px;
    border-style: solid;
    margin: 2px 3px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link-right:hover {
    color: white;
    transform: scale(1.05);
}

.nav-link i{
    display:inline-flex;
    height: 20px;
    vertical-align:top;
}

.nav-icon{
    float: left;
    color: #000000;
    text-align: center;
    padding: 0px 3px;
    text-decoration: none;
    font-size: 17px;
}
.navbar .nav-link-left:hover {
    color: white;
    transform: scale(1.05);
}
.homepage-background-image{
    background-image: url("wynnguessr homepage background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top:7vh;
    width: 100%;
    min-height: 85vh;
    display:table;
    overflow:visible; 
}
.welcome-box{
    display: inline-block;
    width: 30%;
    margin-left: 150px;
    margin-top: 150px;
}
.welcome-header{
    color:white; 
    font-size: 60px; 
    position: relative;
}
.welcome-text{
    color:white; 
    font-size: 25px;
}

.repeatable-background-image{
    background-image: url("repeatable background.png");
    background-size: contain;
    background-repeat: repeat;
    top:7vh;
    left:0;
    width:100%;
    min-height: 93dvh;
    text-align: center;
}
.guess-screen{
    position: absolute;
    display: flex;
    top: 7vh;
    width: 100%;
    height: 93vh;
}
.location-image{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-position: fixed;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    text-align: center;
}
.play-button{
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 10px;
    border: 4px solid black;
    background-color: #83C73C;
    font-size: 20px;
    width: 140px;
    color: black; 
    transition: transform 0.3s ease, color 0.3s ease;
}
.play-button:hover{
    background-color: #6FAE2D;
    transform: scale(1.1);
    color: white;
}
.feature-container{
    overflow:hidden;
    top: 95%;
    width: 100%;
}
.feature-information-box{
    overflow: hidden;
    display: flex;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    text-align: center;
    background-color: #baaa80;
}

.information-container{
    display: flex;
    flex-direction: row;
    border-bottom: 5px solid #857361;
    border-top: 5px solid #857361;

}
.information-box{
    display: flex;
    flex-direction: column;
    color: black;
    margin: 100px 5%;
    width: 30%;
}
.information-box h1{
    color: black;
}
.demo-container{
    background-image: url("repeatable background.png");
    background-size: contain;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 600px;
}
.demo-information-box{
    color: black;
    display: flex;
    margin-left: 10%;
    margin-top: 100px;
    width: 25%;
    flex-direction: column;
    text-align: left;
}
#panorama{
    width: 70%;
    height: 70%;
    margin-top: 50px;
    margin-right: 100px;
    margin-left: 50px;
}
.information-box p, .demo-information-box p{
    font-size: 20px;
}
.demo-information-box p, .demo-information-box h1{
    color: white;
}
.demo-information-box a{
    width: 150px;
}
.mode-select-form{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mode-select-box{
    display: flex;
    flex-direction: column;
    color: white;
    border-radius: 10px;
    padding: 10px;
    margin: 5px 20px;
}
.mode-select-option-box{
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    flex-direction: row;
    color: black;
    margin: 5px;
    border-radius: 10px;
}

:checked + label {
    background-color: #378537;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.mode-select-header{
    text-align: left;
    margin-left: 5px;
    flex-basis: 100%;
}
.mode-select-option{
    display: flex;
    justify-content: left;
    flex-direction: row;
    color: black;
    margin: 5px;
    padding: 10px;
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;

}

#time-limit{
    border-radius: 10px;
    border: 3px solid black;
    font-size: 20px;
    width: 100px;
    margin: 5px;
    padding: 0 8px;
}
#time-limit-checkbox:not(:checked) ~ #time-limit{
    display: none;
}
.form-check-input{
    display: none;
}
.login-input{
    border-radius: 8px;
    border: 3px solid black;
    padding: 5px;
    margin: 5px;
    width: 200px;
    font-size: 20px;
    
}
.register-redirect{
    color: red;
    font-size: 15px;
    font-weight: bold;
}
.form-submit{
    border-radius: 8px;
    border: 3px solid black;
    padding: 5px;
    margin: 5px;
    width: 100px;
    font-size: 20px;
    background-color: #83C73C;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.profile-container{
    display: flex;
    color: white;
    flex-direction: column;
    justify-content: left;
    margin: 10px;
}
#mode-submit-button{
    width: 99%;
    bottom: 0;
}
.filter-option-container{
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    margin-left: 30px
    
}
.filter-option-container input{
    display: none;
}
.filter-option{
    margin: 10px;
    padding: 1px 5px;
    border: 2px solid black;
    border-radius: 5px;
    background-color: white;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.leaderboard-table{
    border-collapse: collapse;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: #857361;
    border: 3px solid black;
}
.leaderboard-row{
    border: 1px solid black;
}
#game-panorama{
    height: 93vh;
}
.map-container{
    position: absolute;
    display: flex;
    flex-direction: column;
    bottom: 0px;
    right: 0px;
    height: 351px;
    width: 300px;
    transition: width .3s, height .3s, transform .3s;
}

.map-container:hover{
    height: 700px;
    width: 600px;
}
.map-container:hover #map{
    height: auto;
    flex-grow: 1;
}
#map{
    position: relative;
    height: 300px;
    width: 100%;
    flex-grow: 1;
    image-rendering: pixelated;
    background: black;
}
#scoreMap{
    flex: 1;
    width: 100%;
    image-rendering: pixelated;
    background: black;
}
.guess-button{
    position: relative;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-radius: 12px;
    border: 4px solid black;
    background-color: #83C73C;
    font-size: 20px;
    color: black; 
    padding: 10px;
    width: 100%;
    height: 51px;
    cursor: pointer;
}
.next-button{
    position: relative;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-radius: 12px;
    border: 4px solid black;
    background-color: #83C73C;
    font-size: 20px;
    color: black; 
    padding: 10px;
    width: 20%;
    height: 51px;
    cursor: pointer;
}
.score-screen{
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 7vh;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: white;
}
#score-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
    background-color: #141323;
}
.score-info{
    display: inline-block;
    bottom: 5%;
    vertical-align: middle;
    margin: 15px;
    font-size: 20px;
    color: white;
    width: 400px;
}
.progress-bar{
    display: inline-block;
    vertical-align: middle;
    width: 300px;
    height: 10px;
    background-color: #77736f;
    border-radius: 10px;
}
.progress{
    width: 50%;
    height: 100%;
    text-align: right;
    background-color: #83C73C;
    border-radius: 10px;
}
#countdown-screen{
    position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 5.5%;
    height: 94.5%;
    width: 100%;
    text-align: center;
    background-color: white;

}

#round-number{
    margin: 10px;
}
#time-left{
    margin: 10px;

}
.apology-message{
    color: red;
    font-size: 20px;
    background-image: url(rat_apology_image.PNG);
    height: 358px;
    width: 291px;
    background-size: cover;
    background-repeat: no-repeat;
    margin: auto;
    position: relative;
}
.apology-message p {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
}
.footer{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 3px;
    background-color: #baaa80;
    color: #000000;
    border-top: 3px solid #857361;
}
@media (max-width:1500px) {
    .welcome-box{
        width: 50%;
    }
}
@media (max-width:960px) {
    .welcome-box{
        display: inline-block;
        width: 80%;
        margin-left: 50px;
        margin-top: 20px;
    }
    .welcome-header{
        font-size: 45px; 
    }
    .welcome-text{
        font-size: 20px;
    }
    .information-container{
        display: flex;
        flex-direction: column;
    }
    .information-box{
        display: flex;
        flex-direction: column;
        color: black;
        width: 100%;
        margin: 10px 0;
        margin-left: 10px;
        padding-right: 20px;    
    }
    .demo-information-box{
        color: black;
        display: flex;
        margin-top: 30px;
        margin-left: 10%;
        width: 80%;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .demo-container{
        flex-direction: column;
        width: 100%;
        height: 600px;
    }
    #panorama{
        width: 80%;
        margin-left: 10%;
        margin-bottom: 30px;
    }
    .map-container{
        height: 25vh;
        width: 20vh;
    }
    
    .map-container:hover{
        height: 60vh;
        width: 100vw;
    }
    .guess-button{
        position: relative;
        display: inline-block;
        text-align: center;
        vertical-align: middle;
        border-radius: 12px;
        border: 4px solid black;
        background-color: #83C73C;
        font-size: 20px;
        color: black; 
        padding: 10px;
        width: 100%;
        height: 51px;
        cursor: pointer;
    }
    .next-button{
        position: relative;
        display: inline-block;
        text-align: center;
        vertical-align: middle;
        border-radius: 12px;
        border: 4px solid black;
        background-color: #83C73C;
        font-size: 20px;
        color: black; 
        padding: 10px;
        width: 80%;
        height: 51px;
        cursor: pointer;
    }
    .score-info{
        display: inline-block;
        bottom: 5%;
        vertical-align: middle;
        margin: 15px;
        font-size: 20px;
        color: white;
        width: 400px;
    }
    .progress-bar{
        display: inline-block;
        vertical-align: middle;
        width: 300px;
        height: 10px;
        background-color: #77736f;
        border-radius: 10px;
    }
    .leaderboard-row{
        font-size: 10px;
    }
}

/* ---------- Multiplayer ---------- */
:root{
    --nav: 7vh; /* real navbar height, set by room.js */
}
.friends-box{
    align-items: center;
}
.friends-button{
    width: auto;
    padding: 5px 15px;
}
.form-submit:hover:not(:disabled){
    background-color: #6FAE2D;
}
.form-submit:disabled{
    background-color: #a3b48f;
    cursor: default;
}
.friends-or{
    margin: 0 10px;
    color: white;
    font-size: 20px;
}
.friends-code{
    width: 160px;
    text-transform: uppercase;
}
.friends-hint{
    margin: 5px;
    color: white;
    font-size: 18px;
    text-shadow: 0 1px 3px black;
}
.mode-select-box .friends-hint{
    text-align: left;
}
.friends-hint a{
    color: #83C73C;
    font-weight: bold;
}
.room-page{
    padding: 10px 15px 30px;
}
.room-columns{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.room-column{
    flex: 1 1 420px;
    min-width: 0;
}
.room-settings{
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.room-settings:disabled .mode-select-option{
    cursor: default;
}
.room-settings:disabled .form-check-input:not(:checked) + .mode-select-option{
    opacity: .6;
}
.room-invite{
    align-items: center;
}
.room-code{
    margin: 5px;
    padding: 2px 18px;
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    color: black;
    font-size: 34px;
    letter-spacing: 6px;
    user-select: all;
}
.room-player{
    display: flex;
    align-items: center;
    margin: 5px;
    padding: 8px 12px;
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    color: black;
    font-size: 20px;
}
.room-player.away{
    opacity: .5;
}
.room-player .material-icons{
    margin-left: 6px;
    color: #d4af37;
}
.room-dot{
    display: inline-block;
    flex: none;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid black;
    border-radius: 50%;
}
.room-error{
    min-height: 1em;
    margin: 5px 25px;
    color: #ff6b6b;
    font-weight: bold;
    text-align: left;
    text-shadow: 0 1px 3px black;
}
.room-start{
    width: 99%;
}
body.room-playing{
    overflow: hidden;
}
.room-screen{
    position: fixed;
    top: var(--nav);
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    text-align: left;
}
#room-panorama{
    width: 100%;
    height: 100%;
}
.room-top{
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 140px);
    pointer-events: none;
}
.room-hud{
    max-width: 100%;
    padding: 6px 18px;
    background-color: rgba(20, 19, 35, .85);
    border: 3px solid black;
    border-radius: 12px;
    color: white;
    text-align: center;
    font-size: 20px;
    pointer-events: none;
}
.room-hud-line span{
    white-space: nowrap;
}
.room-hud-line span:not(:empty) ~ span:not(:empty)::before{
    content: "·";
    margin: 0 10px;
}
.room-hud .material-icons{
    margin: 0 3px;
    font-size: 18px;
    vertical-align: -3px;
}
#hud-time.urgent{
    color: #ff6b6b;
}
.room-hud-call{
    color: #ffd54a;
    font-weight: bold;
}
.room-hud-call:empty, .room-hud-players:empty{
    display: none;
}
.room-hud-players{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
    font-size: 16px;
}
.room-hud-player{
    display: flex;
    align-items: center;
    margin: 0 8px;
}
.room-hud-player .room-dot{
    width: 12px;
    height: 12px;
    margin-right: 5px;
}
.room-screen .map-container{
    z-index: 500;
}
.guess-button:disabled{
    background-color: #77736f;
    color: white;
    cursor: default;
}
.guess-button.room-warn{
    background-color: #e6194b;
    color: white;
}
.room-reveal{
    display: flex;
}
#reveal-map{
    flex: 1;
    min-width: 0;
    image-rendering: pixelated;
    background: black;
}
.room-panel{
    display: flex;
    flex-direction: column;
    flex: none;
    width: 380px;
    padding: 15px;
    background-color: #141323;
    border-left: 3px solid #857361;
    color: white;
    overflow-y: auto;
}
.room-panel h2{
    margin: 0;
    font-size: 28px;
}
.room-mine{
    margin: 5px 0 10px;
    color: #83C73C;
    font-size: 24px;
}
.room-mine.none{
    color: #baaa80;
}
.room-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}
.room-table th{
    padding: 4px;
    color: #baaa80;
    font-size: 15px;
    font-weight: normal;
    text-align: left;
}
.room-table td{
    padding: 6px 4px;
    border-top: 1px solid #3a3950;
}
.room-table td:first-child{
    display: flex;
    align-items: center;
}
.room-table .num{
    text-align: right;
    white-space: nowrap;
}
.room-table tr.you{
    font-weight: bold;
}
.room-next{
    width: 100%;
    margin-top: auto;
}
.room-table + .room-next{
    margin-top: 20px;
}
.next-button:disabled{
    background-color: #77736f;
    color: white;
    cursor: default;
}
.room-pin{
    background: none;
    border: none;
}
.leaflet-tooltip.room-tip{
    padding: 1px 6px;
    border: 2px solid black;
    font-family: Georgia, serif;
    font-weight: bold;
}
.room-results{
    width: auto;
    min-width: min(500px, 100%);
    margin: 10px auto;
    font-size: 22px;
}
.room-results th, .room-results td{
    padding: 8px 18px;
}
.room-results td{
    vertical-align: middle;
}
.room-results .room-name{
    display: flex;
    align-items: center;
}
.room-results small{
    margin-left: 6px;
    font-size: 15px;
}
.room-results tr.you{
    background-color: #9a8670;
    font-weight: bold;
}
.room-actions{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0 10px;
}
.room-action{
    display: inline-block;
    width: auto;
    padding: 8px 30px;
    color: black;
    text-decoration: none;
}
.room-leave{
    background-color: white;
}
.form-submit.room-leave:hover{
    background-color: #e8e1d0;
    color: black;
}
@media (max-width: 800px){
    .room-reveal{
        flex-direction: column;
    }
    .room-panel{
        width: auto;
        max-height: 55%;
        border-left: 0;
        border-top: 3px solid #857361;
    }
    .room-top{
        max-width: calc(100% - 90px);
    }
    .room-hud{
        padding: 4px 10px;
        font-size: 15px;
    }
    .room-hud-players{
        font-size: 13px;
    }
    .room-code{
        font-size: 26px;
    }
}

/* ---------- Game modes ---------- */
.mode-rules{
    max-width: 820px;
}
.room-hp{
    display: inline-block;
    width: 60px;
    height: 8px;
    margin-right: 8px;
    overflow: hidden;
    background-color: #3a3950;
    border: 1px solid black;
    border-radius: 4px;
    vertical-align: middle;
}
.room-hp span{
    display: block;
    height: 100%;
    background-color: #83C73C;
}
.room-hp.low span{
    background-color: #e6194b;
}
.room-table .room-hp{
    display: block;
    width: 100%;
    margin: 4px 0 0;
}
.room-loss{
    color: #ff6b6b;
    font-weight: bold;
}
.room-gain{
    color: #83C73C;
    font-weight: bold;
}
.material-icons.room-heart{
    margin: 0;
    color: #e6194b;
    font-size: 18px;
    vertical-align: -3px;
}
.material-icons.room-heart.empty{
    color: #5a5870;
}
.room-hud-player .material-icons.room-heart{
    font-size: 14px;
    vertical-align: -2px;
}
.room-hud-player .room-heart:first-of-type{
    margin-left: 5px;
}
.room-out td{
    opacity: .45;
}
.room-mine.room-bullseye{
    color: #ffd54a;
}

/* ---------- Leaderboard ---------- */
.board{
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px 30px;
}
.board-title{
    margin: 0 0 5px;
    font-size: 26px;
}
.board-filters input{
    display: none;
}
.board-modes{
    display: flex;
    justify-content: center;
    margin: 5px 0 12px;
}
.board-mode{
    margin: 0 5px;
    padding: 6px 24px;
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.board-group{
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 10px 6px;
}
.board-group[hidden]{
    display: none;
}
.board-label{
    margin-right: 4px;
    color: white;
    font-size: 17px;
    text-shadow: 0 1px 3px black;
}
.board-group .filter-option{
    margin: 3px;
}
.board-table{
    margin-top: 10px;
    font-size: 19px;
}
.board-table th, .board-table td{
    padding: 7px 12px;
    vertical-align: middle;
}
.board-table tr.you{
    background-color: #9a8670;
    font-weight: bold;
}
.board-own .board-player{
    display: none;
}
.leaderboard-table tr.leaderboard-row{
    font-size: inherit;
}
@media (max-width: 600px){
    .board-date{
        display: none;
    }
    .board-table, .room-results{
        font-size: 16px;
    }
    .board-table th, .board-table td{
        padding: 6px;
    }
}

/* ---------- Play: solo or friends ---------- */
.play-choices{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px 15px 40px;
}
.play-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 360px;
    max-width: 100%;
    padding: 25px 20px;
    background-color: #baaa80;
    border: 4px solid #857361;
    border-radius: 14px;
    color: black;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
a.play-card:hover{
    transform: scale(1.04);
    border-color: #402523;
    color: black;
}
.play-card .material-icons{
    font-size: 64px;
}
.play-card h2, body .play-card h2{
    margin: 5px 0 10px;
    color: black;
    font-size: 32px;
}
.play-card p{
    margin: 10px 0 0;
    font-size: 18px;
}
.play-modes{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.play-go{
    width: auto;
    margin-top: 10px;
    padding: 6px 40px;
}
.play-back{
    display: inline-block;
    margin-bottom: 5px;
    color: white;
    font-size: 18px;
    text-shadow: 0 1px 3px black;
}
.play-back:hover{
    color: #83C73C;
}
.play-login{
    margin-top: 30px;
}

/* ---------- Room chat ---------- */
.room-chat{
    display: flex;
    flex-direction: column;
    margin: 5px;
    background-color: #baaa80;
    border: 4px solid #857361;
    border-radius: 12px;
    color: black;
    text-align: left;
    overflow: hidden;
}
.room-chat-slot{
    max-width: 640px;
    margin: 5px 20px;
}
.room-chat-results{
    max-width: 600px;
    margin: 10px auto;
}
.room-chat-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 10px;
    background-color: #857361;
    border-bottom: 3px solid #402523;
    color: black;
    font-size: 18px;
    cursor: pointer;
}
.room-sound{
    display: flex;
    padding: 0;
    background: none;
    border: 0;
    color: black;
    cursor: pointer;
}
.room-sound:hover{
    color: white;
}
.room-chat-log{
    height: 160px;
    padding: 6px 10px;
    overflow-y: auto;
    font-size: 17px;
}
.room-chat-log p{
    display: flex;
    align-items: baseline;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}
.room-chat-log .room-dot{
    width: 11px;
    height: 11px;
    margin-right: 6px;
}
.room-chat-log b{
    margin-right: 6px;
    white-space: nowrap;
}
.room-chat-form{
    display: flex;
    gap: 6px;
    padding: 6px;
}
.room-chat-form input{
    flex: 1;
    min-width: 0;
    padding: 3px 8px;
    background-color: white;
    border: 3px solid black;
    border-radius: 8px;
    color: black;
    font-size: 16px;
    outline: none;
}
.room-chat-form button{
    display: flex;
    align-items: center;
    padding: 0 10px;
    background-color: #83C73C;
    border: 3px solid black;
    border-radius: 8px;
    color: black;
    cursor: pointer;
}
.room-chat-form button:hover{
    background-color: #6FAE2D;
}
.room-chat.folded .room-chat-log, .room-chat.folded .room-chat-form{
    display: none;
}
.room-chat.folded .room-chat-head{
    border-bottom: 0;
}
.room-chat-game{
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 450; /* under the map, which grows over it on a phone when guessing */
    width: 290px;
}
.room-chat-game .room-chat{
    margin: 0;
}
.room-chat-game .room-chat-log{
    height: 110px;
}
.room-chat-panel{
    margin-top: 15px;
}
.room-chat-panel .room-chat{
    margin: 0;
}
.room-chat-panel .room-chat-log{
    height: 120px;
}

/* ---------- Countdown ---------- */
.room-countdown{
    display: flex;
    align-items: center;
    padding: 2px 18px;
    background-color: #baaa80;
    border: 3px solid #857361;
    border-radius: 12px;
    color: black;
    font-size: 30px;
    font-weight: bold;
}
.room-countdown .material-icons{
    margin-right: 6px;
    font-size: 30px;
}
.room-countdown.urgent{
    color: #b3261e;
    border-color: #b3261e;
}
@media (max-width: 800px){
    .room-chat-game{
        top: auto;
        bottom: 10px;
        left: 10px;
        width: 190px;
    }
    .room-chat-game .room-chat-log{
        height: 70px;
        font-size: 14px;
    }
    .room-countdown{
        font-size: 36px;
    }
}
.guest-name{
    width: 240px;
}
.play-card p a{
    color: #402523;
    font-weight: bold;
}

/* ---------- Game panels in the site's colours ---------- */
.room-hud{
    background-color: #baaa80;
    border: 3px solid #857361;
    color: black;
}
.room-hud-call{
    color: #b3261e;
}
.room-panel{
    background-color: #baaa80;
    border-left: 4px solid #857361;
    color: black;
}
.room-panel h2{
    color: black;
}
.room-mine{
    color: #2f6b2f;
}
.room-mine.none{
    color: #5a4a3a;
}
.room-mine.room-bullseye{
    color: #8a6100;
}
.room-table th{
    color: #402523;
    font-weight: bold;
}
.room-table td{
    border-top: 2px solid #857361;
}
.room-loss{
    color: #b3261e;
}
.room-gain{
    color: #2f6b2f;
}
.room-hp{
    background-color: #857361;
}
.material-icons.room-heart.empty{
    color: #857361;
}
.next-button:disabled, .guess-button:disabled{
    background-color: #a3b48f;
    color: #4b4b4b;
}
#score-container{
    background-color: #baaa80;
    border-top: 4px solid #857361;
}
#score-container .score-info{
    color: black;
}
.progress-bar{
    background-color: #857361;
}
@media (max-width: 800px){
    .room-panel{
        border-left: 0;
        border-top: 4px solid #857361;
    }
}
