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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.input-section {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 400px;
}

.input-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
}

.code-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#codeInput {
    padding: 1rem;
    font-size: 1.2rem;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 8px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#codeInput:focus {
    border-color: #666666;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.2);
}

#codeInput::placeholder {
    color: #888888;
}

button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #333333;
    color: #ffffff;
    border: 2px solid #555555;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.1s ease;
    font-weight: 500;
}

button:hover {
    background-color: #444444;
    border-color: #666666;
}

button:active {
    transform: translateY(1px);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.small-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #444444;
    color: #ffffff;
    border: 1px solid #666666;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.1s ease;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.small-button:hover {
    background-color: #555555;
    border-color: #777777;
}

.small-button:active {
    transform: translateY(1px);
}

.spoiler {
    background-color: #555555;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: 1px solid #666666;
}

.spoiler:hover {
    background-color: #666666;
    border-color: #777777;
}

.spoiler-content {
    display: none;
    background-color: #333333;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #555555;
    font-style: italic;
    color: #dddddd;
    margin-top: 0.5rem;
    line-height: 1.5;
    max-width: 100%;
    word-wrap: break-word;
}

.spoiler-content[style*="display: inline"] {
    display: block !important;
}

.content-sections {
    width: 100%;
    max-width: 600px;
}

.content-section {
    background-color: #262626;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.content-section.hidden {
    display: none;
}

.content-section.show {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 400;
}

.content-section h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #cccccc;
    font-weight: 400;
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #dddddd;
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.text-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.text-content li {
    margin-bottom: 0.5rem;
    color: #dddddd;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.final-content {
    text-align: center;
    padding: 2rem;
    background-color: #333333;
    border-radius: 8px;
    border: 1px solid #555555;
}

/* Temporary Response Styles */
.temporary-response {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #2d4a2d;
    border: 2px solid #4a7c4a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.temporary-response.show {
    opacity: 1;
    transform: translateY(0);
}

.temporary-response.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Slideshow Styles */
.slideshow-container {
    margin: 1.5rem 0;
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 300px;
    border: 1px solid #404040;
}

.slideshow-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slide-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.slideshow-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888888;
    font-size: 1rem;
    z-index: 10;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .input-section h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    #codeInput {
        font-size: 1.1rem;
        padding: 0.9rem;
    }
    
    button {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .slideshow-container {
        height: 250px;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .input-section h1 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .slideshow-container {
        height: 200px;
        margin: 0.5rem 0;
    }
}