:root {
    --primary-color: #00FFFF;
    --secondary-color: #FF00FF;
    --background-color: #000066;
    --text-color: #FFFFFF;
    --accent-color: #FFFF00;
    --step-bg-color: #000033;
    --warning-bg-color: #330000;
}

body {
    font-family: 'MS Sans Serif', 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    text-shadow: 1px 1px 2px #000000;
}

header {
    background-color: var(--step-bg-color);
    color: white;
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-style: ridge;
    margin-bottom: 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

h1 {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    text-shadow: 2px 2px 0 var(--secondary-color),
                -2px -2px 0 var(--primary-color);
    font-size: 2.5em;
    letter-spacing: 2px;
    margin: 0;
    animation: rainbow 6s linear infinite;
}

@keyframes rainbow {
    0% { color: #ff0000; }
    17% { color: #ffff00; }
    33% { color: #00ff00; }
    50% { color: #00ffff; }
    67% { color: #0000ff; }
    83% { color: #ff00ff; }
    100% { color: #ff0000; }
}

h2, h3 {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 #000;
}

.step {
    background-color: var(--step-bg-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary-color);
    border-style: ridge;
    position: relative;
}

.step::before {
    content: "⭐";
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 20px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.warning {
    background-color: var(--warning-bg-color);
    border: 2px solid #ff0000;
    border-style: ridge;
    padding: 1rem;
    margin: 1rem 0;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { border-color: #ff0000; }
    50% { border-color: #ff6600; }
    100% { border-color: #ff0000; }
}

.warning p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
}

marquee {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    vertical-align: middle;
    margin: 0 0.5rem;
}

ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
	list-style-type: square;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

i {
	opacity: 0.75;
}

s {
	opacity: 0.25;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

a:hover::after {
    content: "≫";
    position: absolute;
    right: -12px;    animation: bounce 0.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.spoiler-button {
    width: 100%;
    font-size: 1.2em;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    background: var(--step-bg-color);
    border: 2px outset var(--primary-color);
    padding: 0.5rem;
    text-align: left;
    cursor: pointer;
    text-shadow: 2px 2px 0 #000;
}

.spoiler-button:hover {
    background-color: var(--background-color);
}

.spoiler-button:active {
    border-style: inset;
}

.glossary-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.glossary-content.hidden {
    display: none;
}

.arrow {
    display: inline-block;
    width: 20px;
    color: var(--accent-color);
    text-shadow: none;
}

.glossary dl {
    margin: 1rem 0 0 0;
    padding: 0;
}

.glossary dt {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.glossary dt::before {
    content: "📎";
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.glossary dd {
    margin: 0.5rem 0 1rem 2rem;
    padding-left: 1rem;
    border-left: 2px dashed var(--secondary-color);
}

.code {
    font-family: 'Courier New', monospace;
    background-color: var(--step-bg-color);
    border: 1px solid var(--primary-color);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--accent-color);
    text-shadow: none;
    display: inline-block;
    margin: 0 2px;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--step-bg-color);
    color: var(--primary-color);
    border: 2px outset var(--primary-color);
    font-family: 'Courier New', monospace;
    text-decoration: none;
    margin: 1rem 0;
    cursor: pointer;
}

.button:hover {
    background: var(--primary-color);
    color: var(--step-bg-color);
    border-style: inset;
}

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: var(--step-bg-color);
    border: 1px solid var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 1px outset var(--secondary-color);
}

::selection {
    background: var(--secondary-color);
    color: var(--text-color);
}
