/* ========================================
           RETRO90s.css Framework
           Simulating 90s Web Design
        ======================================== */

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BASE STYLES === */
body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #c0c0c0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, .05) 10px, rgba(255, 255, 255, .05) 20px);
    color: #000000;
    padding: 0;
    margin: 0;
}

/* === TYPOGRAPHY === */
.retro-title {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: #ff00ff;
    text-shadow: 2px 2px 0px #00ffff, 4px 4px 0px #ffff00;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.retro-heading {
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    color: #0000ff;
    text-decoration: underline;
    margin: 15px 0;
}

.retro-text {
    font-size: 14px;
    line-height: 1.4;
}

.retro-blink {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* === MARQUEE === */
.retro-marquee {
    background: #000080;
    color: #ffff00;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

.retro-marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

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

    100% {
        transform: translateX(-100%);
    }
}

/* === BUTTONS === */
.retro-button {
    background: #c0c0c0;
    border: 3px outset #ffffff;
    padding: 8px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000000;
    text-decoration: none;
    color: #000000;
    display: inline-block;
}

.retro-button:active {
    border-style: inset;
    box-shadow: inset 2px 2px 0px #000000;
}

.retro-button:hover {
    background: #d0d0d0;
}

/* === LINKS === */
a.retro-link {
    color: #0000ff;
    text-decoration: underline;
}

a.retro-link:visited {
    color: #800080;
}

a.retro-link:hover {
    color: #ff0000;
}

/* === CONTAINERS === */
.retro-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 5px ridge #808080;
    padding: 20px;
}

.retro-box {
    border: 3px groove #808080;
    padding: 15px;
    margin: 15px 0;
    background: #ffffff;
}

.retro-frame {
    border: 5px inset #808080;
    padding: 10px;
    background: #c0c0c0;
}

/* === BACKGROUNDS === */
.retro-bg-stars {
    background: #000000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="10" r="1" fill="white"/><circle cx="40" cy="30" r="1" fill="white"/><circle cx="70" cy="20" r="1" fill="white"/><circle cx="20" cy="60" r="1" fill="white"/><circle cx="80" cy="70" r="1" fill="white"/><circle cx="50" cy="80" r="1" fill="white"/></svg>');
    color: #ffffff;
}

.retro-bg-gradient {
    background: linear-gradient(180deg, #ff00ff 0%, #00ffff 100%);
}

/* === TABLES === */
.retro-table {
    border: 2px solid #000000;
    border-collapse: collapse;
    width: 100%;
    background: #ffffff;
}

.retro-table th {
    background: #000080;
    color: #ffffff;
    padding: 8px;
    border: 2px solid #000000;
    font-weight: bold;
}

.retro-table td {
    border: 1px solid #000000;
    padding: 8px;
}

.retro-table tr:nth-child(even) {
    background: #d3d3d3;
}

/* === FORMS === */
.retro-input {
    border: 2px inset #808080;
    padding: 5px;
    font-family: 'Courier New', monospace;
    background: #ffffff;
}

.retro-textarea {
    border: 2px inset #808080;
    padding: 5px;
    font-family: 'Courier New', monospace;
    background: #ffffff;
    resize: vertical;
}

/* === SPECIAL COMPONENTS === */
.retro-construction {
    text-align: center;
    padding: 20px;
    background: #ffff00;
    border: 5px dashed #ff0000;
}

.retro-construction::before {
    content: "🚧";
    font-size: 3em;
    display: block;
}

.retro-counter {
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 10px;
    border: 3px inset #808080;
    display: inline-block;
    font-size: 1.2em;
    letter-spacing: 2px;
}

.retro-badge {
    display: inline-block;
    padding: 5px 10px;
    background: linear-gradient(135deg, #ff0000, #ffff00);
    border: 2px solid #000000;
    font-weight: bold;
    text-shadow: 1px 1px 0px #000000;
    color: #ffffff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.retro-hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg,
            #ff0000 0%,
            #ff7f00 14%,
            #ffff00 28%,
            #00ff00 42%,
            #0000ff 57%,
            #4b0082 71%,
            #9400d3 85%,
            #ff0000 100%);
    margin: 20px 0;
}

/* === ANIMATIONS === */
.retro-spin {
    display: inline-block;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.retro-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.my-20 {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* === COMIC SANS OVERRIDE === */
.retro-comic {
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

/* === WEBRING BUTTON === */
.retro-webring {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 3px ridge #808080;
    padding: 10px;
    margin: 20px 0;
}

.retro-webring button {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
}

/* === NAVIGATION === */
.retro-nav {
    background: #c0c0c0;
    border: 3px ridge #808080;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px;
}

.retro-nav a {
    background: #ffffff;
    border: 2px outset #ffffff;
    padding: 6px 12px;
    text-decoration: none;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 2px 2px 0px #000000;
}

.retro-nav a:active {
    border-style: inset;
    box-shadow: inset 2px 2px 0px #000000;
}

.retro-nav a:hover {
    background: #d0d0d0;
}

/* === TABS === */
.retro-tabs {
    border-bottom: 3px ridge #808080;
    display: flex;
    gap: 5px;
}

.retro-tab {
    background: #c0c0c0;
    border: 3px ridge #808080;
    padding: 8px 16px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.retro-tab.active {
    background: #ffffff;
    border-bottom: 3px solid #ffffff;
    font-weight: bold;
}

.retro-tab:hover {
    background: #d0d0d0;
}