* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

.page {
    display: none;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.page.active {
    display: block;
}

/* Page 1 - Admin Form */
.admin-form {
    background-color: #fff;
    color: #000;
    width: 100%;
    height: 100%;
    padding: 40px;
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.header-left, .header-right {
    font-size: 18px;
    font-weight: bold;
}

.title {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.1;
}

.content {
    display: flex;
    gap: 60px;
}

.left-section {
    flex: 1;
}

.right-section {
    flex: 1;
}

.description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.checkbox-text {
    font-size: 16px;
    font-weight: bold;
}

.small-text {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.4;
}

.tiny-text {
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

.input-group {
    margin-bottom: 30px;
}

.input-label {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.input-field {
    width: 100%;
    height: 60px;
    border: 2px solid #000;
    background-color: #fff;
}

.checkbox-group-right {
    margin-bottom: 30px;
}

.small-text-right {
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.4;
}

.access-btn {
    width: 100%;
    height: 60px;
    background-color: #ccc;
    color: #000;
    border: 2px solid #000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.access-btn:hover {
    background-color: #aaa;
}

.access-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timer-display {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: bold;
    color: #ff0000;
    display: none;
}

/* Page 2 - Food Grid */
.food-grid-page {
    background-color: #000;
    width: 100%;
    height: 100%;
    display: flex;
}

.food-grid-container {
    flex: 3;
    position: relative;
    background-color: #444;
    overflow: hidden;
}

.table-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
}

.food-illustration {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.food-item {
    position: absolute;
    background-color: #fff;
    border: 3px solid #fff;
    cursor: pointer;
    opacity: 1;
}

.food-item:hover {
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.food-item.consumed {
    background-color: #333;
    border-color: #333;
    cursor: not-allowed;
}

.reading-table-map {
    flex: 1;
    background-color: #fff;
    color: #000;
    padding: 30px;
    overflow-y: auto;
}

.map-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.fragment-ids, .coordinates {
    font-size: 14px;
    margin-bottom: 10px;
}

.status-list, .time-list {
    margin-top: 20px;
}

.time-list p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: monospace;
}

.cell-error-message {
    position: absolute;
    bottom: 20px;
    left: calc(75% - 420px);
    background-color: rgba(0, 0, 0, 0.95);
    color: #ff0000;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid #ff0000;
    max-width: 400px;
    z-index: 1000;
    display: none;
}

.cell-error-message.active {
    display: block;
}

.cell-error-message .error-header {
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #ff0000;
    padding-bottom: 10px;
}

.cell-error-message .error-body {
    color: #cc0000;
}

.page2-timer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: bold;
    color: #ff0000;
}

/* Page 3 - Wash Page with Falling Text */
.cascade-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cascade-text-container {
    background-color: #ffffff;
}

.cascade-text-svg {
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.08));
}

.wash-page {
    background-color: #ffffff;
    overflow: hidden;
}

.faucet-area {
    position: absolute;
    top: 2%;
    left: 5%;
    width: 20vw;
    height: auto;
    z-index: 20;
}

.faucet-img {
    width: 100%;
    height: auto;
}

.next-page-btn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background-color: #1e90ff;
    color: #fff;
    border: 2px solid #000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.next-page-btn:hover {
    background-color: #0066cc;
}

.page3-timer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: bold;
    color: #ff0000;
}

/* Page 4 - Curved Text Page */
.curved-text-page {
    background-color: #fff;
    width: 100%;
    height: 100%;
    position: relative;
}

.curved-text-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curved-text-svg {
    width: 100%;
    height: 100%;
}

.curved-text-single {
    font-size: 20px;
    fill: #000;
    font-family: serif;
}

.page3-text {
    font-size: 22px;
    fill: #0066FF;
    font-family: 'Arial Black', Arial, sans-serif;
}

.page3-text-2 {
    font-size: 20px;
    fill: #0066FF;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

.chaos-word {
    font-size: 40px;
    font-weight: 900;
}

.page3-text-3 {
    font-size: 24px;
    fill: #0066FF;
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
}

.page4-timer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: bold;
    color: #ff0000;
}

/* Flicker effect */
.flicker {
    animation: flicker 0.1s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.blackout {
    background-color: #000 !important;
}