@font-face {
    font-family: 'Iron Maiden';
    src: url('Fonts/Iron Maiden Font 3.TTF') format('truetype');
}
@font-face {
    font-family: 'Metal Lord';
    src: url(Fonts/Metal\ Lord.otf) format('opentype');
}

body {
    margin: 0;
    background-color: black;
    font-family: Arial, sans-serif;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

/*HEADER + LOGO*/
header {
    position: relative;
    background-color: black;
    padding: 80px 10px;
    text-align: center;
}

.logo h1 {
    font-family: 'Iron Maiden', sans-serif;
    font-size: 70px;
    color: red;
    margin: 0;
    animation: slideDown 0.9s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/*DESKTOP NAVIGATION */
nav {
    background-color: black;
    border-top: 2px solid red;
    border-bottom: 2px solid red;
    padding: 20px 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menuButton {
    font-family: 'Iron Maiden', sans-serif;
    font-size: 28px;
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 18px;
    padding: 15px 22px;
    transition: 0.3s;
}

.menuButton:hover {
    color: red;
    border-color: red;
    box-shadow: 0 0 15px red;
}

/*MOBILE NAVIGATION(hamburger menu) */
#hamburger {
    display: none;
    font-size: 40px;
    color: red;
    text-align: center;
    padding: 20px 0;
    cursor: pointer;
}

#mobile-nav {
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
}

.mobileButton {
    font-family: 'Iron Maiden', sans-serif;
    background-color: black;
    color: white;
    border: 2px solid white;
    padding: 15px;
    border-radius: 20px;
    font-size: 24px;
    transition: 0.3s;
}

.mobileButton:hover {
    color: red;
    border-color: red;
    box-shadow: 0 0 15px red;
}

#mobile-nav.show {
    display: flex;
}

/*WELCOME SECTION*/
#welcome {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

#welcome h2 {
    font-family: 'Iron Maiden', sans-serif;
    font-size: 60px;
    color: red;
    margin-bottom: 20px;
}

#welcome p {
    font-size: 24px;
    max-width: 750px;
    margin: 0 auto;
    color: #ccc;
    line-height: 1.6;
}

/* AUTO ROTATING CARDS */
#auto-card-menu {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 0 auto 80px;
}

.auto-card {
    position: absolute;
    inset: 0;
    border: 3px solid red;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    font-family: 'Metal Lord', sans-serif;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.auto-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 25px;
}

.auto-card > * {
    position: relative;
    z-index: 1;
}

.auto-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.auto-card:hover {
    box-shadow: 0 0 30px red;
}

.card-title {
    font-size: 75px;
}

.card-description {
    font-size: 35px;
}

/* BACKGROUNDS */
.auto-card.upcoming-shows {
    background-image: url('Pictures/ShowsAutoCard.jpg');
}

.auto-card.discography {
    background-image: url('Pictures/DiscographyAutoCard.jpg');
}

.auto-card.history {
    background-image: url('Pictures/IronMaidenEarlyDays.jpg');
}

.auto-card.fan-gallery {
    background-image: url('Pictures/FanGalleryAutoCard.jpg.png');
}

.auto-card.quiz {
    background-image: url('Pictures/QuizAutoCard.jpg.png');
}

.auto-card.upcoming-shows {
    background-image: url('Pictures/ShowsAutoCard.jpg');
}

.auto-card.discography {
    background-image: url('Pictures/DiscographyAutoCard.jpg');
}

.auto-card.history {
    background-image: url('Pictures/IronMaidenEarlyDays.jpg');
}

.auto-card.fan-gallery {
    background-image: url('Pictures/FanGalleryAutoCard.jpg.png');
}

.auto-card.quiz {
    background-image: url('Pictures/QuizAutoCard.jpg.png');
}

/* DISCROGRAPHY PAGE CARDS */
/* DISCROGRAPHY PAGE CARDS */
#discography-cards {
    text-align: center;
    padding: 60px 20px;
}

#discography-cards h2 {
    font-family: 'Iron Maiden', sans-serif;
    font-size: 60px;
    color: red;
    margin-bottom: 40px;
}

.cards-container {
    display: grid;
    /* This creates as many 250px columns as will fit, then centers them */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    padding: 40px;
    justify-items: center; /* Centers items within their grid cell */
}

/* DISCOGRAPHY ITEMS */
.disc-item {
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 250px;
}

/* ALBUM COVER */
.disc-cover {
    width: 250px;
    height: 250px;
    background-size: cover;
    background-position: center;
    border: 2px solid red;
    border-radius: 10px;
    display: block;
    margin-bottom: 15px;
}

.disc-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px red;
}

/* TITLE */
.disc-title {
    font-family: 'Iron Maiden', sans-serif;
    font-size: 22px;
    color: white;
    transition: 0.3s;
}

.disc-title:hover {
    color: red;
    text-shadow: 0 0 10px red;
}

/* YEAR */
.disc-year {
    font-size: 16px;
    color: #ccc;
    transition: 0.3s;
}

.disc-year:hover {
    color: red;
}

/* ============================================
   ALBUM PAGE
============================================ */
#album-page {
    text-align: center;
    padding: 60px 20px;
}

#album-page h2 {
    font-family: 'Iron Maiden', sans-serif;
    font-size: 60px;
    color: red;
    margin-bottom: 40px;
}

.album-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.album-cover {
    width: 700px;
    height: 700px;
    border-radius: 20px;
    object-fit: cover;
}

.album-info {
    max-width: 600px;
    text-align: left;
    color: white;
    font-size: 20px;
}

.album-info h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

/*FOOTER */
footer {
    background-color: black;
    border-top: 2px solid red;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 40px;
}

.footer-section h3 {
    font-family: 'Iron Maiden', sans-serif;
    font-size: 28px;
    color: red;
    margin-bottom: 10px;
}

.footer-section p {
    margin: 5px 0;
    color: #ccc;
    font-size: 18px;
}

.footer-link {
    display: block;
    margin: 5px 0;
    color: white;
    font-size: 18px;
    transition: 0.3s;
}

.footer-link:hover {
    color: red;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
    color: #777;
    border-top: 1px solid #333;
    padding-top: 15px;
}


/* SHOWS IFRAME */
.iframe-wrapper {
    width: 95%;
    max-width: 1600px;
    margin: 40px auto;
    height: 85vh;
    border: 3px solid red;
    border-radius: 20px;
    overflow: hidden;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* --- Shows Hero Section --- */
#shows-hero {
    position: relative;
    width: 100%;
    height: 20vh; /* Adjust height as needed */
    background: url('Pictures/tour-hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 5px solid red; /* Maiden Red accent */
}

.hero-overlay {
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#shows-hero h1 {
    font-family: 'Iron Maiden', sans-serif; 
    font-size: 4rem;
    color: #ff0000; /* Red */
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.5);
    justify-self: center;
}

#shows-hero p {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}


#shows-container h1{
    font-family: 'Metal Lord', sans-serif;
    color: red;
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}



/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    #shows-hero h1 {
        font-size: 2.5rem;
    }
    #shows-hero p {
        font-size: 1.1rem;
    }
}



#shows-info {
    text-align: center;
    padding: 60px 20px;
}

#shows-info h2 {
    font-family: 'Metal Lord', sans-serif;
    font-size: 60px;
    color: red;
    margin-bottom: 20px;
}





/* HISTORY IMAGES */
.history-img {
    width: 300px;
    max-width: 90%;
    border-radius: 18px;
    border: 3px solid red;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}


/* QUIZ */

#quiz-section {
    text-align: center;
    padding: 60px 20px;
}

#quiz-box {
    max-width: 700px;
    margin: auto;
    border: 3px solid red;
    border-radius: 20px;
    padding: 40px;
}

#quiz-box h3 {
    font-size: 28px;
    color: red;
    margin: 15px 0;
    text-shadow: 0 0 10px red;
}

.answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.answer-btn {
    background: black;
    border: 2px solid white;
    color: white;
    padding: 15px;
    font-size: 18px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.answer-btn:hover {
    border-color: red;
    box-shadow: 0 0 10px red;
}

.answer-btn.selected {
    background: red;
    color: black;
    font-weight: bold;
}

#next-btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 18px;
    background: red;
    color: black;
    border-radius: 20px;
    cursor: pointer;
}


/* ============================================
   FAN GALLERY SPECIFIC STYLES
============================================ */

#upload-section {
    padding-bottom: 60px;
}

#gallery-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

#caption-input {
    width: 90%;
    background: black;
    border: 1px solid white;
    color: white;
    padding: 15px;
    border-radius: 15px;
    font-size: 18px;
    font-family: Arial, sans-serif;
}

#caption-input:focus {
    border-color: red;
    outline: none;
    box-shadow: 0 0 10px red;
}

.file-input-container input[type="file"] {
    display: none; /* Hide the ugly default browser button */
}

.file-input-container label {
    display: inline-block;
    cursor: pointer;
}

#gallery-display {
    border-top: 2px solid red;
    padding-top: 60px;
    background: linear-gradient(to bottom, #000, #0a0a0a);
}

/* Ensure gallery items match your Discography items exactly */
#gallery-grid .disc-item {
    margin-bottom: 40px;
}

#gallery-grid .disc-cover {
    background-color: #111; /* Dark background while image loads */
}

/* Mobile Tweak for Gallery */
@media (max-width: 768px) {
    #gallery-grid {
        grid-template-columns: 1fr; /* Stack images on mobile */
    }
    
    #caption-input {
        width: 85%;
    }
}

/* Mobile Tweak for Gallery */
@media (max-width: 768px) {
    #gallery-grid {
        grid-template-columns: 1fr; /* Stack images on mobile */
    }
    
    #caption-input {
        width: 85%;
    }
}

/* AUTHENTICATION NAVIGATION*/

/* Updated Auth Nav for horizontal layout */


.auth-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px; /* Space between buttons */
    z-index: 1000;
}

.cart-btn, .login-btn {
    font-family: 'Metal Lord', sans-serif;
    color: white;
    border: 2px solid red;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.8);
    transition: 0.3s;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.login-btn {
    display: flex;           /* Enables Flexbox */
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    padding: 0 15px;         /* Padding only on sides */
}



.cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px; /* Adjusted padding for image */
}


#cart-icon {
    width: 50px;   /* Size of your shopping cart image */
    height: 50px;
    object-fit: contain;
}

.cart-btn:hover, .login-btn:hover {
    box-shadow: 0 0 15px red;
}

/* Specific styling for the checkout container */
#checkout-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    border: 2px solid red;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.9);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding: 15px 0;
}

.cart-total {
    text-align: right;
    font-size: 28px;
    color: red;
    font-family: 'Iron Maiden', sans-serif;
    margin-top: 20px;
}
.total-section { 
    text-align: right; 
    font-size: 24px; 
    margin-top: 20px; 
    color: red; 
    font-family: 'Iron Maiden'; 
}
       
.checkout-actions { 
    margin-top: 30px; 
    display: flex; 
    justify-content: space-between; 
}


.remove-item-btn {
    background: transparent;
    border: 1px solid red;
    color: red;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    transition: 0.3s;
}

.remove-item-btn:hover {
    background: red;
    color: black;
}


.payment-form { 
    max-width: 600px; 
    margin: 40px auto; 
    padding: 20px; 
    border: 2px solid red; 
    border-radius: 15px; 
}


.form-group { 
    margin-bottom: 15px; 
    margin-right: 15px;
    text-align: left; 
    font-family: "Metal Lord",sans-serif;
}


.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    color: red; 
    font-family: 'Iron Maiden'; 
    font-family: "Metal Lord",sans-serif;
}


.form-group input, .form-group select { 
    width: 100%; 
    padding: 10px; 
    background: black; 
    border: 1px solid white; 
    color: white; 
    border-radius: 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
}


.discount-info { 
    color: #00ff00; 
    margin: 10px 0; 
    font-weight: bold; 
    font-family: 'Metal Lord',sans-serif;
}
  





/* 
   MOBILE ADAPTATION */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    #hamburger {
        display: block;
        font-family: 'Iron Maiden',sans-serif;
    }

    .logo h1 {
        font-size: 50px;
    }

    #welcome h2,
    #discography-cards h2,
    #album-page h2 {
        font-size: 50px;
    }

    #welcome p {
        font-size: 20px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .disc-cover {
        width: 200px;
        height: 200px;
    }

    .disc-title {
        font-size: 20px;
    }

    .disc-year {
        font-size: 14px;
    }

    #auto-card-menu {
        width: 90vw;
        height: 90vw;
        max-width: 380px;
        max-height: 380px;
    }

    .card-title {
        font-size: 42px;
    }

    .card-description {
        font-size: 22px;
    }

    .album-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .album-cover {
        width: 80%;
        height: auto;
    }

    .album-info {
        max-width: 90%;
        font-size: 18px;
    }

    footer {
        padding: 30px 10px;
    }

    



} 





@media (max-width: 768px) {
    header {
        padding: 40px 10px; /* Smaller header for small screens */
    }
    
    .auth-nav {
        position: static; /* Moves it into the flow so it doesn't overlap logo */
        margin-bottom: 20px;
    }

    /* Quarter-window support */
    .logo h1 {
        font-size: clamp(30px, 8vw, 70px); /* Responsive font scaling */
    }

    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Better scaling */
        gap: 10px;
    }
}

/* Ensure the layout wraps beautifully at any width */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 20px;
}


/*admin page styles */
.admin-box {
    background: #111;
    border: 2px solid red;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 15px;
}

.admin-box h2 {
    font-family: 'Iron Maiden', sans-serif;
    color: red;
    margin-top: 0;
}

.admin-box input {
    margin-bottom: 10px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}




.admin-list-container {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    margin-top: 10px;
    margin-bottom:30px;
    max-height: 200px;
    overflow-y: auto;
}

.admin-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #222;
    color: white;
}

.delete-btn {
    background: darkred;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Metal Lord', sans-serif;
}

.delete-btn:hover {
    background: red;
}





/* Modal Background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Toggled by JS */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Higher than HR and Nav */
}

/* The Alert Box */
.modal-box {
    background: #111;
    border: 3px solid red;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
}

.modal-box h3 {
    margin-top: 0;
    font-family: 'Iron Maiden', sans-serif;
}

.modal-box p {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}