@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&display=swap');

.legend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background-color: #2a2a2a;
    border: 2px solid #ff4444;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card h2 {
    font-family: 'Nosifer', cursive;
    color: #ff4444;
    margin: 0 0 15px 0;
    font-size: 2em;
}

.card .legend-content {
    font-family: 'Arial', sans-serif;
    font-size: 1.3em;
    line-height: 1.5;
    color: #dddddd;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    font-size: 18px;
}

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

h1 {
    text-align: center;
    color: #ff0000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    font-size: 3.5em;
}

.exercise-section {
    background-color: #1c0404;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #ff0000;
}

.exercise-question {
    font-family: 'Creepster', cursive;
    color: #ff6666;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.exercise-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-button {
    background-color: #3a0505;
    border: 1px solid #ff4444;
    color: #ffffff;
    padding: 15px;
    cursor: pointer;
    font-family: 'Nosifer', cursive;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.option-button:hover {
    background-color: #600808;
    transform: scale(1.02);
}

.correct {
    background-color: #1a4a1a;
    border-color: #00ff00;
}

.incorrect {
    background-color: #4a1a1a;
    border-color: #ff0000;
}

.exercise-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-button {
    background-color: #3a0505;
    border: 2px solid #ff4444;
    color: #ffffff;
    padding: 20px 40px;
    font-family: 'Nosifer', cursive;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #600808;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.exercise-container {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.question-container {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ff4444;
    border-radius: 5px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-input {
    background-color: #1a1a1a;
    border: 1px solid #ff4444;
    color: #ffffff;
    padding: 15px;
    font-family: 'Arial', sans-serif;
    font-size: 1.2em;
}

.submit-btn {
    background-color: #3a0505;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Nosifer', cursive;
    margin-top: 10px;
}

.feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    display: none;
    font-size: 1.3em;
}

.hidden {
    display: none;
}

.correct-feedback {
    background-color: #1a4a1a;
    border: 1px solid #00ff00;
}

.incorrect-feedback {
    background-color: #4a1a1a;
    border: 1px solid #ff0000;
}

.blood-drip {
    text-shadow: 2px 2px 0px #8B0000,
                 4px 4px 0px #600,
                 6px 6px 0px #400;
}

.question {
    font-size: 1.4em;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5em;
    margin: 30px 0;
}

.word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background-color: #2a0505;
    border-radius: 10px;
}

.required-word {
    background-color: #4a0505;
    color: #ff4444;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Nosifer', cursive;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.required-word:hover {
    transform: scale(1.1);
    background-color: #600808;
}

.story-input {
    width: 100%;
    min-height: 200px;
    background-color: #1a1a1a;
    border: 2px solid #ff4444;
    color: #ffffff;
    padding: 15px;
    font-family: 'Arial', sans-serif;
    font-size: 1.2em;
    margin: 20px 0;
    resize: vertical;
}

.character-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.character-list li {
    font-family: 'Creepster', cursive;
    color: #ff6666;
    font-size: 1.3em;
    margin: 10px 0;
}

.scenario-prompt {
    background-color: #2a0505;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.story-feedback {
    color: #ff4444;
    font-family: 'Nosifer', cursive;
    font-size: 1.2em;
    margin-top: 15px;
    display: none;
}

.nightmare-section {
    background-color: #2a0505;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
}

.prompt-intro {
    font-size: 1.4em;
    color: #ff6666;
    margin-bottom: 30px;
    text-align: center;
}

.prompt-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.prompt-card {
    background-color: #1a1a1a;
    border: 2px solid #ff4444;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.prompt-card h3 {
    font-family: 'Nosifer', cursive;
    color: #ff4444;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.prompt-card p {
    font-size: 1.3em;
    color: #dddddd;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dream-input {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #ff4444;
    color: #ffffff;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 15px;
    border-radius: 5px;
    display: none;
}

.prompt-example {
    color: #aaaaaa;
    font-style: italic;
    margin: 10px 0;
    padding: 10px;
    border-left: 3px solid #ff4444;
    font-size: 1.1em;
}

.share-button {
    background-color: #3a0505;
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    font-family: 'Nosifer', cursive;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: #600808;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .legend-cards {
        grid-template-columns: 1fr;
    }
}