body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

h1 {
    margin: 0;
    color: #d1b7a7;
    font-size: 1.8em;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #57453d;
}

header img {
    height: 75px;
}

#login-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

#login-container input[type="text"],
#login-container input[type="password"] {
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#login-container label {
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
}

#login-container button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #e68535;
    font-weight: bold;
    cursor: pointer;
}

.day-section {
    margin: 20px;
}

.day-header {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: #333;
}

.day-container {
    position: relative;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.track-column {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid #eee;
}

.track-label {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    padding: 6px 0;
    box-sizing: border-box;
}

.event {
    position: absolute;
    left: 4px;
    right: 4px;
    background: #eeeeee;
    color: #000;
    border-radius: 4px;
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 0.9em;
    white-space: pre-wrap;
    border: 1px solid white;
}

.event-time {
    font-size: 0.8em;
    opacity: 0.8;
    margin-bottom: 2px;
}

.event-image {
    float: right;
    width: 200px;
    margin-left: 1em;
    margin-bottom: 0.5em;
    border-radius: 8px;
    object-fit: contain;
}

/* Responsive behavior for phones */
@media (max-width: 800px) {
    .event-image {
        float: none;
        display: block;
        margin: 1em auto;
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}



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

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    padding: 20px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

.close-button {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5em;
    cursor: pointer;
}

.subtle {
    font-size: 0.8em;
    color: #777;
    margin-top: 10px;
    display: block;
}

#participate-btn {
    padding: 8px 16px;
    font-weight: bold;
    background-color: #4CAF50;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

#participate-btn.active {
    background-color: #f44336;
}

#participate-btn.waitinglist {
    background-color: orange;
}

.seat-info {
    font-size: 0.9em;
    color: #333;
    margin-top: 4px;
}

.tag-row {
    position: absolute;
    top: 0px;
    right: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

.seat-tag {
    background-color: #999;
    color: white;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
}

.text-tag {
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.9em;
    font-variant: small-caps;
    background: none;
    color: #333;
    display: inline-block;
    white-space: nowrap;
}

#login-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 100%; /* Fill the header height */
    padding: 6px 0;
}

.menu {
    font-size: 0.9em;
    color: #fff;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: none;
    box-shadow: none;
    padding: 0;
    margin-top: auto;
    margin-bottom: 4px; /* extra push if needed */
}


.menu-item {
    cursor: pointer;
    padding: 2px 4px;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    border-bottom: 2px solid transparent;
}

.menu-item:hover {
    opacity: 1;
}

.menu-item.active {
    border-bottom: 2px solid #fff;
    font-weight: 500;
}

.separator {
    margin: 0 6px;
    color: #fff;
    opacity: 0.5;
}







@media print {
    .event {
      background-color: #ffffff !important; /* optional: clean background */
      border: 2px solid black !important;   /* thick black border for visibility */
      color: black !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }
  
    .seat-tag {
      border: 1px solid black !important;
      background-color: #eee !important;
      color: black !important;
    }
  
    .track-label {
      border-bottom: 1px solid #000;
      background-color: #f0f0f0 !important;
      color: black !important;
    }
  
    .day-header {
      font-weight: bold;
      font-size: 1.4em;
      margin: 12px 0 6px;
      color: black !important;
    }
  
    /* Hide UI elements not needed for print */
    header,
    #login-container,
    #user-info,
    #event-modal,
    .modal,
    .menu,
    button {
      display: none !important;
    }
  
    body {
      background: white !important;
      color: black !important;
    }
  }
  


.star {
    cursor: pointer;
    color: #aaa;
}

.star.selected {
    color: gold;
}




#splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#splash-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}