/* General Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* Page Content */
.page {
    display: none; /* All pages are hidden by default */
    padding: 20px;
    background: white;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Show the active page */
.page.active {
    display: block;
}

/* Navigation Arrow Buttons */
.arrow-button {
    background: none;  /* Remove button background */
    border: none;       /* Remove button border */
    padding: 0;         /* Remove padding */
    cursor: pointer;
    display: inline-block;
    margin: 0;          /* Remove margin */
}

.arrow-button img {
    width: 30px;  /* Adjust the arrow size */
    height: auto;
    transition: transform 0.2s ease-in-out;
}

.arrow-button:hover img {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Body Style */
body {
    font-family: 'Press Start 2P', cursive;
    background-image: url('https://i.pinimg.com/736x/58/da/5e/58da5eaad92648867aec655b2572a6c7.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-align: center;
    position: relative;
}

/* Window Controls */
.window-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.window-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    color: white;
}

.window-controls button:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Fade-in and fade-out transitions */
.hidden {
    display: none;
    animation: fadeOut 0.5s ease-out;
}

.fadeIn {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* First Page */
#start-page {
    background-color: rgba(214, 197, 252, 0.73); /* Pastel Purple */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button {
    background-color: #b38bff; /* Light pastel purple */
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

button:hover {
    background-color: #9a6ad3;
}

/* Second Page */
#menu-page {
    background-color: rgba(214, 197, 252, 0.73); /* Pastel Purple */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Third Page: Recommendations */
#recommendations-page {
    background-color: rgba(214, 197, 252, 0.73);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background: rgb(202, 173, 250);
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: left;
}

/* Style for checked checkboxes */
input[type="checkbox"]:checked + label {
    color: #4b0082; /* Dark purple */
    font-weight: bold;
}

input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.5);
}

/* Page 4: MSA Section */
#msa-page {
    background-color: rgba(214, 197, 252, 0.73);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure button-row places buttons vertically on Page 2 */
.button-row {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    justify-content: center;
    align-items: center;
    gap: 15px; /* Adds space between buttons */
}

/* Page 5: Kdrama Recommendations */
#Kdrama-page {
    background-color: rgba(214, 197, 252, 0.73);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Arrow Buttons (on each anime, msa, kdrama name) */
.arrow-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}

.arrow-button img {
    width: 30px;
    height: auto;
    transition: transform 0.2s ease-in-out;
}

.arrow-button:hover img {
    transform: scale(1.1);
}
/* Page 3: Recommendations */
#recommendations-page {
    background-color: rgba(214, 197, 252, 0.73);
    padding: 15px; /* Reduced padding */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%; /* Reduced width */
    max-width: 500px; /* Set a max width */
    margin: 0 auto;
}

ul {
    list-style: none;
    padding: 0;
    font-size: 14px; /* Smaller text size */
}

li {
    background: rgb(202, 173, 250);
    margin: 8px; /* Reduced margin */
    padding: 8px; /* Reduced padding */
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: left;
}

/* Page 4: MSA Section */
#msa-page {
    background-color: rgba(214, 197, 252, 0.73);
    padding: 15px; /* Reduced padding */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%; /* Reduced width */
    max-width: 500px; /* Set a max width */
    margin: 0 auto;
}

/* Page 5: Kdrama Recommendations */
#Kdrama-page {
    background-color: rgba(214, 197, 252, 0.73);
    padding: 15px; /* Reduced padding */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%; /* Reduced width */
    max-width: 500px; /* Set a max width */
    margin: 0 auto;
}

/* Adjusting the text size for these pages */
#recommendations-page h2,
#msa-page h2,
#Kdrama-page h2 {
    font-size: 20px; /* Smaller font size for the headings */
    margin-bottom: 15px;
}

#recommendations-page ul li,
#msa-page ul li,
#Kdrama-page ul li {
    font-size: 13px; /* Reduced font size for list items */
}




.image-gallery {
  background-color: rgba(179, 139, 255, 0.55); /* Purple box behind the images */
  padding: 10px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 150px); /* Four columns for four images */
  gap: 0; /* No gap between images */
  margin: 20px auto;
  width: fit-content; /* Shrink container to the content's width */
}



.content-box {
  border: 2px solid #b38bff; /* Light pastel purple */
  padding: 15px;
  border-radius: 10px;
  background-color: rgba(214, 197, 252, 0.73); /* Pastel Purple */
}

.image-gallery {
  display: flex;
  gap: 10px; /* Adds space between images */
  justify-content: center;
}


.image-gallery img {
  width: 200px; /* Adjust size as needed */
  height: 200px;
  object-fit: cover;
  border: 2px solid #b38bff;
  border-radius: 5px;
}

