/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Roboto:wght@400;700&display=swap');

/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    padding: 20px;
    transition: padding-left 0.3s ease; /* Ensure smooth transition */
}

body {
    margin: 0;
    padding-left: 0px; /* Default padding */
    transition: padding-left 0.3s ease; /* Smooth transition for padding changes */
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1f1f1f;
    border-bottom: 1px solid #ddd;
}

.logo h1 {
    margin: 0;
}

.logo img {
    max-width: 120px;
    height: auto;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #00adb5; /* Tech blue accent */
    margin-left: 10px;
}

/* Logo Link Styles */
.logo-link {
    text-decoration: none; /* Removes the underline from the link */
    color: inherit;        /* Inherits the text color from the parent element */
    display: inline-block; /* Ensures proper alignment and spacing */
    transition: color 0.3s ease; /* Adds a smooth color transition on hover */
}

.logo-link:hover {
    color: #ffca3a; /* Changes color on hover to provide visual feedback */
}

.logo-link h1 {
    margin: 0; /* Removes default margin from the <h1> */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #00adb5; /* Sets the text color to match your branding */
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 25px;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00adb5; /* Accent color on hover */
}

.headercart a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1em;
}

.headercart a:hover {
    color: #ffca3a;
}

.rightheader nav {
    display: flex;
    align-items: center;
}

/* Profile Section */
.profile {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #00adb5;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
    border-color: #ffffff;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 30px;
    background-color: #121212;
}

/* Product Card */
.product-card {
    background-color: #1f1f1f;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 173, 181, 0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 15px 0;
    color: #00adb5;
    font-size: 1.2em;
}

.product-card p {
    font-size: 0.95em;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Button Styles */
.btn {
    background-color: #00adb5;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    font-size: 1em;
}

.btn:hover {
    background-color: #007a7f;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Cart Section */
.cart-section {
    padding: 60px 30px;
    background-color: #121212;
}

.cart-section h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 25px;
    color: #00adb5;
    text-align: center;
}

.cart-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cart-item {
    display: flex;
    align-items: center;
    background-color: #1f1f1f;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 173, 181, 0.2);
}

.cart-item-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-right: 20px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    color: #00adb5;
    font-size: 1.1em;
}

.cart-item-details p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.cart-summary {
    margin-top: 40px;
    text-align: right;
    color: #e0e0e0;
}

.cart-summary p, .cart-summary h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.cart-summary hr {
    border: 0;
    height: 2px;
    background: #00adb5;
    margin: 20px 0;
}

.cart-summary .btn {
    margin-left: 10px;
}

/* Add to Cart Notification */
.cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #00adb5;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 5px;
    animation: slide-in 0.5s forwards;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

@keyframes slide-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #00adb5;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Authentication Form */
.auth-form {
    max-width: 400px;
    margin: 60px auto;
    background-color: #1f1f1f;
    padding: 30px;
    border: 1px solid #333333;
    border-radius: 10px;
    animation: fadeIn 1s ease-in-out;
}

.auth-form h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 25px;
    text-align: center;
    color: #00adb5;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #555555;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.auth-form input::placeholder {
    color: #888888;
}

.auth-form .btn {
    width: 100%;
    padding: 12px 0;
    background-color: #00adb5;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.auth-form .btn:hover {
    background-color: #007a7f;
}

.auth-form a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #00adb5;
    text-decoration: none;
    font-weight: 500;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Welcome Message Section */
.welcome-message {
    max-width: 800px;
    text-align: left;
    margin: 60px auto;
    background-color: #1f1f1f;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-in-out;
}

.welcome-message h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
    color: #00adb5;
}

.welcome-message p {
    font-size: 1.1em;
    color: #b0b0b0;
}

/* Register Page Enhancements */
.auth-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #555555;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.auth-form select::placeholder {
    color: #888888;
}

/* Product Details Page */
.product-details {
    display: flex;
    flex-wrap: wrap;
    padding: 60px 30px;
    gap: 30px;
    justify-content: center;
    background-color: #121212;
}

.product-image {
    width: 350px;
    height: 350px;
    object-fit: contain;
    border: 1px solid #333333;
    border-radius: 10px;
    background-color: #1f1f1f;
    padding: 10px;
}

.product-info {
    max-width: 600px;
    color: #e0e0e0;
}

.product-info h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: #00adb5;
    font-size: 2em;
}

.product-info p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #b0b0b0;
}

.product-info .price {
    font-weight: 700;
    font-size: 1.5em;
    color: #00adb5;
    margin-bottom: 20px;
}

/* Cart Page Enhancements */
.cart-section {
    padding: 60px 30px;
    background-color: #121212;
}

.cart-section h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 25px;
    color: #00adb5;
    text-align: center;
}

.cart-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cart-item {
    display: flex;
    align-items: center;
    background-color: #1f1f1f;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 173, 181, 0.2);
}

.cart-item-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-right: 20px;
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    color: #00adb5;
    font-size: 1.1em;
}

.cart-item-details p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.cart-summary {
    margin-top: 40px;
    text-align: right;
    color: #e0e0e0;
}

.cart-summary p, .cart-summary h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.cart-summary hr {
    border: 0;
    height: 2px;
    background: #00adb5;
    margin: 20px 0;
}

.cart-summary .btn {
    margin-left: 10px;
}

/* Checkout Page */
.checkout-form {
    max-width: 600px;
    margin: 60px auto;
    background-color: #1f1f1f;
    padding: 30px;
    border: 1px solid #333333;
    border-radius: 10px;
    animation: fadeIn 1s ease-in-out;
}

.checkout-form h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 25px;
    text-align: center;
    color: #00adb5;
    font-size: 2em;
}

.checkout-form input, .checkout-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #555555;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.checkout-form input::placeholder, .checkout-form select::placeholder {
    color: #888888;
}

.checkout-form .btn {
    width: 100%;
    padding: 12px 0;
    background-color: #00adb5;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.checkout-form .btn:hover {
    background-color: #007a7f;
}

/* Confirmation Message */
.confirmation {
    text-align: center;
    padding: 60px 30px;
    background-color: #121212;
    color: #e0e0e0;
}

.confirmation h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #00adb5;
    margin-bottom: 20px;
}

.confirmation p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.confirmation .btn {
    padding: 12px 25px;
    background-color: #00adb5;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.confirmation .btn:hover {
    background-color: #007a7f;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        flex-direction: column;
        width: 100%;
    }

    nav a {
        margin: 10px 0;
    }

    .product-details {
        flex-direction: column;
        align-items: center;
    }

    .product-image {
        width: 100%;
        max-width: 300px;
    }

    .product-info {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-card h3 {
        font-size: 1em;
    }

    .product-info h2 {
        font-size: 1.5em;
    }

    .confirmation h2 {
        font-size: 2em;
    }

    .checkout-form h2 {
        font-size: 1.8em;
    }
}
/* Console Modal Styles */
.console-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 40%; /* Adjusted to 70% of the screen width */
    height: 100%;
    background-color: #333;
    color: #fff;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none; /* Hidden by default */
}

.console-section h3 {
    margin-top: 0;
}

.console-section pre {
    background-color: #444;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

.console-section code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #e6e6e6;
}

.console-modal.collapsed {
    width: 65px; /* Collapsed width */
    padding: 5px 5px; /* Reduced padding when collapsed */
    background-color: #333; /* Solid dark background */
    overflow: hidden; /* Hide overflowing content */
    transition: width 0.3s ease, padding 0.3s ease; /* Smooth transition */
}

.clear-button {
    background-color: #ff4d4d;
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9em;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 4px;
}

.clear-button:hover {
    background-color: #ff1a1a;
}

/* Optional: Center the toggle button vertically */
.console-modal.collapsed .toggle-button {
    position: absolute;
    top: 5%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.console-modal h3 {
    font-family: 'Fredoka One', cursive;
    color: #ffca3a;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.console-modal .toggle-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ffca3a;
    color: #333;
    padding: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.console-modal .toggle-button:hover {
    background-color: #f3722c;
}

.console-modal .clear-button {
    background-color: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.console-modal .clear-button:hover {
    background-color: #e85d4f;
}

.console-toggle-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 10px;
    color: #333;
}

.console-toggle-btn:hover {
    color: #ffca3a;
}

#consoleOutput {
    margin-top: 40px; /* Space below the toggle button */
    max-height: calc(100% - 80px); /* Adjust based on padding and header */
    overflow-y: auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4em;
}

#consoleOutput p {
    border-bottom: 1px solid #444;
    padding: 5px 0;
    margin: 0;
}

#consoleOutput pre {
    background-color: #444;
    padding: 5px;
    border-radius: 3px;
    overflow-x: auto;
}

body {
    padding-left: 300px; /* Same as expanded width */
    transition: padding-left 0.3s ease;
}

body.modal-visible {
    padding-left: 70%; /* Match the modal width */
}

.console-modal.collapsed ~ main {
    padding-left: 50px; /* Same as collapsed width */
}

/* Small sliver for collapsed state */
.console-modal.collapsed .toggle-button {
    padding: 5px;
    font-size: 1.5em;
}

/* Optional: Custom Scrollbar for WebKit Browsers */
#consoleOutput::-webkit-scrollbar {
    width: 8px;
}

#consoleOutput::-webkit-scrollbar-track {
    background: #444;
}

#consoleOutput::-webkit-scrollbar-thumb {
    background-color: #ffca3a;
    border-radius: 4px;
}

/* Style for the Pixel Server Data section */
#pixelServerData {
    margin-top: 20px;
}

#pixelServerData p {
    border-bottom: 1px solid #444;
    padding: 5px 0;
    margin: 0;
}

#pixelServerData pre {
    background-color: #444;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

#pixelServerData code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4em;
    color: #e6e6e6;
}

#countdownTimer {
    color: #ffca3a;
    font-size: 1em;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #1f1f1f;
    color: #e0e0e0;
    padding: 20px 0;
    border-top: 1px solid #333333;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00adb5; /* Accent color on hover */
}

.footer-copy p {
    margin: 10px 0 0 0;
    font-size: 0.9em;
    color: #b0b0b0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .footer-links a {
        margin: 5px 10px;
        font-size: 0.9em;
    }

    .footer-copy p {
        font-size: 0.8em;
    }
}

/* Content Section Styles */
.content-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    background-color: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-in-out;
}

.content-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #00adb5;
    margin-bottom: 10px;
    text-align: center;
}

.content-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #00adb5;
    margin-top: 30px;
    margin-bottom: 10px;
}

.content-section p, .content-section ul, .content-section ol {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-section ul, .content-section ol {
    padding-left: 20px;
}

.content-section a {
    color: #00adb5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #ffca3a;
}

@media (max-width: 768px) {
    .content-section {
        margin: 30px 15px;
    }

    .content-section h1 {
        font-size: 2em;
    }

    .content-section h2 {
        font-size: 1.5em;
    }
}

/* Styles for Manage Your Preferences Link */
#manage-preferences-link {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

#manage-preferences-link:hover {
    color: #00adb5; /* Accent color on hover */
}

/* Styles for Manage Your Preferences Button */
.manage-preferences-btn {
    background-color: #00adb5;
    color: #ffffff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.manage-preferences-btn:hover {
    background-color: #007a7f;
}