:root {
  /*--bg-color: rgb(227, 221, 181);*/
  --bg-color: #fcf1cc;
  --button-color: #e3c674;
}

@media (max-width: 768px) {
    .align-form {
        .form-group {
        margin-bottom: 0.6rem; /* Add spacing between form elements */
        }
    
        input[type="text"],
        input[type="email"],
        textarea {
            width: 100%; /* Make input fields full-width */
            padding: 0.5rem; /* Add some padding for better touch target size */
            border-radius: 0.25rem; /* Optional: Add rounded corners */
        }
    
        button {
            padding: 0.6rem 0.6rem; /* Add some padding for better touch target size */
            border-radius: 0.25rem; /* Optional: Add rounded corners */
            font-size: 1rem; /* Make the button text size larger for better tap target */
        }
    }
}

.home {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
}
.home-image {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}
.home-text {
    display: inline;
    height: auto;
    border-radius: 8px;
}

.align-form  { display: table;      }
.align-p     { display: table-row;  }
.align-label { display: table-cell; }
.align-input { display: table-cell; }

.inline-form { display: inline-block; }

.align-checkboxes label {
    display: inline-block;
    padding-right: 0.7rem;
    white-space: nowrap;
}
.align-checkboxes input {
    vertical-align: middle;
}
.align-checkboxes label span {
    vertical-align: middle;
}

.confirm-button {
    font-weight : bold;
}
.panebtn {
    font-size: inherit;
    padding: 0.25em;
    background-color: var(--button-color);
    background-size: 2em 2em;
    height: 2em;
    width: 2em;
    border:  1px solid black;
    cursor: pointer;
}

.panebtn:hover /*, .panebtn:focus*/ {
    background-color: var(--bg-color);
}

/* Botbar */
.botbar {
    display: none;
    position: absolute;
    background-color: #e0b36e;
}

.botbar-content {
    display: flex;
    height: auto;
}

.botbar-button {
    background-color: var(--button-color);
    font-size: inherit;
    margin: 0.1em 0.2em;
    border:  1px solid black;
    width: 1.2em;
    align-content: center;
}

.botbar-delay {
    display: inline-block;
    width: 4em;
    text-align: right;
    margin-right: 0.5rem;
}

.botbar-button-rp {
    background-color: var(--button-color);
    font-size: inherit;
    margin: 0.1em 0.2em;
    border:  1px solid black;
}

/* Dropdown Button */
.dropbtn {
    background-color: var(--button-color);
    padding: 0.5rem;
    border:  1px solid black;
    cursor: pointer;
}

.pdropbtn {
    background-color: var(--button-color);
    border:  1px solid black;
    cursor: pointer;
}

.expanddown {
    background-image: url( 'img/down.png' );
}

.expandup {
    background-image: url( 'img/up.png' );
}

.expandleft {
    background-image: url( 'img/left.png' );
}

.expandright {
    background-image: url( 'img/right.png' );
}

/* Dropdown button on hover & focus */
.dropbtn:hover /*, .dropbtn:focus*/ {
    background-color: var(--bg-color);
}

/* The container <div> - needed to position the dropdown button */
.dropdown {
    position: absolute;
    display: none;
}

/* The container <div> - needed to position the dropdown button */
.pdropdown {
    position: relative;
    display: inline-block;
}

.pdropbtn:hover /*, .dropbtn:focus*/ {
    background-color: var(--bg-color);
}

/* The container <div> - needed to position the dropdown button */
.fdropdown {
    padding-left: 0.2rem;
    position: relative;
    display: inline-block;
}

.fdropbtn:hover /*, .dropbtn:focus*/ {
    background-color: var(--bg-color);
}


/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    bottom: 0.75rem;
    overflow: auto;
    right: 0;
    background-color: #f1f1f1;
    /*min-width: 200px;*/
    white-space: nowrap;
    box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2);
    z-index: 35;
}

/* Player dropdown Content (Hidden by Default) */
.pdropdown-content {
    display: none;
    position: absolute;
    top: 1.2rem;
    overflow: auto;
    left: 0;
    background-color: #f1f1f1;
    /*min-width: 200px;*/
    white-space: nowrap;
    box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2);
    z-index: 35;
}


/* Download filter dropdown Content (Hidden by Default) */
.fdropdown-content {
    display: none;
    position: absolute;
    top: 1.2rem;
    overflow: auto;
    left: 0;
    background-color: #f1f1f1;
    /*min-width: 200px;*/
    white-space: nowrap;
    box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2);
    z-index: 35;
}

/* Links inside the dropdown */
.fdropdown-content a {
    color: black;
    padding: 0.15rem 0.5rem;
    text-decoration: none;
    display: block;
}

/* Links inside the dropdown */
.pdropdown-content a {
    color: black;
    padding: 0.15rem 0.5rem;
    text-decoration: none;
    display: block;
}

.dropdown-img {
    height: 1em;
    width: auto;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Change color of dropdown links on hover */
.pdropdown-content a:hover {background-color: #ddd;}

/* Change color of dropdown links on hover */
.fdropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
    display:block;
}

#offline {
    position: fixed;
    box-sizing: border-box;
    display: block;
    background-color: yellow;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 40;
}

#chatPopup {
    position: fixed;
    box-sizing: border-box;
    display: block;
    z-index: 40;
    top: 3rem;
    pointer-events: none;
    background: rgba(175, 166, 46, 0.5)
}

.canvas {
    cursor: pointer;
}

.board {
    box-sizing: border-box;
    position: absolute;
    display: block;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.games {
    box-sizing: border-box;
    position: absolute;
    z-index: 19;
    background-color: var(--bg-color);
    display: none;
    overflow: hidden;
    top: 0px;
    border-left: 1px solid black;
    flex-direction: column;
}

.games-scrollwrapper {
    display: inline;
    border-top: 1px solid black;
    overflow: hidden;
    flex-grow: 1;
}

.games-inner {
    display: block;
    width: 100%;
    height: 100%;
    overflow: auto;
    table, td, th {
        border-collapse: collapse;
        white-space: nowrap;
    }
    th {
        border-bottom: 1px solid black;
    }
}

.tallies {
    th:nth-child(4) {
        text-align: right;
        min-width: 2.5rem;
        padding-right: 0.5rem;
    }
    th:nth-child(5) {
        text-align: right;
        min-width: 2.5rem;
        padding-right: 0.5rem;
    }
    td:nth-child(4) {
        text-align: right;
        padding-right: 0.5rem;
    }
    td:nth-child(5) {
        text-align: right;
        padding-right: 0.5rem;
    }
}
.game-log {
    width: 100%;
    td, th {
        border-left: 1px solid black;
        border-right: 1px solid black;
        border-collapse: collapse;
    }
    th:first-child {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    th,td:first-child {
        border-left: none
    }
    th,td:last-child {
        border-right: none
    }
    td:nth-child(2) {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    th:nth-child(2) {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    td:nth-child(4) {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

.highlight {
    background: lightgray !important;
}

.selected {
    background: darkgrey !important;
}

.blunder {
    background-color: red;
}
.error {
    background-color: yellow;
}

.acting {
    color: red;
    border: red 2px solid;
}
.admit {
    background-color: rgb(86, 188, 86);
}
.reject {
    background-color: rgb(234, 57, 57);
}
.unmute {
    background-color: rgb(165, 234, 156);
}
.mute {
    background-color: rgb(220, 129, 11);
}

.sheet {
    box-sizing: border-box;
    position: absolute;
    z-index: 21;
    background-color: var(--bg-color);
    display: none;
    overflow: auto;
    top: 0px;
    left: 0px;
    border-bottom: 1px solid black;
}

.bottom-container {
    box-sizing: border-box;
    position: absolute;
    z-index: 19;
    background-color: var(--bg-color);
    display: none;
    left: 0px;
    border-right: 1px solid black;
    overflow: hidden;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.chat {
    display: inline;
    flex-grow: 1;
    overflow: auto;
    border-top: 1px solid black;
}

.chat-input {
    display: flex;
    flex-direction: row;
}

.chat-input-field {
    display: inline;
    flex-grow: 1;
}

#chat-input-field {
    width: 100%;
}

.chat-input-button {
    padding-left: 0.3rem;
    display: inline;
}

.standings {
    box-sizing: border-box;
    border-top: 1px solid black;
    display: none;
    overflow: hidden;
    position: absolute;
    z-index: 20;
    background-color: var(--bg-color);
    table, td, th {
        white-space: nowrap;
    }
}

.move-table {
    width:100%;
    border-collapse: collapse;
    th:first-child,td:first-child {
        border-left: none;
    }
    th:last-child, td:last-child {
        border-left: none;
        border-right: none;
    }
    td:nth-child(3), th:nth-child(3) {
        border-right: none;
    }
    tr:nth-child(odd) {
        border-bottom: 1px solid black;
    }
    tr:last-child {
        border-bottom: none !important;
    }
    th, td {
        border-left: 1px solid black;
        border-right: 1px solid black;
        border-collapse: collapse;
    }
    th {
        border-bottom: 1px solid black;
    }     
}

.standings-table {
    border-collapse: collapse;
    height: 100%;
    th:nth-child(even), td:nth-child(even) {
        background: #f4e1ac;
    }
    th:first-child,td:first-child {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        border-left: none;
    }
    th:last-child, td:last-child {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        border-right: none;
    }
    th, td {
        border-left: 1px solid black;
        border-right: 1px solid black;
        border-collapse: collapse;
    }
    th {
        border-bottom: 1px solid black;
    }  
    tr:last-child {
        vertical-align: top;
        height: 100%;
    }     
}

.standings-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.tab {
    display: inline;
    border-bottom: 1px solid black;
    background-color: var(--bg-color);
}

/* Style the buttons that are used to open the tab content */
.tab button {
    display: inline;
    background-color: inherit;
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-right: 1px solid black;
    outline: none;
    cursor: pointer;
    padding: 0.35rem 1rem;
    transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color:  #f4e1ac;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #f4e1ac;
}

/* Style the tab content */
.tabcontent {
    border-top: none;
    display: inline;
    flex-grow: 1;
    overflow: hidden;
}

.tabcontent-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.standings-scroll {
    display: block;
    overflow: auto;
    width: 100%;
    height: 100%;
}

.arrows {
    display: inline;
    width: 100%;
    background-color: #f4e1ac;
}

.moves {
    display: inline;
    overflow: auto;
    width: 100%;
    flex-grow: 1;
}

.cube-analysis {
    display: block;
    overflow: auto;
    width: 100%;
    height: 100%;
}

.standings-img {
    height: 1em;
    width: auto;
}

th {
    text-align: left;
}
  
/*
.table {
    display: inline;
}*/

.popup {
    display: none;
    z-index: 30;
    position: absolute;
    box-sizing: border-box;
    background-color: #EBEBEB;
    border: 1px solid black;
}

.popup-header {
    display: flex;
    height: 1.2rem;
    cursor: move;
    z-index: 10;
    background-color: #bfc0bf;
    border: 1px solid black;
}

.minimized {
    height: 1.4rem;
    overflow: hidden;
}

.popup-header-button {
    font-weight: bold;
    background: none;
    cursor: pointer;
    font-size: 0.5rem;
    height: 100%;
    aspect-ratio: 1 / 1;
    margin: 0rem;
    padding: 0rem;
}

.popup-content {
    padding: 0.3rem;
    background-color: #EBEBEB;
}

.button {
    z-index: 5;
    position: absolute;
    box-sizing: border-box;
    display: none;
    cursor: pointer;
    overflow: hidden;
}

.semi-transparent {
    opacity: 0.4;
}