body {
        font-family: Arial, sans-serif;
        background-color: #7d121d;
        color: #fff;
        margin: 0;
        padding: 20px;
        overflow-x: hidden;
    }

    h1 {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(180deg, #fff7cc 0%, #f9e27a 25%, #e3b23c 50%, #f6d675 75%, #b98c22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

@keyframes shimmer { 
        0%,100% { 
        text-shadow: 0 0 4px rgb(255 210 80 / 60%), 0 0 10px rgb(255 230 120 / 40%); 
        } 
        50% { 
        text-shadow: 0 0 6px rgb(255 240 180 / 90%), 0 0 14px rgb(255 255 220 / 70%); 
        } 
}

    h3 {
        text-align: center;
        color: #fff; 
        font-size: 32px;
    }

h1 {
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 10px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 29px;
  }
}

@media (max-width: 480px) {
  h3 {
    font-size: 27px;
  }
}

    #main-container {
        display: flex;
        justify-content: space-between;
        gap: 1%;
        margin-top: 30px;
    }

    .container {
        width: 49%;
        border-radius: 8px;
        border: 2px solid #FFD700;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
        background: #034f1b;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
        padding: 10px;
        display: flex;
        flex-direction: column;
        margin-bottom: 20px; /* Add spacing between rows */
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }

    th, td {
        padding: 10px;
        border-bottom: 1px solid #eee; 
        text-align: left;
    }

    th {
        background-color: #eecf4e; 
        color: #000;
    }

    tr:hover {
        background-color: #2e8b57; 
        color: #fff; 
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .scrollable {
        height: 400px;
        overflow-y: auto;
        flex-grow: 1;
    }

    #tempoSim, #currentEvent, #guideLink, #countdown, #footer-note, #money-object {
        text-align: center;
        font-size: 18px;
        margin-bottom: 20px;
        color: #fff; 
    }

    #guideLink {
    margin-bottom: 20px;
}

    #guideLink a {
    color: #ffd700; 
    text-decoration: none; 
    font-weight: bold; 
}

#guideLink a:hover {
  text-decoration: underline;
}

#countdown a { 
    color: #ffd700; 
    text-decoration: none; 
    font-weight: bold; 
}

#countdown a:hover { 
  text-decoration: underline;
}

#viewAllLink {
  display: none;
  margin-left: 10px;
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

#viewAllLink:hover {
  text-decoration: underline;
}

.search-icon {
    color: #f0f0f0;
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
    transition: color 0.2s ease;
}

    #rewards {
        margin-top: 30px;
        text-align: center;
    }

    #rewards-dropdown {
        background: #white; 
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        max-height: 400px;
        width: 80%;
        margin: 0 auto;
    }

.console-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 3px solid #ffd700;
    display: block;
    margin: 10px auto;
    background: #f2f5f5;
}

.console-title {
    background-color: #eecf4e;
    color: black;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid #eee;
}

.console-message {
  text-align: center;
  margin-top: 40px;
  line-height: 1.6;
}

.memorial-active #console-container,
.memorial-active #console-content,
.memorial-active #sim-modal-content {
  background: #000 !important;
}

    .hidden {
    display: none;
}

.emoji {
  height: 1em;
  width: 1em;
  vertical-align: -0.1em;
}

.join-label {
  display: inline-block;
  background: linear-gradient(to right, #facc15, #f472b6);
  color: #1a1a1a;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 16px;
  font-size: 0.75em;
  margin-left: 8px;
  vertical-align: middle;
}

    .description-container {
        max-width: 260px; 
        word-wrap: break-word; 
        white-space: pre-wrap; 
        margin: 0 auto;
        padding: 15px;
        border: 1px solid #ffd700;
        background-color: rgba(251, 241, 0, 0.25);
        border-radius: 10px;
        box-shadow: 0 0 10px #fff30050;
        text-align: left;
    }
        
@media (max-width: 768px) {
    #main-container, #bottom-container {
        flex-direction: column;
        align-items: center;
    }

    .container {
        width: 95%;
        margin: 0 auto 20px auto;
    }
    
    #bottom-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Adjust order on mobile */
    #console-container {
        order: 1; /* Console first in mobile view */
    }

    #rewards-container {
        order: 2; /* Rewards after Console in mobile view */
    }
}

    /* Show icon on row hover */
    table tr {
        position: relative;
    }

    table tr:hover::after {
        content: '';
        position: absolute;
        width: 20px; 
        height: 20px; 
        background-image: url('https://png.pngtree.com/png-vector/20230831/ourmid/pngtree-3d-rendering-snowflake-isolated-png-image_9192400.png'); 
        background-size: contain;
        background-repeat: no-repeat;
        right: 10px; 
        top: 10px; 
        animation: fade-in 0.3s; 
    }

    /* Fade-in animation */
    @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

#lots-title, #players-title {
    margin-bottom: 10px;
    margin-top: 20px;
}

    #lot-filter {
    display: flex;
    justify-content: space-around;
    margin: 10px;
    color: #FFD700;
}
#lot-filter i {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s ease;
}
#lot-filter i:hover {
    transform: scale(1.2);
    color: #FFD700;
}

.event-label {
  display: inline-block;
  background: linear-gradient(to right, #facc15, #f472b6);
  color: #1a1a1a;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85em;
  margin-bottom: 8px;
}

.event-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #ec4899, #facc15, #ec4899);
  margin: 10px 0;
}

.event-card {
  background-color: rgba(251, 241, 0, 0.25);
  border: 1px solid #ffd700;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 0 10px #fff30050;
  line-height: 1.5;
  max-width: 600px;
  margin: auto;
}

#dark-mode-toggle i {
    font-size: 24px;
}

body.dark-mode {
    background-color: #1c1c1c;
    color: #f1f1f1;
}

.dark-mode .container {
    background-color: #333;
    color: #f1f1f1;
    border: #888;
}

.dark-mode th {
    background-color: #444;
    color: white;
}

.dark-mode tr:hover {
    background-color: #555;
}

.dark-mode h1, 
.dark-mode h3, 
.dark-mode #tempoSim, 
.dark-mode #currentEvent, 
.dark-mode #guideLink, 
.dark-mode #guideLink a,
.dark-mode #countdown,
.dark-mode #footer-note,
.dark-mode #money-object,
.dark-mode .search-icon {
    color: #f1f1f1;
}

.dark-mode #lot-filter i {
    color: #f1f1f1; 
}

.dark-mode #lot-filter i:hover {
    color: #f1f1f1; 
}

.dark-mode tr:hover {
    background-color: #444; 
    color: #f1f1f1; 
}

.dark-mode .console-title {
    background-color: #444;
    color: #ffffff;
    border-bottom: 1px solid #eee;
}

.dark-mode .description-container {
    background-color: transparent; 
    color: #f1f1f1;
}

.dark-mode .console-img {
    border-color: #888 !important;
}

#events-container a {
    color: #FFD700;
    text-decoration: underline;
    font-weight: bold;
}

body.dark-mode #events-container a {
    color: #f1f1f1;
}

#console-content a, #sim-modal a {
    color: #FFD700;
    text-decoration: underline;
    font-size: 14px;
    display: inline-block;
    margin-top: 3px;
    text-align: center;
}

body.dark-mode #console-content a {
    color: #f1f1f1;
}

.dashboard-icon {
    width: 40px; 
    height: auto; 
    vertical-align: middle; 
}

.mirrored {
    transform: scaleX(-1); 
}

.icon::before {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.sim-name {
  cursor: pointer;
  text-decoration: none;
}

.sim-name:hover {
  text-decoration: underline;
}

#sim-modal .close {
  color: #ffffff;
  padding: 4px 10px;
  font-weight: bold;
}

.sims-online-icon::before {
    font: var(--fa-font-solid);
    content: "\f7a7";
}

.active-lots-icon::before {
    font: var(--fa-font-solid);
    content: "\f7e2";
}

.upcoming-events-icon::before {
    font: var(--fa-font-solid);
    content: "\f7e2";
}

#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: #F1C75D;
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #ffdb81;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #034f1b;
  margin: 4% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  color: #fff;
  max-width: 600px;
  text-align: center;
  border: 2px solid #FFD700;
}

#sim-modal .modal-content {
  margin-top: 5% !important;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}
.close:hover {
  color: #fff;
}

.tab-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
  gap: 1em;
}

.tab-btn {
  padding: 8px 16px;
  font-size: 1em;
  background: #d7b560;
  color: #000;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.tab-btn.active {
  background: #ffd700;
  color: #000;
}

.tab-content {
  display: none;
}

/* Job Scheduler Modal */
#jobSchedulerModal .modal-content {
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  background-color: #034f1b;
  border: 2px solid #ffd700;
  max-width: 600px;
  width: 80%;
  text-align: center;
  font-size: 16px;
}

#job-scheduler-container {
  font-family: inherit;
  font-size: inherit;
  color: #fff;
}

#job-scheduler-container .panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.6em;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}

#job-scheduler-container .panel-header span:first-child {
  display: flex;
  align-items: center;
  font-size: inherit;
  line-height: 1;
}

.job-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.job-btn {
  padding: 8px 16px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  background-color: rgba(255, 215, 0, 0.12);
  color: #eecf4e;
  border: 1px solid rgba(255, 215, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.job-btn:hover {
  background-color: rgba(255, 215, 0, 0.3);
  color: fff8d2;
  border-color: rgba(255, 215, 0, 0.6);
}

.job-btn.active {
  background-color: #ffd700;
  color: #000;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.job-info {
  border-top: 1px solid #FFD700;
  padding-top: 15px;
  font-size: 1.125em;
  line-height: 1.6;
  color: white;
  text-align: center;
}

.job-countdown {
  color: #ffa502;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 1.125em;
}

@media (max-width: 500px) {
  .job-btn {
    font-size: 11px;
    padding: 6px 8px;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.job-credit {
  margin-top: 20px;
  font-size: 0.9em;
  color: #aaa;
  text-align: center;
}

.job-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.job-link:hover {
  text-decoration: underline;
}

#console-content a.sim-note-link,
.sim-note-link {
  color: #FFD700;
  text-decoration: none;
  font-size: inherit;
  font-weight: bold;
}

#console-content a.sim-note-link:hover,
.sim-note-link:hover {
  text-decoration: underline;
}

#console-content a.event-flag-link {
  text-decoration: none;
  font-size: inherit;
 }

#console-content a.event-flag-link:hover {
  text-decoration: underline;
}

span[title="Mentor"],
span[title="Admin"] {
  filter: brightness(1) drop-shadow(0 0 2px #fff);
  margin-left: 2px;
}

    /* Stars background - used with permission from Sorta */
    .stars {
      position: fixed;
      width: 100%;
      height: 100%;
      z-index: -1;
      top: 0;
      left: 0;
      overflow: hidden;
    }
    
    .star {
      position: absolute;
      background-color: white;
      border-radius: 50%;
      opacity: 0.8;
    }
    
    @keyframes twinkle {
      0%, 100% { opacity: 0.2; }
      50% { opacity: 1; }
    }

.console-icon::before {
    font: var(--fa-font-solid);
    content: "\f2dc";
}

.snowflake-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ensure it spans the full height of the body */
    overflow: hidden; /* Contain snowflakes within this container */
    pointer-events: none; /* Prevent interaction with snowflakes */
}

/* Snowflakes*/
@keyframes snow-fall {
    0% {
        transform: translateY(-20px); /* Start slightly above the viewport */
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 20px)); /* Fall just beyond the viewport */
        opacity: 0;
    }
}

.snowflake-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Adjust to use viewport height */
    overflow: hidden; /* Prevent snowflakes from affecting the layout */
    pointer-events: none; /* Avoid interactions with snowflakes */
}

.snowflake {
    position: absolute;
    top: -20px; /* Start just above the viewport */
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    animation: snow-fall linear infinite;
}

/* Snowflake Variations*/
.snowflake:nth-of-type(1) { left: 10%; animation-duration: 10s; }
.snowflake:nth-of-type(2) { left: 20%; animation-duration: 12s; }
.snowflake:nth-of-type(3) { left: 30%; animation-duration: 8s; }
.snowflake:nth-of-type(4) { left: 40%; animation-duration: 15s; }
.snowflake:nth-of-type(5) { left: 50%; animation-duration: 9s; }
.snowflake:nth-of-type(6) { left: 60%; animation-duration: 11s; }
.snowflake:nth-of-type(7) { left: 70%; animation-duration: 7s; }
.snowflake:nth-of-type(8) { left: 80%; animation-duration: 14s; }
.snowflake:nth-of-type(9) { left: 90%; animation-duration: 10s; }
.snowflake:nth-of-type(10) { left: 100%; animation-duration: 13s; }
