@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #474747 url("bg.png") repeat;
    margin: 0;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
}

main {
    max-width: 90%; /* Ensure content fits within the viewport */
    text-align: center;
}

h1 a {
    text-decoration: none;
    font-size: 5rem; /* Use scalable units */
    text-align: center;
    color: #999;
    text-shadow: 0 3px 8px #2a2a2a;
    font-weight: 700;
}

h1 a:hover {
    color: #a0a0a0;
    text-shadow: 0 5px 8px #2a2a2a;
}

h2 {
    font-size: 2.5rem; /* Use scalable units */
    text-align: center;
    color: #222;
    text-shadow: 0 2px 3px #555;
    font-weight: 400;
}

h3 {
    text-decoration: none;
    font-size: 1.5rem;
    text-align: center;
    color: #999;
    text-shadow: 0 1px 2px #2a2a2a;
    font-weight: 300;
}

h5 {
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
    color: #999;
    text-shadow: 0 1px 2px #2a2a2a;
    font-weight: 300;
}

h5 a {
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
    color: #999;
    text-shadow: 0 1px 2px #2a2a2a;
    font-weight: 300;
}

h5 a:hover {
    color: #a0a0a0;
    text-shadow: 0 1px 2px #2a2a2a;
}

main p {
    font-size: 2rem;
    font-weight: bold;
    color: #f1f1f1;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */

/* Small screens (less than 480px) */
@media (max-width: 480px) {
    h1 a {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    main p {
        font-size: 1.25rem;
        padding: 10px;
    }
}

/* Medium screens (481px to 768px) */
@media (max-width: 768px) {
    h1 a {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    main p {
        font-size: 1.5rem;
        padding: 15px;
    }
}

/* Large screens (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 a {
        font-size: 4rem;
    }

    h2 {
        font-size: 2rem;
    }

    main p {
        font-size: 1.75rem;
        padding: 20px;
    }
}

/* Extra large screens (above 1024px) */
@media (min-width: 1025px) {
    h1 a {
        font-size: 5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    main p {
        font-size: 2rem;
    }
}
