@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background: #000;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    margin: 20px;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Press Start 2P', monospace;
    font-weight: normal;
    margin: 20px 0 15px 0;
    position: relative;
}

h1 {
    font-size: 16px;
    margin-bottom: 20px;
}

h2 {
    font-size: 14px;
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    font-size: 12px;
    margin-top: 25px;
    margin-bottom: 10px;
}

h1:before {
    content: "# ";
    color: #fff;
}

h2:before {
    content: "## ";
    color: #fff;
}

h3:before {
    content: "### ";
    color: #fff;
}

h4:before {
    content: "#### ";
    color: #fff;
}

h5:before {
    content: "##### ";
    color: #fff;
}

h6:before {
    content: "###### ";
    color: #fff;
}

h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover {
    text-decoration: underline;
    cursor: pointer;
}

ul {
    list-style: none;
    padding-left: 20px;
    margin: 15px 0;
}

li {
    margin: 8px 0;
}

li:before {
    content: "* ";
    color: #fff;
}

p {
    margin: 12px 0;
}

a {
    color: #fff;
}

a:hover {
    text-shadow: 0 0 5px #fff;
    animation: textFlicker 0.1s infinite alternate;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    text-decoration: underline;
}

/* Undertale-themed Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
}

.glitch-container {
    position: relative;
    display: inline-block;
}

.loading-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

.loading-text.blink {
    animation: blink 1s infinite;
}

.loading-text.glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #ff0000;
    z-index: 1;
    opacity: 0;
    animation: glitch 4s infinite;
}

/* Main content fade in */
.main-content {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.main-content.fade-in {
    opacity: 1;
}

/* Blinking animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Glitch effect animation */
@keyframes glitch {
    0% { 
        opacity: 0;
        transform: translate(0);
    }
    2% { 
        opacity: 1;
        transform: translate(-2px, 1px);
        color: #ff0000;
    }
    4% { 
        opacity: 0;
        transform: translate(0);
    }
    6% { 
        opacity: 1;
        transform: translate(2px, -1px);
        color: #00ff00;
    }
    8% { 
        opacity: 0;
        transform: translate(0);
    }
    10% { 
        opacity: 1;
        transform: translate(-1px, 2px);
        color: #0000ff;
    }
    12% { 
        opacity: 0;
        transform: translate(0);
    }
    94% { 
        opacity: 0;
        transform: translate(0);
    }
    96% { 
        opacity: 1;
        transform: translate(-1px, 1px);
        color: #ff0000;
    }
    98% { 
        opacity: 0;
        transform: translate(0);
    }
    100% { 
        opacity: 0;
        transform: translate(0);
    }
}

/* Enhanced Undertale-style effects for the main content */
body {
    overflow-x: hidden;
}

/* Add some extra Undertale flavor to links */
a:hover {
    text-shadow: 0 0 5px #fff;
    animation: textFlicker 0.1s infinite alternate;
}

@keyframes textFlicker {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Undertale-style button effects */
p a, h1 a, h2 a, h3 a {
    transition: all 0.2s ease;
}

p a:hover, h1 a:hover, h2 a:hover, h3 a:hover {
    color: #ffff00;
    text-shadow: 2px 2px 0px #000;
}

.hackclub-flag {
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100px;
    height: auto;
    z-index: 1000;
}
