@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* General Styling */
body {
    font-family: 'Press Start 2P', cursive;
    background: #121212;
    color: #fff;
    text-align: center;
    padding: 30px;
    transition: 0.4s ease-in-out;
}

/* Light Mode */
body.light-mode {
    background: #f0f0f0;
    color: #333;
}

/* Main Container */
.container {
    width: 90%;
    max-width: 500px;
    margin: auto;
    background: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 255, 204, 0.5);
    transition: 0.4s ease-in-out;
}

/* Flexbox for Recommendations & Guide */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

/* Recommendation Section */
.recommendation-section {
    width: 90%;
    max-width: 500px;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 255, 204, 0.5);
    margin-bottom: 30px;
}

/* Mood & Genre Guide */
.guide-container {
    width: 90%;
    max-width: 700px;
    padding: 20px;
    background: #333;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 255, 204, 0.5);
}

.guide-container h3 {
    color: #00ffcc;
    margin-bottom: 20px;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    width: 100%;  /* Ensure full width */
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #222;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 255, 204, 0.3);
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #00ffcc;
}

th {
    background-color: #333;
    font-size: 18px;
    color: #00ffcc;
}

td {
    background-color: #444;
    font-size: 16px;
}

/* Light Mode Styling */
body.light-mode table {
    background-color: white;
    color: #333;
}

body.light-mode th {
    background-color: #f0f0f0;
    color: #ff66cc;
}

body.light-mode td {
    background-color: #ddd;
}

/* Form Input Group Styling */
.input-group {
    margin-bottom: 20px;
}

/* Input Labels */
label {
    font-size: 16px;
    color: #00ffcc;
}

/* Select Dropdown Styling */
select {
    width: 100%;
    padding: 10px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    background: #2a2a2a;
    color: white;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

body.light-mode select {
    background: white;
    color: black;
    border-color: #ff66cc;
}

/* Button Styling */
button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #00ffcc, #ff66cc);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

body.light-mode button {
    background: linear-gradient(45deg, #ff66cc, #00ffcc);
    color: black;
}

/* Button Hover Effects */
button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Theme Toggle Button */
#themeToggle {
    padding: 8px 15px;
    font-size: 1rem;
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    color: #00ffcc;
    cursor: pointer;
    font-weight: bold;
}

#themeToggle:hover {
    background: #00ffcc;
    color: #121212;
}

/* Header Styling */
h1 {
    color: #00ffcc;
    font-size: 2.5rem;
    margin-bottom: 2px;
    margin-top: 1px;
}
h2 {
    color: #ff0000; /* Red color */
    font-size: 1.5rem;
    margin-bottom: 2px;
    text-shadow: 0 0 7px #ff0000, 0 0 1px #f6f0f0, 0 0 1px #ffffff;
}


s1 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 2px;
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% {
        opacity: 1; /* Fully visible */
    }
    50% {
        opacity: 0; /* Invisible at halfway point */
    }
}

/* Responsive Styling */
@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .recommendation-section,
    .guide-container {
        width: 100%;
    }

    /* Make table scrollable */
    .table-container {
        overflow-x: auto;
    }

    th, td {
        font-size: 14px;
        padding: 8px;
    }

    /* Allow the table to scale within the available space */
    table {
        width: 100%;
    }
}

#results li {
    margin-bottom: 10px;  /* Adjust the value as needed */
}

/* Genre Description Container */
.genre-description-container {
    margin-top: 30px;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

.genre-description-container h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #333;
}

.genre-description-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.genre-description-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    color: #444;
    line-height: 1.5;
}

.genre-description-item strong {
    font-weight: bold;
    color: #333;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .genre-description-list {
        grid-template-columns: 1fr; /* Stack the items on smaller screens */
    }
}