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

body {
    font-family: 'Arial', sans-serif;
    background: white;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    font-size: 2.5rem;
    margin: 0;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-btn {
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 25px;
    background: white;
    color: #667eea;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
}

.mode-btn.active {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.puzzle-info {
    font-weight: bold;
    color: #667eea;
}

.controls {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background: #667eea;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #5a6fd8;
}

.game-container {
    display: grid;
    grid-template-columns: 780px 400px;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    justify-content: center;
}

.crossword-grid {
    display: grid;
    grid-template-columns: repeat(15, 50px);
    grid-template-rows: repeat(15, 50px);
    gap: 1px;
    background: #333;
    padding: 15px;
    border-radius: 8px;
    border: 3px solid #333;
    width: 780px;
    height: 780px;
}

.cell {
    width: 50px;
    height: 50px;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: white;
    font-size: 18px;
    font-weight: bold;
}

.cell.black {
    background: #000;
    border-color: #000;
}

.cell input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    background: transparent;
    padding: 0;
}

.cell input:focus {
    outline: 2px solid #667eea;
    background: #f0f8ff;
}

.cell.highlighted {
    background: #e6f3ff !important;
}

.cell.correct {
    background: #d4edda !important;
}

.cell.incorrect {
    background: #f8d7da !important;
}

.cell-number {
    position: absolute;
    top: 2px;
    left: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    z-index: 1;
}

.clues-container {
    overflow-y: auto;
    max-height: 600px;
}

.clues-section {
    margin-bottom: 30px;
}

.clues-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.clues-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clue {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-left: 3px solid transparent;
}

.clue:hover {
    background: #f8f9fa;
}

.clue.active {
    background: #e6f3ff;
    border-left-color: #667eea;
}

.clue-number {
    font-weight: bold;
    color: #667eea;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .controls {
        justify-content: center;
    }
    
    .crossword-grid {
        grid-template-columns: repeat(15, 22px);
        grid-template-rows: repeat(15, 22px);
        width: 345px;
        height: 345px;
        justify-self: center;
        padding: 8px;
    }
    
    .cell {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .cell input {
        font-size: 12px;
    }
    
    .cell-number {
        font-size: 7px;
        top: 1px;
        left: 2px;
    }
    
    .game-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
}
/* Heade
r Subtitle */
.subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Section Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Features Section */
.features-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 40px;
}

.features-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.faq-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

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

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px 20px 0 20px;
    background: white;
}

.faq-question h3 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.faq-answer {
    display: block;
    padding: 0 20px 20px 20px;
    background: #f8f9fa;
}

.faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.faq-answer a {
    color: #667eea;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.6;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-section a {
    color: #667eea;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .features-section h2,
    .about-section h2,
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .features-section,
    .about-section,
    .faq-section {
        padding: 40px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}