.container {
    width: 100vw;
    height: calc(100vw * 9 / 16); /* Default: scale based on width */

    /* Ensure it doesn’t exceed the viewport height */
    max-height: 100vh;
    max-width: calc(100vh * 16 / 9);

    background: lightblue; /* Just for visualization */
    margin: auto;
}

body {
    padding: 0;
    margin: 0;
    font-family: monospace;
    background-color: black;
}

.d-none {
    display: none;
}

#startScreen {
    text-align: center;
    background: rgba(146, 233, 255, 1);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#logo {
    width: 500px;
    height: auto;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10%;
}

#start {
    margin-left: auto;
    margin-right: auto;
    width: 40%;
    font-size: 64px;
    border-radius: 15px;
}

#aiGame, #creat {
    margin-left: auto;
    margin-right: auto;
    width: 40%;
    font-size: 32px;
    background-color: rgba(255, 0, 0, .8);
    border-radius: 15px;
}

#creat {
    margin-top: 50px;
}

#aiGame[type="button"]:hover, #creat[type="button"]:hover{
    background-color: rgba(255, 55, 55, .8) !important;
}

#aiChooseScreen {
    color: white;
    font-size: 48px;
    text-align: center;
    padding-top: 5%;
}

.dis {
    width: 40% !important;
    margin-left: auto;
    margin-right: auto;
}

#map {
    background-image: url("mapbg.jpg");
    height: 100%;
    background-size: 100% 100%;
}

#header {
    position: absolute;
    width: 20vw;
    background-color: rgba(0, 0, 150, 0.7);
    left: 0;
    /*transform: translate(-50%, 0);*/
    top: 0;
    color: white;
    font-size: 24pt;
    text-align: center;
    border-bottom-right-radius: 15px;
}

.r-dot {
    height: 25px;
    width: 25px;
    background-color:  rgba(256, 0, 0, 0.95);
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    color: rgba(256, 0, 0, 0.7);
    cursor: pointer;

    animation: pulse 2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.4); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.95; }
}

#menu {
    position: absolute;
    float: right;
    height: 65%;
    width: calc(30% + 50px);
    top: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(102, 194, 255, 1), rgba(129, 75, 255, 1));
    color: white;
}

#menuTitle {
    text-align: center;
}

#content {
    padding-left: 20px;
    padding-right: 20px;
}

#started { position: relative; }

#menuImage {
    width: 100%;
}

#backgroundInfo {
    position: absolute;
    float: right;
    height: calc(35% - 50px);
    width: 30%;
    bottom: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 32, 102, 1), rgba(129, 75, 255, 1));
    color: white;
    padding: 25px;
}

#rlTime, #actionTimer, #scases, #cases {
    background-color: rgba(255, 85, 85, 1);
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#actionMenu {
    position: absolute;
    float: left;
    height: 30%;
    width: 6%;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(66, 0, 255, 1), rgba(135, 0, 255, 1));
    color: white;
    font-size: 8pt;
    text-align: center;
    border-top-right-radius: 15px;
    transition: left 0.5s ease;
}

#dataTablePanel {
    position: absolute;
    left: -400px;
    width: 400px;
    height: 30%;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(66, 0, 255, 1), rgba(135, 0, 255, 1));
    transition: left 0.5s ease;
    z-index: 1000;
    display: block;
    color: white;
    overflow-y: auto;
}

#people, #locations {
    padding-left: 10px;
}

.simple-rounded-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid black;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    font-family: Arial, sans-serif;
}

.simple-rounded-table th,
.simple-rounded-table td {
    padding: 10px 15px;
    border: 1px solid black;
}

#tableButton {
    width: 100px;
    height: 100px;
    background-image: url("assets/images/datatable.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border: none;
}

#actionTablePanel {
    position: absolute;
    left: -400px;
    width: 400px;
    height: 30%;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(66, 0, 255, 1), rgba(135, 0, 255, 1));
    transition: left 0.5s ease;
    z-index: 1000;
    display: block;
    overflow-y: auto;
}

#timmyworkaround {
    height: 100%;
    background-color: black;
    z-index: 31337;
    position: absolute;
    bottom: 0;
    left: 0;
}

#actionButton {
    width: 100px;
    height: 100px;
    background-image: url("assets/images/actions.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border: none;
}

button[type="button"] {
    background-color: rgba(25, 116, 238, 0.8);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

button[type="button"]:hover {
    background-color: rgba(58, 142, 255, 0.8) !important;
}


button[disabled=disabled], button:disabled {
    cursor: auto;
    background-color: gray;
}


#modal {
    position: absolute;
    display: none;
    width: 70%;
    text-align: center;
    margin-left: 15%;
    top: 120px;
    background-color: red;
    opacity: .8;
    border-radius: 15px;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top: 6px solid #00d1b2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}