/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    z-index: -1;
}

/*Dropdown*?
/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropbtn {
  background-color: #00CC00;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #111;
  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: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

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

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Rainbow Stripes */
.rainbow-stripes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 60vh;
    background: linear-gradient(90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #8f00ff
    );
    opacity: 0.5;
    filter: blur(50px);
    z-index: 1;
}

/* Floating Lights */
.floating-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffa6b0;
    border-radius: 50%;
    box-shadow: 0 0 20px #ffa6b0;
    animation: float 3s infinite ease-in-out;
}

.light:nth-child(1) { top: 20%; left: 20%; }
.light:nth-child(2) { top: 15%; left: 30%; animation-delay: 0.5s; }
.light:nth-child(3) { top: 25%; right: 20%; animation-delay: 1s; }
.light:nth-child(4) { top: 10%; right: 30%; animation-delay: 0.5s; }
.light:nth-child(5) { top: 70%; left: 35%; animation-delay: 1s; }
.light:nth-child(6) { top: 75%; right: 33%; animation-delay: 0.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Game Cards Section */
.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
}

/* Constrained Image inside Cards */
.card-image {
    width: 100%;
    height: 200px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fully fills the area without distortion */
    border-radius: 8px;
}

/* Temporary card backgrounds - replace with images */
.heart-bg { background: linear-gradient(45deg, #ff4444, #ff0000); }
.rainbow-bg { background: linear-gradient(45deg, #ff4444, #ffaa00); }
.sun-bg { background: linear-gradient(45deg, #ffaa00, #ffff00); }
.ring-bg { background: linear-gradient(45deg, #00aaff, #0044ff); }
.moon-bg { background: linear-gradient(45deg, #4400ff, #aa00ff); }
.green-bg { background: linear-gradient(45deg, #00ff00, #008800); }

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Rating Styles */
.rating {
    color: #ffaa00;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hearts-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.star {
    margin-right: 1px; 
}

.star img {
    width: 24px;
    height: 24px;
}

.score {
    font-weight: bold;
    margin-top: 5px;
    display: block;
}

/* Modal/Popup Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Add hover effect for close button */
.close:hover {
    color: #ffaa00;
    transition: color 0.3s ease;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1.5rem;
    gap: 2.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* MAIN NAV RAINBOW COLOURS */
.main-nav a.activeHome {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #ff0000;
}

.main-nav a.activeAbout {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #ffaa00;
}

.main-nav a.activePoliticks {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #ffff00;
}

.main-nav a.activeGame {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #00ff00;
}

.main-nav a.activeTut {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #0000ff;
}

/* Content Section Styles */
.content-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rainbow-divider {
    height: 3px;
    width: 100%;
    margin: 1rem 0 2rem;
    background: linear-gradient(90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #8f00ff
    );
    border-radius: 3px;
}

/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h3 {
    color: #ffaa00;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    margin-left: 50px;
}

.footer-section p {
    opacity: 0.8;
    padding: 20px;
}

.social-links, .footer-links {
    list-style: none;
    padding: 0;
    margin-left: 50px;
}

.social-links li, .footer-links li {
    margin-bottom: 0.5rem;
}

.social-links a, .footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-links a:hover, .footer-links a:hover {
    opacity: 1;
    color: #ffaa00;
}

.copyright {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* About Page Specific Styles */
.about-content h2 {
    margin: 2rem 0 1rem;
    color: #ffaa00;
}

.rating-explanation {
    margin: 2rem 0;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffaa00;
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 120px;
}

/* Submit Form Styles */
.process-steps {
    counter-reset: step-counter;
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
}

.process-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.process-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: #ffaa00;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.process-steps h4 {
    margin: 0 0 0.5rem;
    color: #ffaa00;
}

.requirements-list {
    list-style-type: none;
    padding: 0;
}

.requirements-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.note {
    background-color: rgba(255, 170, 0, 0.1);
    border-left: 3px solid #ffaa00;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    opacity: 0.7;
    font-size: 0.85rem;
}

.submit-button {
    background-color: #ffaa00;
    color: black;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #ff9900;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .rating-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-stars {
        margin-bottom: 0.5rem;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-top-btn:hover {
    background: linear-gradient(90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #8f00ff
    );
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Animate the arrow on hover */
.scroll-top-btn:hover svg {
    animation: bounce 1s infinite;
}

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