/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: white;
    color: black;
    padding: 20px;
    min-height: 100vh;
}

main {
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    margin: 0;
}

.logo a {
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo img:hover {
    filter: drop-shadow(0 0 15px #ea00ff);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.nav-item a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: normal;
    transition: opacity 0.3s;
}

.nav-item a:hover {
    text-shadow: #ea00ff 0px 0px 8px;
}

/* Yearbook Title */
.yearbook-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 8px;
    margin-top: 120px;
    margin-bottom: 60px;
    color: black;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
}

/* Artists Grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 80px;
}

.artist-card {
    cursor: pointer;
    transition: transform 0.3s;
    text-align: center;
}

.artist-card:hover {
    transform: scale(1.05);
}

.artist-card img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #000;
}

/* Almanah-specific image style */
.almanah-img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    filter: blur(4px);
}

.image-border {
    border: 8px solid #000;
    display: inline-block;
    line-height: 0;
    filter: blur(2px);
}

.image-border .almanah-img {
    display: block;
}

.artist-name {
    color: #ea00ff;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* Lorem Text */
.lorem-text {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    margin-top: 40px;
}

.lorem-text p {
    color: #ea00ff;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

/* Letter Overlay Styles */
.letter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.letter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.letter-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.letter-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.letter-close:hover {
    background-color: #fff;
}

.letter-content {
    position: relative;
    z-index: 2;
    width: 70%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Carousel Styles */
.carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-embed {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sub-embed p {
    font-size: 18px;
    color: #333;
    text-align: center;
}

.inter-gore {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0px;
}

.prevent-select {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

/* Responsive Design */

/* Tablets and small laptops */
@media (max-width: 1200px) {
    .artists-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        padding: 0 60px;
    }

    .lorem-text {
        max-width: 1000px;
        padding: 0 60px;
    }
}

@media (max-width: 900px) {
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        padding: 0 50px;
    }

    .lorem-text {
        max-width: 700px;
        padding: 0 50px;
    }

    .yearbook-title {
        font-size: 36px;
        letter-spacing: 6px;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    .yearbook-title {
        font-size: 28px;
        letter-spacing: 3px;
        margin-top: 100px;
        margin-bottom: 40px;
    }

    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 30px;
    }

    .lorem-text {
        padding: 0 30px;
        margin-top: 30px;
    }

    .lorem-text p {
        font-size: 14px;
    }

    .artist-name {
        font-size: 14px;
        margin-top: 8px;
    }

    .main-nav ul {
        font-size: 12px;
        gap: 8px;
    }

    .nav-item a {
        font-size: 12px;
    }

    .logo img {
        height: 40px;
    }

    .logo {
        top: 15px;
        left: 15px;
    }

    .main-nav {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 400px) {
    .artists-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .lorem-text {
        padding: 0 20px;
    }

    .yearbook-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
}
