/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Kosugi&display=swap');
/* General Styles */
body, html {
    overflow-x: hidden; /* Disable horizontal scrolling */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Kosugi', sans-serif;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../album_covers/something_new.png') no-repeat center center fixed;
    background-size: cover;
    filter: blur(15px);
    transform: scale(1.1); /* Scale up the image to prevent white borders */
    z-index: -1;
    animation: blurAnimation 7s infinite alternate; /* Apply blur animation */
}

.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Initial opacity */
    animation: overlayFade 5s infinite alternate; /* Apply animation */
    z-index: -1;
}

/* Keyframes for cycling opacity */
@keyframes overlayFade {
    0% {
        background: rgba(0, 0, 0, 0.5);
    }
    100% {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Keyframes for blur animation */
@keyframes blurAnimation {
    0% {
        filter: blur(15px);
    }
    100% {
        filter: blur(30px);
    }
}

/* Top Section */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002; /* Ensure the top section is above other content */
    background: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0));
}

.homebutton-container {
    position: absolute;
    left: 20px;
}

.site-title-container {
    position: relative;
    text-align: center;
    padding-left: 60px; /* Add padding to prevent overlap with the menu icon */
}

.site-title-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Home Logo */
img.homebutton {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease; /* Add transition for smooth scaling */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); /* Add drop shadow */
}

img.homebutton:hover {
    transform: scale(1.1); /* Scale up the image on hover */
}

/* Featured Album Styling */
#album-feature {
    margin-top: 20px;
    margin-bottom: 40px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.album-cover {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 10px;
    box-shadow: 0 15px 15px 5px rgba(0, 0, 0, 0.5);
    margin-top: 0; /* Remove top margin */
    transition: transform 0.3s ease; /* Add transition for smooth 3D effect */
    transform-style: preserve-3d; /* Enable 3D transformations */
}

/* Keyframes for rotating the album cover */
@keyframes rotateAlbum {
    0% {
        transform: perspective(1000px) rotateX(5deg) rotateY(0deg);
    }
    25% {
        transform: perspective(1000px) rotateX(0deg) rotateY(5deg);
    }
    50% {
        transform: perspective(1000px) rotateX(-5deg) rotateY(0deg);
    }
    75% {
        transform: perspective(1000px) rotateX(0deg) rotateY(-5deg);
    }
    100% {
        transform: perspective(1000px) rotateX(5deg) rotateY(0deg);
    }
}

/* About Corvus Echoes Stying */
#about-corvus-echoes {
    margin-top: 0px;
    margin-bottom: 40px;
}

/* Main Content */
main {
    max-width: 100%;
    overflow-x: hidden;
    margin-top: 80px; /* Add top margin to ensure content is not clipped */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the content */
    position: relative;
    z-index: 1; /* Ensure main content is above the background */
}

/* Horizontal Rule Lines */
hr {
    width: 100%;
    margin: 20px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0px 8px rgb(0, 0, 0);
}

/* Header */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0; /* Remove bottom margin */
    margin-top: 20px;
    text-align: center;
}

.site-title img {
    width: 100%;
    max-width: 600px; /* Match the max-width of the album cover */
    height: auto;
    margin-bottom: 0; /* Remove bottom margin */
}

/* Title Styling */
.site-title {
    font-size: 3em;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 0;
    text-align: center;
    width: 200%;
}

a, a:visited {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    transition: color 0.3s;
}

a:hover {
    color: #ffffff;
}


/* Tracklist Styling */
.tracklist {
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.tracklist ol {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    text-align: center;
    max-width: 600px;
}

.tracklist li {
    font-size: 1em;
    padding: 10px;
    margin: 5px 0;
    border-radius: 0px;
    transition: background 0.3s, transform 0.2s;
}

.tracklist li:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

.tracklist li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}


/* Music Player */
#music iframe {
    margin-top: 20px;
}

/* Music Links */

.music-container {
    background: #1e1e1e1e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.music-container h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.music-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.music-list li {
    background: #2a2a2a27;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.2s ease-in-out, background 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.music-list li:hover {
    transform: scale(1.05);
    background: #1f1e1e33;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.music-list img {
    width: 30px;
    height: 30px;
    margin-right: 12px;
}

.music-list a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    flex-grow: 1;
}


/* Footer */
footer {
    margin-top: auto;
    font-size: 0.9em;
    padding: 10px;
    width: 100%;
    text-align: center;
}

.footer-iframe {
    width: 100%;
    border: none;
    height: 100px;
    display: block;
    margin: 0 auto;
    padding: 0;
}

/* Menu Icon */
.menu-icon {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon::before {
    content: "\2630"; /* Unicode for 'Menu' */
}

.menu-icon.close::before {
    content: "\2715"; /* Unicode for 'X' */
}

/* Video Container Styling */

#music-video {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px 0;
}

.video-container {
    position: relative;
    width: 90%; /* Ensure the container takes full width */
    background: #000;
    margin: 20px auto; /* Center the container */
    box-shadow: 0 0 5px 5px rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    z-index: 1; /* Ensure the video container is behind the top section */
    overflow: hidden;
}

.video-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .album-cover {
        animation: rotateAlbum 5s linear infinite; /* Apply the animation for mobile screens with linear easing */
    }

    main {
        padding: 40px;
    }
    
    .site-title img {
        width: 100%;
        max-width: 250px; /* Match the max-width of the album cover */
    }

    .album-cover {
        width: 100%;
        max-width: 280px; /* Adjust the max-width for smaller screens */
    }

    .menu-icon {
        display: block;
        left: 10px; /* Adjust position to prevent overlap */
    }

    img.homebutton {
        width: 40px;
    }

    .site-title-container {
        padding-left: 0px; /* Increase padding to prevent overlap */
        width: 200px;
    }
}
