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

body {
    font-family: 'Georgia', serif;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #f5f5f0;
    color: #222;
    line-height: 1.7;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5em;
    color: #2c5aa0;
    margin-bottom: 15px;
}

header p {
    font-size: 1.2em;
    color: #555;
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.riddle {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 5px solid #2c5aa0;
}

.riddle h2 {
    font-size: 1.8em;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.difficulty {
    color: #e67e22;
    font-size: 0.9em;
}

.audio-player {
    margin: 20px 0;
}

audio {
    width: 100%;
    margin-bottom: 15px;
}

.riddle-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333;
}

.riddle-text ul {
    margin: 15px 0 15px 25px;
}

.riddle-text li {
    margin-bottom: 10px;
}

.riddle-text strong {
    color: #2c5aa0;
}

.toggle-btn {
    display: inline-block;
    margin: 10px 10px 10px 0;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tip-btn {
    background-color: #3498db;
    color: white;
}

.tip-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.solution-btn {
    background-color: #27ae60;
    color: white;
}

.solution-btn:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hidden-content {
    display: none;
}

.visible-content {
    display: block;
    margin-top: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #27ae60;
    border-radius: 5px;
    animation: fadeIn 0.3s ease-in;
}

.visible-content.tip {
    border-left-color: #3498db;
    background-color: #e8f4f8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visible-content p {
    margin-bottom: 10px;
}

.visible-content ul {
    margin: 10px 0 10px 25px;
}

.visible-content li {
    margin-bottom: 8px;
}

.visible-content a {
    color: #2c5aa0;
    text-decoration: none;
    border-bottom: 1px solid #2c5aa0;
}

.visible-content a:hover {
    color: #1a3a6b;
    border-bottom-color: #1a3a6b;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    font-size: 1.2em;
    color: #666;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .riddle {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .riddle h2 {
        font-size: 1.4em;
    }

    .riddle-text {
        font-size: 1em;
    }
}
