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

body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 20px;
    background-color: cornflowerblue;
}

h1 {
    font-size: 5em;
    margin: 20px;
}

/* Slider Container */
.slider {
    width: 90%;
    max-width: 800px; /* maximum width for large screens */
    height: auto;
    aspect-ratio: 2 / 1; /* maintain ratio similar to 800 x 400 */
    margin: 20px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

.slider img {
    width: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

button {
    padding: 10px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background-color: tomato;
    color: white;
    transition: transform 0.2s, background-color 0.2s;
}

button:hover {
    background: rgb(254, 38, 0);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    button {
        font-size: 1em;
        padding: 8px 25px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    .slider {
        aspect-ratio: 18 / 9; /* more suitable for phones */
    }

    button {
        font-size: 0.9em;
        padding: 6px 20px;
    }
}