@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

body {
    font-family: 'Courier Prime', monospace;
    background-color: #111111;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav {
    padding: 15px 0;
    background-color: #1a1a1a;
    border-bottom: 1px solid #555555;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 0 15px;
    display: inline-block;
}

nav a:hover {
    background-color: #2a2a2a;
}

hr {
    border: none;
    border-top: 1px solid #555555;
    margin: 20px auto;
    width: 80%;
    max-width: 800px;
}

h1, h2, h3 {
    color: #FFFFFF;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

ul {
    list-style-type: none;
    padding: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

ul p {
    margin: 5px 0;
}

a {
    color: #FFFFFF;
    text-decoration: underline;
}

a:hover {
    color: #CCCCCC;
}

dl {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 10px;
}

dt {
    font-weight: bold;
    color: #FFFFFF;
    margin-top: 15px;
    margin-bottom: 5px;
}

dd {
    margin-left: 0px;
    margin-bottom: 10px;
    color: #EEEEEE;
}

footer {
    padding: 15px 0;
    background-color: #1a1a1a;
    border-top: 1px solid #555555;
    margin-top: auto;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    flex-grow: 1;
    text-align: center;
}

.back-to-top {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
}

.blinking-cursor-container {
    position: relative;
    display: inline-block;
    font-size: 1.2em;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    overflow: hidden;
}

.blinking-cursor-solid,
.blinking-cursor-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.blinking-cursor-solid {
    animation: blink-solid 1s step-end infinite;
}

@keyframes blink-solid {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.blinking-cursor-outline {
    animation: blink-outline 1s step-end infinite;
}

@keyframes blink-outline {
    0%, 49% { opacity: 0; }
    50%, 100% { opacity: 1; }
}

.section-box {
    background-color: #222222;
    border: 1px solid #444444;
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 4px;
    text-align: left;
}

.section-box p {
    margin: 0;
    max-width: none;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
    text-align: left;
}

.section-box code {
    display: block;
    word-break: break-all;
    font-size: 0.9em;
    color: #BBBBBB;
    text-align: left;
}

.subtle-text-color {
    color: #BBBBBB;
    text-align: center;
}

/* Specific styles for the secret begin here */
main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 1px solid #444444;
    border-radius: 4px;
}

#ai-interaction-box {
    background-color: #1a1a1a;
    border: 1px solid #FFFFFF;
    padding: 20px;
    margin: 40px auto;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
}

#ai-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    background-color: #222222;
    border: 1px solid #444444;
    color: #FFFFFF;
    font-family: 'Courier Prime', monospace;
    font-size: 1em;
    border-radius: 4px;
}

#ai-button {
    background-color: #333333;
    color: #FFFFFF;
    border: 1px solid #555555;
    padding: 10px 20px;
    font-family: 'Courier Prime', monospace;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#ai-button:hover {
    background-color: #555555;
}

#ai-response {
    margin-top: 20px;
    font-size: 1.1em;
    color: #D0D0D0;
}

.loading-text {
    color: transparent;
    position: relative;
    overflow: hidden;
}

.loading-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #D0D0D0 0%, #BFBFBF 25%, #D0D0D0 50%, #BFBFBF 75%, #D0D0D0 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    background-position: 200% 0;
    animation: loading-gradient 1.5s linear infinite;
}

@keyframes loading-gradient {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
