/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #fdf6e3;
    color: #333;
    padding: 20px;
}

header h1 {
    font-size: 1.4rem;
    color: #333;
}

/* Layout */
#body {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex;
    justify-content: center;
}

#left_group {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    margin-left: 0;
}

#right_panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Panels */
#Global_stats,
#Influence {
    background-color: #fff8dc;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

#business_stats_container {
    background-color: #fff8dc;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin-bottom: 20px;
    /* Add margin below the Business Stats container for separation */
}

/* Buttons */
#Action_Buttons {
    background-color: #fff8dc;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.btn-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.btn-row button {
    flex: 1;
    margin-right: 10px;
}

.btn-row button:last-child {
    margin-right: 0;
}

.btn-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.standardbutton {
    padding: 10px;
    background-color: #ffcc00;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.standardbutton:hover {
    background-color: #ffdb4d;
}

.standardbutton:active {
    background-color: #e6b800;
}

/* Input Fields */
input[type="text"] {
    width: 50%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: #fefefe;
    margin-right: 10px;
}

#date_section {
    background-color: #e0f7fa;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/*joshua*/
textarea {
    width: 230%;
    resize: none;
}

.green-border {
    border-color: green !important;
    transition: border-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.fade-out {
    opacity: 0 !important;
}

.red-border {
    border-color: red !important;
    transition: border-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

dialog {
    padding: 2rem;
    border: none;
    border-radius: 1rem;
    background: white;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

dialog::backdrop {
    background-image: linear-gradient(45deg,
            rgb(195, 224, 114),
            rgb(216, 200, 107),
            rgb(115, 161, 207),
            rgb(117, 189, 117));
    opacity: 0.75;
}

#store_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

#storenewstextbox {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: auto;
}

#storenewstextbox textarea {
    max-width: 200%;
    width: 100%;
    max-width: 1000px;
    height: 300px;
    background-color: #fcfcfc;
    border: 2px solid #000000;
    /* Solid visible border */
    border-radius: 12px;
    /* Rounded corners */
    padding: 1rem;
    font-size: 1rem;
    resize: none;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#globeicon,
#resourceicon,
#Settings_Icon{
    max-height: 50%;
    max-width: 50%;
}

#quitbutton,
#soundbutton,
#OpenCasino {
    margin-top: 5%;
    padding: 0;
    border: none;
    background: none;


}

#globebutton,
#resourcebutton,
#settingbutton {
    margin-top: 5%;
    padding: 0;
    border: none;
    background: none;
    display: flexbox;
    gap: 0;
    max-height: 25%;
    max-width: 25%;
}


#dialog_containers {
    top: 0;
    position: fixed;
    float: left;
    z-index: 1000;
    left: 0;
}

#globeicon:hover,
#quiticon:hover,
#soundimg:hover,
#resourcebutton:hover,
#settingbutton:hover,
#casinoicon:hover {
    background-color: #ffdb4d;
}

#globeicon:active,
#quiticon:active,
#soundimg:active,
#resourcebutton:active,
#settingbutton:active,
#casinoicon:active {
    background-color: #e6b800;
}

#NextWeek {
    border: #e69d00 5px groove;
}

.close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background-color: #ff5c5c;
    color: white;
    border: none;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close:hover {
    background-color: #e04848;
}

footer {
    background-color: #fff8dc;
    border-top: 4px dashed #ffcc00;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 1rem;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px 12px 0 0;
}

footer h3 {
    margin-bottom: 10px;
    color: #444;
    font-weight: normal;
}

footer a {
    text-decoration: none;
    color: #d89f00;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #b87900;
    text-decoration: underline;
}

#games::backdrop,
#Black_Jack::backdrop,
#blackjack_game::backdrop,
#Slots::backdrop,
#slotsgame::backdrop {
    background-image: linear-gradient(180deg,
            #2c2c2c,
            #de0607,
            #2c2c2c,
            #de0607,
            #2c2c2c,
            #de0607,
            #181818);
    opacity: 0.50;
}

#games,
#Black_Jack,
#blackjack_game,
#Slots,
#slotsgame {
    background-image: linear-gradient(45deg,
            #ffffff,
            #ffbf17,
            #ffffff,
            #ffbf17,
            #ffffff,
            #ffbf17,
            #ffffff);
}

table {
    border-collapse: collapse;
}

td {
    padding-top: 5%;
    border: 8px groove #c52222;
    width: 100px;
    height: 100px;
    text-align: center;
    vertical-align: middle;
}

#OpenBJBtn,
#OpenSlotsBtn {
    background-color: transparent;
    border: 7px groove #c52222;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: medium;
}

input[type="number"] {
    width: 50%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: #fefefe;
}

#playbjbtn,
#playslotsBtn {
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

label {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#hitbtn,
#standbtn {
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#lever {
    background-color: transparent;
    border: none;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
}

/* Apply to the whole page or a specific scrollable container */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #ffeaa7;
    /* light yellow */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ffbf17;
    /* golden thumb */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e1a500;
    /* darker on hover */
}