@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #0a0a0a;
    color: #00ff41;
    margin: 0;
    padding: 0;
}

header {
    background-color: #1a1a1a;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff41;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    text-shadow: 0 0 5px #00ff41;
}

nav > a {
    color: #00ff41;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 1.1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

nav > a:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ff41;
}

.logout-btn {
    background-color: #00ff41;
    color: #0a0a0a;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.logout-btn:hover {
    background-color: #1a1a1a;
    color: #00ff41;
    box-shadow: 0 0 10px #00ff41;
    border: 1px solid #00ff41;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: #1a1a1a;
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
    background-color: #333;
}

.product-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #00ff41;
}

.product-card p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.product-card .price {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1.5rem;
}

.product-card button {
    width: 100%;
    padding: 12px;
    background-color: #00ff41;
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    transition: background-color 0.3s, color 0.3s;
}

.product-card button:hover {
    background-color: #1a1a1a;
    color: #00ff41;
    border: 1px solid #00ff41;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #00ff41;
    background-color: #1a1a1a;
}

.product-detail-card {
    background-color: #1a1a1a;
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.product-detail-card h2 {
    font-size: 2rem;
    color: #00ff41;
    margin-bottom: 1rem;
}

.product-detail-card p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.product-detail-card .price-button {
    padding: 15px 30px;
    background-color: #00ff41;
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 1rem;
}

.product-detail-card .price-button:hover {
    background-color: #1a1a1a;
    color: #00ff41;
    border: 1px solid #00ff41;
}

.product-detail-card .back-button {
    padding: 10px 20px;
    background-color: #333;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 1.5rem;
    margin-left: 1rem;
}

.product-detail-card .back-button:hover {
    background-color: #00ff41;
    color: #0a0a0a;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: #00ff41;
    font-size: 2rem;
}

/* --- Media Queries for Responsiveness --- */

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    .navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }

    .navigation.show {
        display: flex;
    }

    nav a {
        margin: 0.5rem 0;
    }

    .product-grid {
        padding: 1.5rem;
    }
}

/* For Mobile Phones */
@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 1rem;
    }
    
    .product-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-card h2 {
        font-size: 1.2rem;
    }

    .product-card p {
        font-size: 0.9rem;
    }

    .product-detail-card {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
}

/* Dropdown Button */
.dropbtn {
  background-color: #1a1a1a;
  color: #00ff41;
  padding: 16px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  margin-left: 1.5rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.dropbtn:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ff41;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a1a1a;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #00ff41;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  margin-left: 0;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #333;
    color: #fff;
    text-shadow: none;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.product-card .small-image {
    max-width: 50%; /* Make the image half the width of its container */
    display: block; /* Ensures margin auto works for centering */
    margin: 0 auto 1rem auto; /* Center the image and maintain bottom margin */
}

/* Video Container Styles */
.video-container {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.video-container h2 {
    font-size: 1.8rem;
    color: #00ff41;
    margin-bottom: 1.5rem;
}

.video-container iframe {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.video-container p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.support-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #00ff41;
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.support-button:hover {
    background-color: #1a1a1a;
    color: #00ff41;
    border: 1px solid #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.sub-grid .back-button {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: #333;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    transition: background-color 0.3s, color 0.3s;
    width: fit-content;
    justify-self: center;
}

.sub-grid .back-button:hover {
    background-color: #00ff41;
    color: #0a0a0a;
}
