/* Reset and basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Single background section */
.bg-section {
    position: relative;
    width: 100%;
    min-height: 200vh; /* adjust if your image is long */
    background-image: url('files/bg.jpg'); /* your combined image */
    background-size: contain;          /* show full image, not zoomed */
    background-repeat: no-repeat;      /* prevent repeating */
    background-position: top center;   /* align top of image */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0; /* space for multiple message boxes */
}

/* Message box styling */
.message-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0);
    border: 2px solid #fff;
    border-radius: 25px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(5px);
}

/* Music button styling */
#playMusic {
    padding: 15px 30px;
    font-size: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2); /* semi-transparent */
    border: 2px solid #00ff00;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-align: center;
    margin: 50px auto;
    display: block;
}

#playMusic:hover {
    background: rgba(255, 255, 255, 0.63);
    transform: scale(1.05);
}

/* Headings and text */
h1 {
    font-size: 300%;
    color: white;
}

p {
    font-size: 200%;
    color: white;
}

/* Make text scale down on smaller screens */
@media screen and (max-width: 400px) {
    h1 {
        font-size: 220%;
    }
    p {
        font-size: 160%;
    }
    .message-box {
        padding: 20px;
        max-width: 90%;
    }
    #playMusic {
        padding: 12px 25px;
        font-size: 16px;
    }
}
.bg-section {
    position: relative;
    width: 100%;
    min-height: 200vh; /* or whatever your content height is */
    background-image: url('files/bg.jpg');
    background-size: contain;
    background-repeat: repeat-y; /* allows vertical repeating */
    background-position: top center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
}

/* Small devices / iPhones up to 475px width */
@media screen and (max-width: 475px) {
    h1 {
        font-size: 200%;       /* scale down heading */
    }

    p {
        font-size: 150%;       /* scale down paragraph */
    }

    .message-box {
        padding: 20px;         /* smaller padding */
        max-width: 90%;        /* fit smaller screens */
        border-radius: 20px;   /* slightly smaller radius */
    }

    #playMusic {
        padding: 12px 20px;    /* smaller button */
        font-size: 16px;       /* smaller text */
        border-radius: 25px;   /* scale button edges */
    }

    .bg-section {
        padding: 50px 0;       /* less vertical space */
    }
}
