/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

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

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.game-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    background-color: #ecf0f1;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.stat-label {
    color: #7f8c8d;
    margin-right: 5px;
}

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

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#hint-btn {
    background-color: #f39c12;
    color: white;
}

#reset-btn {
    background-color: #e74c3c;
    color: white;
}

#new-game-btn {
    background-color: #2ecc71;
    color: white;
}

.word-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.word-box {
    background-color: #3498db;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

#target-word {
    background-color: #e74c3c;
}

.arrow {
    font-size: 2rem;
    color: #7f8c8d;
    font-weight: bold;
}

.ladder-container {
    margin-bottom: 25px;
    min-height: 100px;
}

.ladder-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step {
    background-color: #ecf0f1;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step.valid {
    background-color: #2ecc71;
    color: white;
}

.step.invalid {
    background-color: #e74c3c;
    color: white;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#word-input {
    padding: 10px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1.1rem;
    width: 200px;
    text-align: center;
    text-transform: uppercase;
}

#word-input:focus {
    outline: none;
    border-color: #3498db;
}

#submit-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
}

.message {
    text-align: center;
    min-height: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.message.success {
    color: #2ecc71;
}

.message.error {
    color: #e74c3c;
}

.tutorial-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.tutorial-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.tutorial-content p {
    margin-bottom: 15px;
}

.hint-tip {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.hint-tip h3 {
    color: #f39c12;
    margin-bottom: 10px;
}

.hint-tip ul {
    padding-left: 20px;
}

.hint-tip li {
    margin-bottom: 5px;
}

/* Responsive design */
@media (max-width: 600px) {
    .game-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .word-display {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
}