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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    line-height: 1.6;

    /* background */
    transition: 3s;
    background-image: url("./assets/background-img.svg");
    background-size: cover;
    background-color: rgba(250,250,250,1);
    background-blend-mode: lighten;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.header {
    background: #77BEF0;
    color: #161a4c;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.main-content {
    padding: 40px;
}

.game-section {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Puzzle String Section Styles */
.current-string {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    color: #161a4c;
}

.date-string {
    display: none;
    font-weight: bold;
    margin-right: 5px;
    font-size: 14px;
}

.string-display {
    font-family: monospace;
    font-size: 16px;
    line-height: 1.8;
    word-wrap: break-word;
    display: inline;
}

.leaf-bracket {
    background: rgba(255, 203, 97, 0.20);
    border-radius: 3px;
    padding: 1px 3px;
    display: inline;
}

.correct-answer {
    background: rgba(39, 174, 96, 0.2);
    border-radius: 2px;
    padding: 1px 2px;
    margin: 0;
    display: inline;
    transition: all 0.2s ease;
}

.correct-answer-compact {
    background: rgba(39, 174, 96, 0.2);
    border-radius: 1px;
    padding: 0px 1px;
    margin: 0;
    display: inline;
    transition: all 0.2s ease;
}

/* Input Section Styles */
.typing-bar {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.typing-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: monospace;
    background: #fafafa;
    transition: all 0.2s ease;
}

.typing-input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.typing-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 6px;
    padding: 12px;
    font-weight: 500;
    display: none;
    border-left: 4px solid #e74c3c;
}

/* Score Section Styles */
.score-box{
    padding: 24px;
    margin-inline: auto;
    display: none;
}

.score-label {
    font-weight: bold;
    display: inline;
}

.score-display {
    display: inline;
    font-weight: bold;
}

/* final answer box*/
.brackets-preview {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.bracket-list-item {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

/* Button Section Styles */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary {
    display: none;
    background: #161a4c;
}

.btn-primary:hover {
    background: #161a4c;
    opacity: 0.9;
}

.btn-secondary {
    background: #FF894F;
}

.btn-secondary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-danger {
    background: #EA5B6F;
}

.btn-danger:hover {
    background: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-answer {
    display: none;
    background: #689B8A;
}

.btn-answer:hover {
    background: #689B8A;
    opacity: 0.9;
}

/* Hint Section Styles */
.hint-section {
    display: none;
}

/* Small Screen Styles */
@media (max-width: 768px) {
    .container {
        border-radius: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
} 