@import url('https://fonts.googleapis.com/css2?family=Barriecito&display=swap');

body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Barriecito", system-ui;
}

body{
    background-image: url('mountain.png');
    background-size: cover;
    background-position: center; /* Center the background image */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keep background fixed during scroll */
    display: flex; /* Use flex to center content */
    flex-direction: column; /* Stack header and CTA vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    min-height: 100vh; /* Ensure body takes full viewport height */
    overflow-y: auto; /* Allow scrolling if content overflows, crucial for mobile */
}


h1{
    background-color: rgba(16, 16, 16, 0.776);
    color: white;
    margin: 0.7em;
    padding: 1em;
    border: 3px double rgb(56, 52, 53);
    border-radius: 20px;
    text-align: center; /* Ensure text is centered within h1 */
    font-size: 400%;
    box-shadow: 0 0 10px #efdcea, 0 0 20px #5f3e58;
    letter-spacing: 3px;
    opacity: 0;
    animation: showContent 1s ease-in-out 1 forwards;
 }

.cta{
    /* Removed margin-left: 20%; margin-top: 2%; as flexbox will handle centering */
    display: inline-block;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.701);
    color: white;
    text-align: center;
    text-decoration: none;
    border: 3px double rgb(56, 52, 53);
    border-radius: 50px;
    box-shadow: 0 0 10px #efdcea, 0 0 20px #5f3e58;
    cursor: pointer;
    opacity: 0;
    animation: showContent 1s ease-in-out 1 forwards;
    margin-top: 20px; /* Add some space between h1 and cta */
}

@keyframes showContent{
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to{
        opacity: 1;
        transform: translate(0, 0);
        filter: blur(0);
    }
}

/* Media Queries for index.html (landing page) */
@media (max-width: 768px) {
    h1 {
        font-size: 250%; /* Smaller font size for tablets/smaller desktops */
        padding: 0.8em;
        margin: 0.5em;
    }

    .cta {
        font-size: 18px;
        padding: 12px 25px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 150%; /* Even smaller for mobile phones */
        padding: 0.6em;
        margin: 0.3em;
        line-height: 1.2; /* Adjust line height for smaller screens */
    }

    .cta {
        font-size: 16px;
        padding: 10px 20px;
        margin-top: 10px;
    }
}