body {
    margin: 0;
    padding: 0;
    background-color: #2b2b2b;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow: auto; /* Allow scrolling */
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
    opacity: 0.8;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.8) 50%);
}

.background::before,
.background::after {
    content: "";
    flex: 1;
    background-image: url('assets/mountains_01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background::before {
    transform: rotate(180deg) scaleX(-1);
}

.background::after {
    transform: rotate(180deg);
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
    opacity: 0.8;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.8) 50%);
    overflow: hidden; /* Add this to hide overflowing parts of the image */
}

.background::before,
.background::after {
    content: "";
    flex: 1;
    background-image: url('assets/mountains_01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    animation: panBackground 60s linear infinite; /* Adjust duration as needed */
}

.background::before {
    transform: rotate(180deg) scaleX(-1);
    animation-direction: reverse; /* This will make it move in the opposite direction */
}

@keyframes panBackground {
    0% {
        background-position: center;
    }
    50% {
        background-position: 100% center; /* Adjust percentage to control panning distance */
    }
    100% {
        background-position: center;
    }
}


.content {
    max-width: 90%;
    margin: 0 auto;
    padding: 1rem;
    z-index: 1; /* Ensure content is above the background */
}

h1, h2, h3, p, .spotify-player, .social-icons, .gallery {
    opacity: 0;
    animation: fadeIn 3s both;
    animation-fill-mode: both; /* Ensure the element retains the final state of the animation */
}

h1, h2, h3 {
    font-family: 'Major Mono Display', monospace;
    margin: 0.5rem 0;
}

h1 {
    font-size: 4rem;
    font-weight: 600;
    animation: fadeIn 2s both, scale 5s both ease-in-out;
    animation-delay: 4s;
    color: #e0e0e0;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: auto;
    max-width: 100%;
}

h2 {
    font-size: 2.5rem;
    color: rgb(126, 126, 126);
    animation-delay: 5s;
}

h3 {
    font-size: 2rem;
    color: rgba(107, 107, 107, 0.8);
    animation-delay: 0.5s;
}

p {
    font-family: "Questrial", sans-serif;
    color:rgb(87, 85, 85);
    animation-delay: 6s;

}

.grey-text a {
    color:rgb(87, 85, 85);
}

.spotify-player {
    animation-delay: 8s;
    margin: 2rem auto;
    max-width: 600px;
}

.spotify-player iframe {
    max-width: 100%; /* Ensures the iframe doesn't overflow its container */
}

.social-icons {
    animation-delay: 8s;
}

.gallery {
    animation-delay: 8s;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 2rem;
}

.social-icons a {
    color: #ffffff;
    font-size: 2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #655f65; /* Or any color you prefer */
}

.gallery img {
    max-width: 9.375rem;
    max-height: 9.375rem;
    object-fit: cover;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 0.08em;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .spotify-player {
        width: 90%;
    }
    .social-icons img {
        width: 2rem;
        height: 2rem;
        margin: 0 0.5rem;
    }
    .gallery img {
        max-width: 7.5rem;
        max-height: 7.5rem;
    }
}

h1, h2, h3 {
    hyphens:none;
    word-break:normal;
    text-overflow:clip;
}



@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 0.03em;
    }
    h3 {
        font-size: 1rem;
        letter-spacing: 0.02em;
    }
    h2 {
        font-size: 1.3rem;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 390px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 0.03em;
    }
    h3 {
        font-size: 1rem;
        letter-spacing: 0.02em;
    }
    h2 {
        font-size: 1.3rem;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 330px) {
    h1 {
        font-size: 1.7rem;
        letter-spacing: 0.015em;
    }
    h3 {
        font-size: 1rem;
        letter-spacing: 0.02em;
    }
    h2 {
        font-size: 1.3rem;
        letter-spacing: 0.02em;
    }
}

@keyframes scale {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}