/* ------------------- */
/* 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: 10px;
    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;
}

/* ------------------- */
/* Guestbook Entries */
/* ------------------- */

.guestbook-entry {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed #f0a;
    border-radius: 12px;
    padding: 12px;
    margin: 20px auto;
    max-width: 500px;
    font-family: 'Comic Sans MS', 'Comic Sans', Sans-Serif;
    font-size: 1em;
    line-height: 1.5;
    color: #333;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

main section p {
    color: #ffffff;
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* ------------------- */
/* Shop Item Container */
/* ------------------- */

.shop-item {
    text-align: center;
    color: #fff;
    font-family: 'Comic Sans MS', comic sans, sans-serif;
    max-width: 200px;
}

.shop-item em {
    color: #ff66cc;
    font-weight: bold;
    text-shadow: 1px 1px 3px #000;
}

/* ------------------- */
/* Dropdown Menu */
/* ------------------- */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 160px;
    z-index: 1000;
    text-align: left;
    border: 2px dashed #66ccff;
    padding: 10px;
    border-radius: 8px;
}

.dropdown-content li {
    display: block;
    margin: 5px 0;
}

.dropdown-content a {
    color: #66ccff;
    font-size: 16px;
    display: block;
}

.dropdown-content a:hover {
    color: #ffccff;
    text-shadow: 0 0 3px #ff66cc;
}

.dropdown:hover .dropdown-content {
    display: block;
}

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

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

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