html, body, #root {
    margin: 0;
    width: 100%;
    height: 100%;
}

#text, div, p, h1, h2, h3, label, input, select {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
}

label {
    padding-left: 1rem;
}

body {
    background-image: url('/img/bg.png');
    background-size: cover;
    background-position: center;
}

input[type="button"] {
    font-weight: 800;
    font-style: normal;
    width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
}

.user-message {
    font-weight: 800;
    font-style: normal;
    width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background-color: azure;
    border-radius: 1rem;
    text-align: left;
    font-size: 1rem;
    color: white;
}


.black-button {
    background-color: black;
    color: white;
}

.white-button {
    background-color: white;
    color: black;
}

.game-selection-button {
    width: 30vw;
    height: 30vw;
    border: 0px;
    margin: 0.5rem;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.game-selection-button span {
    padding: 0.5rem 0;
    margin: 0;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    color: white;
    width: 100%;
    text-align: center;
}

.send-button {
    background-image: url(/img/arrow.png);
    background-position: center;
    background-size: auto 1.5rem;
    background-repeat: no-repeat;
}

.back-button {
    background-image: url(/img/arrow2.png);
    background-position: center;
    background-size: auto 2rem;
    background-repeat: no-repeat;
    background-color: transparent;
}

.settings-button {
    background-image: url(/img/gear.png);
    background-position: center;
    background-size: auto 2rem;
    background-repeat: no-repeat;
    background-color: transparent;
}

input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 0.5rem 1rem;
    background-color: black;
    color: white;
}

input[type="text"]::placeholder,
input[type="text"]::-ms-input-placeholder,
input[type="text"]::-moz-placeholder,
input[type="text"]::-webkit-input-placeholder,
input[type="text"]:-ms-input-placeholder,
input[type="text"]:-moz-placeholder,
input[type="text"]:-webkit-input-placeholder {
    color: grey;
}
select {
    width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 0.5rem 1rem;

    background-color: black;
    color: white;
    -webkit-appearance: none; /* Remove default styling in WebKit browsers */
    -moz-appearance: none; /* Remove default styling in Firefox */
    appearance: none; /* Remove default styling */
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* Custom arrow icon */
    background-repeat: no-repeat;
    background-position: right 10px center;
    border: none; /* Optional: removes border */
    padding-right: 30px; /* Make space for custom arrow icon */
}

/* Style focus state */
/*select:focus {
    outline: none;
}*/

h1 {
    color: white; /* White text color */
    -webkit-text-stroke-width: 1px; /* Black stroke width */
    -webkit-text-stroke-color: black; /* Black stroke color */
    text-shadow: 0px 3px 0px black; /* Black drop shadow */
    font-size: 3rem;
    font-weight: 800;
    margin: 0px;
}

.white-text {
    margin: auto;
    overflow-y: auto;
    background-color: white;
    color: #393939;
    padding: 10px;
    border-radius: 0.5rem;
}

.input-with-button-container {
    display: grid;
    grid-template-columns: auto 4rem;
}

.input-with-button-container input[type="text"] {
    margin: 0.5rem 0.5rem 0.5rem 0;
    width: auto
}

.header-grid {
    display: grid;
    grid-template-columns: 4rem auto 4rem;
    width: 80vw;
}

.grid-container {
    display: grid;
    grid-template-rows: auto 1fr auto; /* Top, middle, and bottom rows */
    justify-content: center; /* Horizontally center the container */
    height: max(10rem, 100vh);
}

.two-buttons-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Top, middle, and bottom rows */
    justify-content: center; /* Horizontally center the container */
}

.top-cell {
    text-align: center;
    width: 100%;
    padding: 10px 0;
}

.middle-cell {
    width: 80vw;
    padding: 10px 0;
    overflow-y: auto; /* Enable scrolling if content exceeds available height */
}

.middle-cell::-webkit-scrollbar {
    width: 0.5rem;
}

.middle-cell::-webkit-scrollbar-track {
}

.middle-cell::-webkit-scrollbar-thumb {
    background: #af6c03;
    border-radius: 0.25rem;
}

.bottom-cell {
    width: 80vw;
    text-align: center;
    padding: 10px 0;
}


