@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/*\General Reset for Webpage \*/
* {
    margin: 0;
    padding: 0;
}

/* General Styles */
body {
    font-family: "Orbitron", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1D1C18;
    color: #c5c4bd;
    transition: opacity 1s ease-in-out;
    padding-bottom: 100px;
}

body.loaded {
    opacity: 1;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #393934;
    padding: 15px;
    color: #FFE11E;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.navbar a {
    color: #9D8DF1;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover {
    color: #FFE11E;
}

.brand-name {
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
}

.brand-name img {
    width: 100px;
    height: 45px;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(157, 141, 241, 0.2);
}

/* Hero Section */
.hero {
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 50%;
    object-fit: contain;
    transform: scale(0.9);
    transform-origin: center;
}

/* Main Content Layout */
.content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.location-box {
    background-color: #393934;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(255, 225, 30, 0.2);
    width: 320px;
    text-align: center;
    flex-shrink: 0;
    color: #c5c4bd;
}

.location-box h2 {
    color: #FFE11E;
    margin-bottom: 10px;
}

.contact-info {
    color: #c5c4bd;
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info strong {
    color: #FFE11E;
}

.main-content {
    flex-grow: 1;
    text-align: left;
    width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Welcome Section - Updated */
.welcome {
    background-color: #393934;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(157, 141, 241, 0.2);
    width: 100%;
    /* Removing fixed height for flexible content display */
}

.welcome h1 {
    color: #FFE11E;
    font-size: 2em;
    margin-bottom: 20px;
}

.welcome h2 {
    color: #FFE11E;
    font-size: 1.8em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.welcome h3 {
    color: #FFE11E;
    font-size: 1.6em;
    margin-top: 15px;
    margin-bottom: 10px;
}

.welcome p {
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #c5c4bd;
}

/* Reviews Section */
.reviews {
    background-color: #393934;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    color: #c5c4bd;
    text-align: center;
    position: relative;
}

.reviews h2 {
    color: #FFE11E;
    font-size: 24px;
    margin-bottom: 20px;
}

.reviews-wrapper {
    position: relative;
    max-height: 400px;
    overflow: hidden;
}

.reviews-container {
    max-height: 400px;
    overflow-y: hidden;
    padding-right: 10px;
}

.review {
    background-color: #2B2A27;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    color: #c5c4bd;
    text-align: left;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator-up {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.chevron-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid #FFE11E;
    border-radius: 50%;
    color: #FFE11E;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
}

.chevron-circle:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Footer Styles */
footer {
    background-color: #393934;
    color: #c5c4bd;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.5);
}

.social-links a {
    color: #9D8DF1;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease-in-out;
}

.social-links a:hover {
    color: #FFE11E;
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.restore-defaults-btn {
    align-self: flex-end;
    background-color: #393934; /* Matches other buttons */
    color: #FFE11E; /* Text color consistent with theme */
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.restore-defaults-btn:hover {
    background-color: #FFD700; /* Hover effect similar to other buttons */
    color: #2B2A27;
}



.accessibility-btn {
    background-color: #FFE11E;
    color: #393934;
    font-size: 30px;
    padding: 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.accessibility-btn:hover {
    background-color: #FFD700;
}

.accessibility-menu {
    display: none;
    margin-top: 10px;
    background-color: #2B2A27;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    color: #c5c4bd;
    text-align: center;
}

.accessibility-widget.active .accessibility-menu {
    display: block;
}

.accessibility-option {
    background-color: #393934;
    color: #FFE11E;
    border: none;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accessibility-option:hover {
    background-color: #FFD700;
    color: #393934;
}

/* High Contrast Mode */
.high-contrast {
    background-color: #000;
    color: #FFF;
}

.high-contrast .navbar {
    background-color: #000;
    color: #FFF;
}

.high-contrast .reviews-wrapper, .high-contrast .review {
    background-color: #000;
    color: #FFF;
}

.high-contrast .accessibility-widget {
    background-color: #000;
}

/* EVENTS PAGE LAYOUT  */
.events.html {
    margin: 0;
    padding: 0;
    background-color: #1D1C18;
    display: flex;
    justify-content: center;
}

.events.html .main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-content {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-content .past-events {
    list-style-type: none;
    background-color: #393934;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 35px rgba(255, 225, 30, 0.2);
    width: 320px;
    text-align: center;
    flex-shrink: 0;
    color: #c5c4bd;
    border: 3px solid rgba(255, 225, 30, 0.2);
}

.past-events li {
    list-style: none;
}

.price {
    font-size: 1.2em;
    font-weight: bold;
    color: #4CAF50; /* Green color for price */
    margin-top: 10px;
}



/* Title Game Image  */
.game-image img {
    width: 400px;
    height: 440px;
    border-radius: 10px;
    box-shadow: 0px 0px 40px rgba(255, 225, 30, 0.2);
    border: 3px solid rgba(255, 225, 30, 0.2)
}

/* PAST EVENTS CONTENT  */
.past-events img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 3px solid rgba(255, 225, 30, 0.2);
    margin: 10px;
    vertical-align: middle;
}

.carousel {
    overflow: hidden;
    width: 95%;
    max-width: 2500px;
    height: 300px;
    background-color: #2B2A27;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0px 0px 35px rgba(255, 225, 30, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-container {
    display: flex;
    gap: 25px;
    align-items: center;
    cursor: grab;
    will-change: scroll-position; /* Optimize for scrolling */
    transition: transform 0.05s linear; /* Smoother transition */
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.image-container::-webkit-scrollbar {
    display: none;
}

.image-container img {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    border: 3px solid rgba(255, 225, 30, 0.2);
    box-shadow: 0 0 20px rgba(255, 225, 30, 0.2);
    user-select: none;
    flex-shrink: 0;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px; 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    margin-bottom: 50px;
}

.game-link {
    text-decoration: none;
    display: block; /* Ensure each link takes full width */
    margin-bottom: 20px;
}

.game-card {
    background-color: #2B2A27;
    border: 3px solid rgba(255, 225, 30, 0.2);
    border-radius: 10px;
    box-shadow: 0px 0px 40px rgba(255, 225, 30, 0.2);
    text-align: center;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 0px 40px rgba(255, 225, 30, 0.2);
    border: 3px solid rgba(255, 225, 30, 0.2);
    margin-bottom: 10px;
}

.game-card h3 {
    margin: 15px 0 10px;
    font-size: 1.5em;
    color: #fff;
}

.game-card p {
    padding: 0 15px 15px;
    color: #c5c4bd;
}

/* Price styling */
.price {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700; 
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .games-list {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
    }
}

@media (max-width: 768px) {
    .games-list {
        grid-template-columns: 1fr; /* 1 card per row on mobile */
    }
}
.tournament.html {
    margin: 0;
    padding: 0;
    background-color: #1D1C18;
    display: flex;
    justify-content: center;
}

.tournament.html .main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tournament-content {
    list-style-type: none;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tournament-content li {
    list-style: none;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 20px;
    padding-top: 10px;
}


.btn-box .btn {
    text-decoration: none;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 4rem;
    background: rgba(255, 225, 30, 0.2);
    border: .2rem solid #FFD700;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .1rem;
    color: #c5c4bd;
}

.tournament-content img {
    width: 700px;
    height: 450px;
    border-radius: 5px;
    border: 3px solid rgba(255, 225, 30, 0.2);
    box-shadow: 0 0 20px rgba(255, 225, 30, 0.2);
}

/* Global Responsive Styles */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px; /* Adjust text size for readability */
    }

    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .navbar a {
        display: block;
        margin: 10px 0;
    }

    .content {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .location-box, 
    .main-content, 
    .reviews, 
    .event-content, 
    .games-content, 
    .tournament-content {
        width: 100%; /* Make all sections take full width */
    }

    .hero img {
        height: auto;
        width: 100%;
    }

    .carousel {
        height: auto;
        padding: 15px;
    }

    .image-container img {
        width: 80%;
        height: auto;
    }

    .btn-box {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-box .btn {
        width: 90%;
        margin-bottom: 10px;
    }
}

/* MERCH STORE LAYOUT  */
.navbarstore {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #393934;
    padding: 15px;
    color: #FFE11E;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.navbarstore nav {
    margin-right: 100px;
}

.navbarstore a {
    color: #9D8DF1;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

.navbarstore a:hover {
    color: #FFE11E;
}

.navbarstore .cart-btn-container {
    display: flex;
    justify-content: end;
    margin-right: 15px;
}

.brand-name {
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
}

.brand-name img {
    width: 100px;
    height: 45px;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(157, 141, 241, 0.2);
}

.store-content {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.merch-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px 40px; 
    padding: 20px;
    width: 100%; 
    box-sizing: border-box;
}

.store-card {
    background-color: #2B2A27;
    border: 3px solid rgba(255, 225, 30, 0.2);
    border-radius: 10px;
    box-shadow: 0px 0px 40px rgba(255, 225, 30, 0.2);
    text-align: center;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%; 
    transition: transform 0.3s ease;
}

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

.store-card img {
    display: block;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0px 0px 40px rgba(255, 225, 30, 0.2);
    border: 3px solid rgba(255, 225, 30, 0.2);
    margin-bottom: 10px;
}

.store-card h3 {
    margin: 15px 0 10px;
    font-size: 1.5em;
    color: #fff;
}

.store-card p {
    padding: 0 15px 15px;
    color: #c5c4bd;
}

/* Price styling */
.price {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700; 
    margin-top: 10px;
}

.store-link {
    text-decoration: none;
    display: block;
}

.cart-btn-container {
    position: absolute;
    top: 40px;
    right: 30px;
    transform: translateY(-50%);
}

.cart-btn {
    background-color: #FFD700;
    color: #393934;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

.cart-btn:hover {
    background-color: #FFE11E;
}

#cart-count {
    font-weight: bold;
}

#clear-cart-btn {
    position: absolute;
    background-color: transparent;
    top: 10px;
    left: 10px;
    border: none;
    font-size: 20px;
    padding: 5px 5px;
    cursor: pointer;
}

#clear-cart-btn:hover {
    background-color: #45a049;
}

.cart-popup {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.cart-popup h3 {
    text-align: center;
    color: #393934;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    position: relative;
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f2f2f2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.remove-item-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    color: red;
    cursor: pointer;
}

.remove-item-btn:hover {
    color: darkred;
}

.cart-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;  /* Space between image and text */
    align-self: center;
}

.cart-item .item-details {
    text-align: center;
    margin-bottom: 10px;
}

.cart-item .item-details .game-name {
    font-weight: bold;
    color: #393934;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.cart-item .item-details .price {
    font-size: 1.1em;
    color: #393934;
    margin-bottom: 5px;
}

.cart-item .item-details .quantity-controls {
    margin-top: 5px;
    font-size: 1.2em;
    color: #393934;
}

.cart-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.cart-popup-footer .total-price {
    font-size: 1.4em;
    font-weight: bold;
}

.cart-item .item-details span {
    flex: 1;
    margin-right: 10px;
}

.cart-item .quantity-controls button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.cart-item .quantity-controls button:hover {
    background-color: #e0e0e0;
}

.cart-item .price {
    font-size: 1.2em;
    color: #393934;
    font-weight: bold;
}

.cart-item .total-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #4CAF50;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
}

.quantity-controls button:hover {
    background-color: #e0e0e0;
}

.cart-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.cart-popup-footer .total-price {
    font-size: 1.4em;
    font-weight: bold;
}

.checkout-btn {
    background-color: #e01111;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
}

.cart-popup-footer  {
    background-color: #45a049;
}

.checkout-btn:hover {
    background-color: #45a049;
}

.clear-cart-btn:hover {
    background-color: #45a049;
}

.close-btn:hover {
    background-color: #45a049;
}
.cart-popup.active {
    transform: translateX(0);
}
