/* ~*~ TourAgent Geocities Style ~*~ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard', cursive, sans-serif;
    background: #00133a url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="110" height="110"><circle cx="12" cy="12" r="1" fill="white"/><circle cx="60" cy="35" r="1" fill="yellow"/><circle cx="82" cy="70" r="1" fill="white"/><circle cx="33" cy="90" r="0.8" fill="yellow"/><circle cx="90" cy="17" r="0.8" fill="white"/><circle cx="20" cy="55" r="1" fill="yellow"/></svg>');
    color: #00ffea;
    line-height: 1.45;
    min-height: 100vh;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
}

.marquee-container {
    background: linear-gradient(90deg, #ff00cc, #ff6a00, #ffe600, #00ff88, #00d4ff, #7a5cff);
    padding: 5px;
    border: 3px ridge #c0c0c0;
    overflow: hidden;
    margin-bottom: 20px;
}

.marquee {
    animation: marquee 15s linear infinite;
    white-space: nowrap;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px #000;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, #001f5b, #4a0072);
    border: 5px ridge #ffe36c;
}

.rainbow-text {
    font-size: 3em;
    background: linear-gradient(90deg, #ff57c9, #ff9f1c, #fff740, #61ff6f, #42d6ff, #8d65ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 0 #000);
}

.book-icon {
    font-size: 4em;
    animation: floaty 2s ease-in-out infinite;
    display: block;
    margin: 8px auto;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-8px) rotate(6deg); }
}

.blink {
    animation: blink 1s step-start infinite;
    color: #ffff66;
    font-size: 1.45em;
}

@keyframes blink {
    50% { opacity: 0; }
}

.subtitle {
    color: #ffc1f0;
    font-size: 1.15em;
    margin-top: 10px;
}

.fancy-hr {
    border: none;
    height: 10px;
    background: linear-gradient(90deg, transparent, #ff57c9, #ff9f1c, #fff740, #61ff6f, #42d6ff, #8d65ff, transparent);
    margin: 20px 0;
}

.welcome-box,
.info-box,
.code-box,
.score-box {
    background: #4d0077;
    border: 4px outset #ff72d0;
    padding: 18px;
    color: #fff;
}

.welcome-box {
    text-align: center;
}

.welcome-sign {
    display: inline-block;
    font-size: 2.3em;
    font-weight: bold;
    color: #fff740;
    text-shadow: 0 0 10px #ff57c9;
    margin-bottom: 12px;
}

.main-table,
.features-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
}

.nav-cell {
    width: 230px;
    background: #00808b;
    border: 4px ridge #5ef7ff;
    vertical-align: top;
    padding: 15px;
}

.content-cell {
    background: #000b2b;
    border: 4px ridge #5d87ff;
    padding: 20px;
}

.sparkle {
    color: #ffe36c;
    text-align: center;
}

.sparkle::before,
.sparkle::after {
    content: "✨";
}

.nav-list {
    list-style: none;
    padding: 10px 0;
}

.nav-list li {
    padding: 5px 0;
}

.nav-list a,
.email a,
.webring a {
    color: #c6ffff;
    text-decoration: none;
}

.nav-list a:hover,
.email a:hover,
.webring a:hover {
    color: #fff740;
    text-decoration: underline;
}

.nav-list li::before {
    content: "👉 ";
}

.webring {
    margin-top: 20px;
    padding: 10px;
    background: #000;
    border: 2px solid #ffe36c;
    text-align: center;
    font-size: 0.92em;
}

.webring-title {
    color: #ff72d0;
    font-weight: bold;
}

.section-title {
    color: #ff72d0;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px #000;
}

.themes-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.theme-tag {
    background: linear-gradient(to bottom, #ff5b5b, #93003d);
    color: #fff;
    padding: 5px 14px;
    border: 2px outset #ff98b7;
    font-size: 0.92em;
    text-transform: uppercase;
}

.tasks-container {
    display: grid;
    gap: 14px;
}

.task-section {
    background: #250046;
    border: 3px outset #a66dff;
    padding: 12px;
}

.task-list {
    display: grid;
    gap: 10px;
}

.task-item {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.18);
    padding: 12px;
}

.task-name {
    display: block;
    color: #fff98b;
    font-weight: bold;
    margin-bottom: 8px;
}

.task-desc {
    display: block;
    color: #fff;
    margin-bottom: 8px;
}

.task-example {
    color: #70ffda;
    font-size: 0.92em;
}

.control-panel {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.fill-button {
    background: linear-gradient(180deg, #fffb6c, #ff7d33);
    color: #140021;
    border: 3px outset #fff;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(255, 247, 64, 0.55);
}

.fill-button.secondary {
    background: linear-gradient(180deg, #6ef7ff, #6994ff);
}

.fill-button:hover {
    transform: translateY(-1px) scale(1.01);
}

.code-box {
    background: #040404;
    border-color: #00ffd5;
}

.code-line {
    color: #9dffe8;
    font-family: "Courier New", monospace;
    margin-bottom: 6px;
}

.counter {
    text-align: center;
    margin-bottom: 12px;
}

.counter-display {
    display: inline-block;
    padding: 6px 12px;
    background: #000;
    color: #72ff88;
    border: 2px inset #fff;
    font-family: "Courier New", monospace;
    letter-spacing: 2px;
}

footer {
    text-align: center;
}

.badges {
    margin-top: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    margin: 4px;
    background: linear-gradient(180deg, #ffe36c, #ff8d33);
    color: #1a0530;
    border: 2px outset #fff;
    font-size: 0.82em;
}

@media (max-width: 760px) {
    .main-table,
    .main-table tr,
    .main-table td {
        display: block;
        width: 100%;
    }

    .nav-cell {
        width: 100%;
    }

    .rainbow-text {
        font-size: 2.2em;
    }
}
