/* ------------------- */
/* Reset and Base Styles */
/* ------------------- */

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: "Comic Sans MS", comic sans, sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom, #00aaff, #0047b3, #001f66);
    display: flex;
    flex-direction: column;
    text-align: center;
    
}

/* ------------------- */
/* Headings */
/* ------------------- */

h1, h2 {
    text-shadow: 2px 2px 5px #66ccff;
}

h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

h2 {
    font-size: 30px;
    margin-top: 5px;
}

main section h2 {
    color: #eef5ff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ------------------- */
/* Links */
/* ------------------- */

a {
    color: #66ccff;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

a:hover {
    color: #d6a2e8;
    text-shadow: 0 0 5px #ff66cc;
}

a:visited {
    color: #66ccff;
}

a:active {
    color: #ffffff;
}

main section p a {
    color: #55aaff;
    font-weight: 700;
    text-decoration: underline;
}

main section p a:hover {
    color: #77ccff;
}

/* ------------------- */
/* Animations */
/* ------------------- */

@keyframes blink-border {
    0%   { border-color: #66ccff; }
    50%  { border-color: #ff66cc; }
    100% { border-color: #66ccff; }
}

/* ------------------- */
/* Marquee */
/* ------------------- */

marquee {
    font-size: 20px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border: 2px dashed #66ccff;
    animation: blink-border 1s infinite alternate;
}

/* ------------------- */
/* Navigation Bar */
/* ------------------- */

nav {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    display: flex;
    justify-content: center;
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    font-family: "Comic Sans MS", comic sans, sans-serif;
}

nav ul li {
    display: flex;
    align-items: center;
    margin: 0 15px;
    line-height: 1.5;
}

nav a {
    font-family: "Comic Sans MS", comic sans, sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #66ccff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a span {
    font-family: "Comic Sans MS", comic sans, sans-serif;
}

nav a:hover,
nav a:hover span {
    color: #d6a2e8;
    text-shadow: 0 0 5px #ff66cc;
    cursor: pointer;
}

nav a.home-link img {
    margin-right: 0;
}

@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: row;       /* Keep horizontal layout */
    flex-wrap: wrap;           /* Allow wrapping to next line */
    justify-content: center;   /* Center wrapped lines */
    gap: 10px;                 /* Spacing between items */
    padding: 10px 0;
  }

  nav ul li {
    margin: 5px 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  nav a {
    font-size: 16px;
    padding: 8px 12px;
    white-space: normal;       /* Allow line breaks in long link text */
    text-overflow: unset;
    overflow: visible;
  }
}

/* ------------------- */
/* Images */
/* ------------------- */

img {
    width: 250px;
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
    display: block;
}

.gif-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gif-container img {
    width: 150px;
    max-width: 150px;
    height: auto;
    margin: 5px;
}

@media (max-width: 600px) {
    .gif-container img {
        max-width: 90px;
        margin: 3px;
    }
}

.shop-item img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
    border: 2px dashed #f0a;
    border-radius: 10px;
}

.image-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.logo-image {
    width: 900px;
    height: auto;
    display: block;
    margin: 20px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.main-image {
    width: 30%;
    height: auto;
    max-width: 300px;
}

@media (max-width: 600px) {
    .main-image {
        width: 80%;
        max-width: none;
    }
}

/* ------------------- */
/* Iframes */
/* ------------------- */

iframe {
    max-width: 90%;
    border-radius: 10px;
}

/* ------------------- */
/* Audio */
/* ------------------- */

audio {
    margin-top: 20px;
}

/* ------------------- */
/* General Container */
/* ------------------- */

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

/* ------------------- */
/* Footer */
/* ------------------- */

footer {
    padding: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer p {
    margin: 0;
    font-size: 16px;
}

.footer-player {
    margin-bottom: 10px;
}

/* ------------------- */
/* Hover-to-Translate Text */
/* ------------------- */

.hover-translate .en {
    display: none;
}

.hover-translate .jp {
    display: inline;
}

.hover-translate:hover .jp {
    display: none;
}

.hover-translate:hover .en {
    display: inline;
    color: #ffffff;
    cursor: pointer;
    text-shadow: 1px 1px 2px #ffffff;
}

/* ------------------- */
/* Input Section Styling */
/* ------------------- */

.input-line {
    padding: 10px;
    background: inherit;
}

.input-line input {
    color: inherit;
}


/* ------------------- */
/* Home Icon Styles */
/* ------------------- */

.home-icon {
    width: 85px;
    height: auto;
    display: block;
    margin: 0;
    align-self: center;
}

nav a.home-link {
    color: #66ccff;
}




body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: "Comic Sans MS", comic sans, sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom, #00aaff, #0047b3, #001f66);
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
    padding: px 0;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.image-link {
    position: relative;
    width: 250px; /* same width as images in first block */
    height: auto;
    display: block;
    overflow: hidden;
    border-radius: 10px; /* same as first block images */
    text-decoration: none;
}

.image-link img {
    width: 250px;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.image-link:hover img {
    transform: scale(1.05);
}

.overlay-strip {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.overlay-strip span {
    color: white;
    font-size: 16px;
    font-weight: bold;
    opacity: 1;
}

.image-row {
  display: flex;
  flex-wrap: wrap;   /* if you want them to wrap on smaller screens */
  justify-content: center; /* center the images horizontally */
  gap: 20px; /* spacing between images */
}
