/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    cursor: default;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #cccccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #4a5d23 0%, #6b7c3a 100%);
    color: white;
    border: 3px solid #2c3e50;
    margin-bottom: 30px;
    border-radius: 8px;
}

header h1 {
    font-family: "Times New Roman", serif;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header h2 {
    font-family: "Times New Roman", serif;
    font-size: 1.3em;
    font-weight: normal;
    opacity: 0.9;
}

/* Section Styles */
section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fafafa;
    border: 2px solid #d3d3d3;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h3 {
    font-family: "Times New Roman", serif;
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a5d23;
}

/* Countdown Clock Styles */
.countdown-section {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #4a5d23;
}

.countdown-container h3 {
    font-family: "Times New Roman", serif;
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.countdown-clock {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border: 2px solid #4a5d23;
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.time-value {
    font-family: "Courier New", monospace;
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.time-label {
    font-family: Verdana, sans-serif;
    font-size: 0.9em;
    color: #4a5d23;
    font-weight: bold;
    text-transform: uppercase;
}

/* Wisdom Tiles Styles */
.wisdom-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 3px solid #4682b4;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tile {
    background: url('tile.png') center center / cover no-repeat;
    border: 3px solid #1e3a8a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 5px;
}

.tile:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.tile-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tile-content p {
    font-family: "Imperial Script", cursive;
    font-size: 2.8em;
    color: #1e3a8a;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0;
    font-weight: normal;
    max-width: 80%;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

/* Ambtenaren Acties Section Styles */
.acties-section {
    background: linear-gradient(135deg, #fff8dc 0%, #ffe4b5 100%);
    border: 3px solid #daa520;
    margin-bottom: 40px;
}

.acties-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.actie-button {
    font-family: Verdana, sans-serif;
    font-size: 1em;
    padding: 25px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 3px solid #daa520;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.actie-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.actie-button:hover::before {
    left: 100%;
}

.actie-button:hover {
    background: linear-gradient(135deg, #fffacd 0%, #f0e68c 100%);
    border-color: #b8860b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.actie-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.actie-icon {
    font-size: 2.5em;
    display: block;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.actie-title {
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

/* Actie Modal Styles */
.actie-modal {
    max-width: 600px;
}

.actie-content {
    text-align: center;
    padding: 20px 0;
}

.actie-content h3 {
    font-family: "Times New Roman", serif;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.actie-content p {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.actie-content .progress-bar {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border: 2px solid #daa520;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.actie-content .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #daa520, #b8860b);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 13px;
}

.actie-content .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9em;
}

.actie-content .result {
    font-family: "Times New Roman", serif;
    font-size: 1.2em;
    color: #2c3e50;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #4a5d23;
    border-radius: 8px;
    font-weight: bold;
}

.actie-content .koffie-animation {
    font-size: 3em;
    animation: koffieDrinken 2s infinite;
}

@keyframes koffieDrinken {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

.actie-content .besluit-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.actie-content .besluit-option {
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 2px solid #4a5d23;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
}

.actie-content .besluit-option:hover {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
    border-color: #4682b4;
    transform: translateY(-2px);
}

/* Stamp Area Styles */
.stamp-area {
    margin: 20px 0;
    text-align: center;
}

.stamp-area h4 {
    font-family: "Times New Roman", serif;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.document-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.document {
    position: relative;
    width: 500px;
    height: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid #2c3e50;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.document:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.document-content {
    font-family: "Courier New", monospace;
    font-size: 0.8em;
    color: #2c3e50;
    line-height: 1.3;
    max-height: 360px;
    overflow-y: auto;
}

.document-content h5 {
    font-family: "Times New Roman", serif;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 2px solid #4a5d23;
    padding-bottom: 5px;
}

.document-content h6 {
    font-family: "Times New Roman", serif;
    font-size: 0.9em;
    color: #4a5d23;
    margin: 10px 0 5px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.document-content p {
    margin-bottom: 6px;
    font-weight: normal;
}

.document-content ul {
    margin: 5px 0;
    padding-left: 20px;
}

.document-content li {
    margin-bottom: 3px;
}

.document-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.document-section {
    margin-bottom: 8px;
    padding-bottom: 5px;
}

.stamp {
    position: absolute;
    pointer-events: none;
    font-family: "Courier New", monospace;
    font-size: 1.4em;
    font-weight: bold;
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.1);
    border: 3px solid #d32f2f;
    border-radius: 50%;
    padding: 20px;
    width: 140px;
    height: 140px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-15deg);
    box-shadow: 
        0 0 0 2px rgba(211, 47, 47, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    line-height: 1.2;
    z-index: 10;
}

.stamp-instruction {
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.beoordelen-button-container {
    margin: 20px 0;
    text-align: center;
}

.beoordelen-button {
    font-family: Verdana, sans-serif;
    font-size: 1.1em;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4a5d23 0%, #6b7c3a 100%);
    color: white;
    border: 3px solid #2c3e50;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.beoordelen-button:hover {
    background: linear-gradient(135deg, #6b7c3a 0%, #8b9c5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.beoordelen-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.beoordelen-button:disabled {
    background: linear-gradient(135deg, #ccc 0%, #ddd 100%);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-icon {
    font-size: 1.2em;
}

.button-text {
    font-weight: bold;
}

/* Ambtenaar van de Maand Section Styles */
.ambtenaar-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #4a5d23;
    margin-bottom: 40px;
}

.ambtenaar-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.ambtenaar-card {
    display: flex;
    background: #ffffff;
    border: 2px solid #4a5d23;
    border-radius: 8px;
    padding: 25px;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ambtenaar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.ambtenaar-foto {
    flex-shrink: 0;
    margin-right: 25px;
}

.ambtenaar-foto img {
    width: 160px;
    height: 200px;
    border-radius: 0;
    border: none;
    object-fit: cover;
    box-shadow: 
        0 0 0 8px #DAA520,
        0 0 0 12px #B8860B,
        0 0 0 16px #DAA520,
        0 8px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #DAA520, #B8860B, #DAA520);
    padding: 8px;
}

.ambtenaar-info {
    flex: 1;
}

.ambtenaar-info h4 {
    font-family: "Times New Roman", serif;
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: bold;
}

.ambtenaar-titel {
    font-family: Verdana, sans-serif;
    font-size: 0.9em;
    color: #4a5d23;
    font-weight: bold;
    margin-bottom: 12px;
    font-style: italic;
}

.ambtenaar-beschrijving {
    font-family: Arial, sans-serif;
    font-size: 1em;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* Games Section Styles */
.games-section {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 3px solid #666666;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Raam Section Styles */
.raam-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e6f1 100%);
    border: 3px solid #5dade2;
    margin-bottom: 40px;
}

.raam-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.raam-button {
    font-family: Verdana, sans-serif;
    font-size: 1.1em;
    padding: 30px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid #5dade2;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.raam-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.2), transparent);
    transition: left 0.6s;
}

.raam-button:hover::before {
    left: 100%;
}

.raam-button:hover {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e6f1 100%);
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.raam-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.raam-icon {
    font-size: 3em;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.raam-title {
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
    font-size: 1.2em;
}

.raam-subtitle {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
}

.game-button {
    font-family: Verdana, sans-serif;
    font-size: 1em;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 3px solid #666666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-button:hover {
    background: linear-gradient(135deg, #e6e6e6 0%, #d4d4d4 100%);
    border-color: #4a5d23;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-icon {
    font-size: 2em;
    display: block;
}

.game-title {
    font-weight: bold;
    color: #2c3e50;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border: 3px solid #4a5d23;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

#modalTitle {
    font-family: "Times New Roman", serif;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-right: 30px;
}

#gameFrame {
    width: 100%;
    height: 500px;
    border: 2px solid #cccccc;
    border-radius: 4px;
}

/* Raam Modal Styles */
.raam-modal {
    background-color: rgba(0, 0, 0, 0.9);
}

.raam-modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    margin: 2.5vh auto;
}

.raam-view {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#raamImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: filter 0.5s ease;
}

.darkness-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.raam-timer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: "Courier New", monospace;
    font-size: 1.5em;
    font-weight: bold;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.raam-modal .close {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 2em;
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.raam-modal .close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: black;
    transform: scale(1.1);
}

/* Completion Message Styles */
.completion-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
}

.completion-content h3 {
    font-family: "Times New Roman", serif;
    color: #5dade2;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.completion-content p {
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
    line-height: 1.4;
}

.completion-btn {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.completion-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
    margin-top: 40px;
    border-radius: 6px;
}

footer p {
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .countdown-clock {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 10px;
    }
    
    .time-value {
        font-size: 1.8em;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .tile-content p {
        font-size: 2.2em;
    }
    
    .ambtenaar-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .ambtenaar-foto {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .ambtenaar-foto img {
        width: 120px;
        height: 150px;
    }
    
    .games-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 2em;
    }
    
    header h2 {
        font-size: 1.1em;
    }
    
    .acties-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .actie-button {
        padding: 20px 15px;
    }
    
    .actie-icon {
        font-size: 2em;
    }
    
    .actie-title {
        font-size: 0.9em;
    }
    
    .document {
        width: 400px;
        height: 320px;
        padding: 15px;
    }
    
    .document-content {
        font-size: 0.75em;
        max-height: 280px;
    }
    
    .stamp {
        width: 100px;
        height: 100px;
        font-size: 1.1em;
        padding: 15px;
    }
    
    .beoordelen-button {
        font-size: 1em;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tile-content p {
        font-size: 2em;
    }
    
    .ambtenaar-foto img {
        width: 100px;
        height: 125px;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 8px;
    }
    
    .time-value {
        font-size: 1.5em;
    }
    
    .time-label {
        font-size: 0.8em;
    }
    
    .acties-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .actie-button {
        padding: 15px 10px;
    }
    
    .actie-icon {
        font-size: 1.8em;
    }
    
    .actie-title {
        font-size: 0.8em;
    }
    
    .raam-button {
        padding: 20px 25px;
        min-width: 200px;
    }
    
    .raam-icon {
        font-size: 2.5em;
    }
    
    .raam-title {
        font-size: 1em;
    }
    
    .raam-subtitle {
        font-size: 0.8em;
    }
    
    .document {
        width: 350px;
        height: 250px;
        padding: 10px;
    }
    
    .document-content {
        font-size: 0.7em;
        max-height: 230px;
    }
    
    .stamp {
        width: 70px;
        height: 70px;
        font-size: 0.9em;
        padding: 10px;
    }
    
    .stamp-area h4 {
        font-size: 1em;
    }
    
    .beoordelen-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }
}

/* Animation for wisdom tiles */
.tile.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.tile.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Cursor styles */
a, button, .game-button {
    cursor: pointer;
}

/* Additional 2005-style elements */
.countdown-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a5d23, #6b7c3a, #4a5d23);
    border-radius: 8px;
    z-index: -1;
}

.wisdom-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4682b4, #5a9bd4, #4682b4);
    border-radius: 8px;
    z-index: -1;
}

.games-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #666666, #888888, #666666);
    border-radius: 8px;
    z-index: -1;
} 

/* RFC Form Styles */
.rfc-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.rfc-step {
    background: #ffffff;
    border: 2px solid #daa520;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rfc-step h4 {
    font-family: "Times New Roman", serif;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #daa520;
    font-size: 1.2em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #daa520;
    box-shadow: 0 0 5px rgba(218, 165, 32, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.rfc-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.rfc-next-btn,
.rfc-prev-btn,
.rfc-submit-btn {
    font-family: Verdana, sans-serif;
    font-size: 1em;
    padding: 12px 25px;
    border: 2px solid #daa520;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.rfc-next-btn,
.rfc-submit-btn {
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
    color: white;
}

.rfc-next-btn:hover,
.rfc-submit-btn:hover {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rfc-prev-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
}

.rfc-prev-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rfc-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    font-size: 1.1em;
    padding: 15px 30px;
}

.rfc-submit-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    border-color: #20c997;
}

/* RFC Preview Styles */
.rfc-preview {
    background: #f8f9fa;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.preview-section h5 {
    font-family: "Times New Roman", serif;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1em;
    border-bottom: 2px solid #4a5d23;
    padding-bottom: 8px;
}

.preview-content {
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.preview-row {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.preview-row:last-child {
    border-bottom: none;
}

.preview-text {
    margin-top: 5px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.85em;
    line-height: 1.3;
}

.priority-laag { color: #28a745; font-weight: bold; }
.priority-normaal { color: #ffc107; font-weight: bold; }
.priority-hoog { color: #fd7e14; font-weight: bold; }
.priority-kritiek { color: #dc3545; font-weight: bold; }

/* RFC Success Message */
.rfc-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.rfc-success h4 {
    font-family: "Times New Roman", serif;
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.rfc-success p {
    font-family: Arial, sans-serif;
    color: #155724;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.rfc-success small {
    color: #6c757d;
    font-style: italic;
    font-size: 0.85em;
} 

@media (max-width: 768px) {
    .rfc-form-container {
        max-width: 500px;
    }
    
    .rfc-step {
        padding: 20px;
    }
    
    .rfc-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .rfc-next-btn,
    .rfc-prev-btn,
    .rfc-submit-btn {
        width: 100%;
        padding: 15px;
    }
} 

@media (max-width: 480px) {
    .rfc-form-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .rfc-step {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .rfc-step h4 {
        font-size: 1.1em;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.85em;
    }
    
    .preview-content {
        font-size: 0.8em;
    }
} 

/* 404 Error Page Styles */
.error-404-container {
    text-align: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-content {
    background: #ffffff;
    border: 3px solid #dc3545;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.error-404-title {
    font-family: "Courier New", monospace;
    font-size: 4em;
    color: #dc3545;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(220, 53, 69, 0.3);
    font-weight: bold;
}

.error-404-subtitle {
    font-family: "Times New Roman", serif;
    font-size: 1.5em;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.error-404-message {
    text-align: left;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.error-404-message p {
    margin-bottom: 10px;
}

.error-404-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.error-404-message li {
    margin-bottom: 5px;
}

.status-pending {
    color: #ffc107;
    font-weight: bold;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
}

.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.error-404-btn {
    font-family: Verdana, sans-serif;
    font-size: 1em;
    padding: 12px 25px;
    border: 2px solid #dc3545;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.error-404-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.error-404-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: #6c757d;
}

.error-404-btn.secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
}

.error-404-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-family: "Courier New", monospace;
    color: #6c757d;
    font-size: 0.8em;
    line-height: 1.4;
}

/* Error Details Styles */
.error-details {
    text-align: left;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.error-details h4 {
    font-family: "Times New Roman", serif;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
}

.error-details-content {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.error-details-content p {
    margin-bottom: 8px;
}

.error-stack-trace {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.8em;
    line-height: 1.4;
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid #34495e;
} 

@media (max-width: 768px) {
    .error-404-title {
        font-size: 2.5em;
    }
    
    .error-404-subtitle {
        font-size: 1.1em;
    }
    
    .error-404-content {
        padding: 20px;
    }
    
    .error-details-content {
        font-size: 0.8em;
        padding: 15px;
    }
    
    .error-stack-trace {
        font-size: 0.7em;
        padding: 10px;
    }
    
    .raam-modal-content {
        width: 98%;
        height: 95vh;
        margin: 1vh auto;
    }
    
    .raam-timer {
        font-size: 1.2em;
        padding: 10px 15px;
    }
    
    .completion-message {
        max-width: 350px;
        padding: 20px;
    }
    
    .completion-content h3 {
        font-size: 1.2em;
    }
} 