* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Creepster', sans-serif;
    background-color: #121212;  
    color: #f1f1f1;  
    background-size: cover;
    background-position: center;
    font-size: 10px;
    position: relative;
}

::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); 
    z-index: -1;
}

nav {
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.8); 
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    margin-right: auto;
    margin-left: auto;
    position: relative;
}

nav::before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Creepster', sans-serif;
    color: #ff4500; 
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0px 0px 10px rgba(255, 69, 0, 0.7);
}

@media screen and (min-width: 481px) and (max-width: 1000px) {
    nav {
        width: 90%;
        flex-direction: column;
        font-size: 20px;
        text-align: left;
    }
}

.navigation {
    display: flex;
    justify-content: space-around;
    background-color: #222; 
    padding: 1rem;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); 
    position: relative;
    border-radius: 5px;
}

.navigation ul {
    list-style-type: none;
    padding: 0;
}

.navigation ul li {
    display: inline-block;
    position: relative;
}

.navigation ul li a {
    color: #f1f1f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.navigation ul li a:hover {
    background-color: #666;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8); 
}

main {
    padding: 3rem;
    text-align: center;
    color: #e5e5e5;
    font-size: 1.1rem;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    color: #ff4500;  
    text-shadow: 0 0 15px rgba(255, 69, 0, 0.8); 
}

.text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border: 5px solid #444;  
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7); 
    transition: transform 0.3s ease-in-out;
}

.responsive-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6); 
}

@media (max-width: 599px) {
    h1 {
        font-size: 1.5rem;
    }

    .navigation ul li a {
        font-size: 0.9rem;
        padding: 0.4rem;
    }

    .text-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 600px) and (max-width: 1199px) {
    h1 {
        font-size: 2rem;
    }

    .navigation ul li a {
        font-size: 1rem;
    }

    .text-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }

    .navigation ul li a {
        font-size: 1.2rem;
    }

    .text-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
