@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');

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Orbitron", sans-serif;
    background-color: #1D1C18;
    color: #c5c4bd;
    line-height: 1.6;
    padding-bottom: 20px;
}

header {
    background-color: #393934;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    position: relative;
    left: -70px;
}

.navbar a {
    color: #9D8DF1;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    font-size: 16px;
}

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

.hero {
    width: 100%;
    height: 400px;
    background-image: url('../Images/StarborneOdyssey.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px;
    background-color: #393934;
    color: #c5c4bd;
}

.game-info {
    width: 60%;
    padding-right: 20px;
}

.game-info h1 {
    font-size: 3em;
    color: #FFE11E;
    margin-bottom: 20px;
}

.game-info .description {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #c5c4bd;
}

.game-info .price {
    font-size: 1.3em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 20px;
}

.purchase-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.purchase-btn {
    background-color: #FFE11E;
    color: #393934;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease-in-out;
}

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

.features {
    margin-top: 30px;
}

.features h2 {
    font-size: 2em;
    color: #FFE11E;
    margin-bottom: 15px;
}

.features ul {
    list-style-type: none;
    padding-left: 0;
}

.features ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #c5c4bd;
}

.game-media {
    width: 35%;
    padding-left: 20px;
}

.game-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.game-trailer {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #393934;
}

.game-trailer h2 {
    font-size: 2.5em;
    color: #FFE11E;
    margin-bottom: 20px;
}

.trailer-container iframe {
    width: 80%;
    height: 450px;
    border-radius: 8px;
}

.related-games {
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #131212;
    color: #c5c4bd;
}

.related-games h2 {
    font-size: 2.5em;
    color: #FFE11E;
    margin-bottom: 30px;
    text-align: center;
}

.related-games-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
}

.related-game-card {
    background-color: #393934;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    height: 470px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.related-game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-game-card h3 {
    font-size: 1.6em;
    color: #FFE11E;
    margin-bottom: 15px;
}

.related-game-card p {
    font-size: 1.1em;
    color: #c5c4bd;
    margin-bottom: 15px;
}

.related-game-card .btn {
    background-color: #FFE11E;
    color: #393934;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
}

.related-game-card .btn:hover {
    background-color: #FFD700;
}

/* 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 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.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;
}

.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-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 {
    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;
}

.cart-btn-container {
    position: absolute;
    top: 50%;
    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);
}
