.level-titleh {
    text-align: center;
    padding: 40px 0 20px;
    background-color: #f8f1e5;
    border-bottom: 2px solid #8b4513;
    margin-bottom: 30px;
}

.level-titleh h1 {
    color: #5a3921;
    font-size: 2.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f8f1e5;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.1);
}

.levels-container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #5a3921;
    background: linear-gradient(135deg, #f0d9b5 0%, #e6c9a0 100%);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #8b4513;
    position: relative;
    overflow: hidden;
}

.levels-container a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #e6c9a0 0%, #f0d9b5 100%);
}

.levels-container a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #8b4513;
}

.levels-container img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.7);
    padding: 10px;
}

.levels-container a span {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    color: #5a3921;
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .levels-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .level-titleh h1 {
        font-size: 1.8rem;
        padding: 0 15px;
    }

    .levels-container a {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .levels-container img {
        height: 150px;
    }

    .levels-container a span {
        font-size: 1.1rem;
    }
}