body {
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    background: #f5e6c8;
    color: #3b2f2f;
}

header {
    background: #c0392b;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.8em;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
}
header p {
    font-family: 'Fredoka', sans-serif;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
    align-items: center;
    justify-content: center;
    gap: 0px;   /* controls spacing between slider and text */
}

.hero img {
    max-width: 350px;
    border-radius: 10px;
}

.hero-text {
    max-width: 400px;
    margin-left: 0;  /* remove the forced gap */
}

.hero-text h2 {
    font-size: 2em;
}

.slider {
    position: relative;
    width: 450px;
    aspect-ratio: 1 / 1; /* keeps it perfectly stable */
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0 */
    width: 100%;
    height: 100%;
    object-fit: contain; /* or 'cover' if you prefer */
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

.cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 25px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

.section {
    padding: 50px 20px;
    text-align: center;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    background: #fff3dc;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
}

.how-to-play {
    background: #fff8e7;
    padding: 40px;
    text-align: center;
}

.steps {
    max-width: 800px;
    margin: auto;
    text-align: left;
}

footer {
    background: #c0392b;
    color: white;
    text-align: center;
    padding: 20px;
}
