* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 {
    color: #333;
    margin-bottom: 20px;
}

.instructions-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.instructions-box {
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.instructions-box ul {
    list-style: none;
    padding-left: 0;
}

.instructions-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.instructions-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vote-counter {
    font-size: 18px;
    color: #333;
}

.completion-message {
    font-size: 16px;
    color: #333;
}

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

.completion-content {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    animation: slideUp 0.4s ease-out;
}

.completion-content h2 {
    font-size: 36px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.completion-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.completion-content .completion-message {
    font-style: italic;
    color: #888;
    margin-bottom: 30px;
}

.completion-content .btn {
    margin-top: 10px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.photo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 320px;
}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    flex-grow: 0;
    display: block;
    background: #f9f9f9;
    padding: 8px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.photo-img:active {
    -webkit-touch-callout: none;
}

.photo-footer {
    padding: 15px;
    text-align: center;
    background: white;
    border-top: 1px solid #eee;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.vote-btn:hover:not(:disabled) {
    background: #218838;
}

.vote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.vote-btn.voted {
    background: #6c757d;
}

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

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

.admin-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    margin: 0;
}

.btn-export {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-export:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-table thead {
    background: #333;
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table tbody tr:hover {
    background: #f9f9f9;
}

.welcome-intro {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

.character-section {
    text-align: left;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #007bff;
}

.character-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.character-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.character-description {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
}

.question-section {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: center;
}

.question-section blockquote {
    font-size: 18px;
    font-style: italic;
    color: #007bff;
    margin: 15px 0;
    padding: 15px;
    border-left: 3px solid #007bff;
    background: white;
    border-radius: 4px;
}

.question-section p {
    color: #333;
    line-height: 1.6;
}

.question-section strong {
    color: #007bff;
}
