/* HTTPDaemons - Main Styles
-------------------------------------------------- */

/* Font Definitions */
@font-face {
    font-family: 'HeaderFont';
    src: url('../fonts/alagard.ttf') format('truetype');
}

@font-face {
    font-family: 'BasicFont';
    src: url('../fonts/alagard.ttf') format('truetype');
}

@font-face {
    font-family: 'Terminal';
    src: url('../fonts/Terminal.ttf') format('truetype');
}


::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 0, 0, 0.7);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 0, 0, 0.9);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 0, 0, 0.7) rgba(0, 0, 0, 0.1);
}

/* Base Elements */
html, *, button, a {
    cursor: url('../fonts/cursor.cur'), auto;
}

button:hover, a:hover {
    cursor: url('../fonts/cursor.cur'), auto;
}

html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background-color: black;
    color: #FF0000;
    font-family: 'BasicFont', 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255,0,0,0.5);
    text-align: center;
    position: relative;
    filter: brightness(1.4);
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

a {
    color: rgb(255,50,50);
    text-decoration: none;
    transition: color 0.2s;
}

a:visited {
    color: rgb(255,50,50);
}

a:hover {
    color: rgb(255,255,255);
}

/* Typography */
h1 {
    font-family: 'Terminal', 'Courier New', monospace;
    font-size: 30px;
    margin-bottom: 4px;
    margin-top: 0;
    background: linear-gradient(to bottom, red 0%, #fdff75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;  
    text-decoration:none;  
}

h2 {
    font-family: 'Terminal', 'Courier New', monospace;
    font-size: 24px;
    margin-top: 0;
    background: linear-gradient(to bottom, red 0%, #fdff75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;  
    text-decoration:none;  
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Container Elements */
#content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
}

#login-error{
    font-family: "Terminal";
}

.faq-q{
    margin:auto;
    max-width:calc(100% - 0.5em);
    margin-top:0.5em;
    margin-bottom:0.2em;
    font-family: "Terminal";
    font-size:1.5em;
    background: linear-gradient(to bottom, #75ff80 0%, red 100%);
    background: linear-gradient(to bottom, #fdff75 0%, red 100%);
    background: linear-gradient(to bottom, red 0%, #fdff75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;  
    text-decoration:none;  
}

.faq-a{
    margin:auto;
    max-width:calc(100% - 1em);
    line-height:1.5em;
    margin-bottom:2em;
    margin-top:0.5em;
}


.main-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Header and Navigation */
header {
    text-align: center;
    padding: 10px 0;
    position: relative;
}

#daemons_logo {
    max-width: 7em;
    margin: auto;
    margin-top: 0.2em;
    margin-bottom: 0.3em;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#daemons_logo:hover {
    transform: scale(1.05);
}

.main-nav {
    margin: 0 auto;
    max-width: 600px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 8px 15px;
    font-family: 'HeaderFont', 'Courier New', monospace;
    font-size: 20px;
    color: #FF0000;
    text-shadow: 0 0 5px rgba(255,0,0,0.5);
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255,0,0,0.8);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #FF0000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 80%;
}

/* Page Sections */
.page-section {
    display: none;
    margin: 5px auto;
    max-width: 700px;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section Specific - Home */
.portal-quote {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.3;
}

.portal-symbol {
    font-family: monospace;
    display: inline-block;
    font-weight:bold;
    margin-right:0.08em;
}


.portal-quote{

 background: linear-gradient(to bottom, red 0%, #ffae6d 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
 color: transparent;  
 text-decoration:none;     
}


/* Section Specific - About */
.about-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(50, 0, 0, 0.3);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}



/* Section Specific - Contact */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(50, 0, 0, 0.3);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

/* Legacy Sections */
.section {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    display: none;
}

.active {
    display: block;
}

/* Form Elements */
.input-container {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-container label {
    width: 100px;
    text-align: right;
    margin-right: 10px;
}

.input-container input, .input-container textarea {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    background-color: #300;
    color: #FF0000;
    border: 1px solid #FF0000;
    border-radius: 3px;
    font-family: 'BasicFont', 'Courier New', monospace;
}

.input-container textarea {
    height: 100px;
    resize: vertical;
}

input[type="text"], input[type="password"], input[type="email"], textarea {
    text-align: center;
    padding: 0.5em;
    font-size: 1.3em;
    color: #FF0000;
    font-family: 'BasicFont', 'Courier New', monospace;
    background-color: #300;
    border: 1px solid #FF0000;
    width: 14em;
    max-width: calc(100% - 3em);
    margin: 10px 0;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 0, 0, 0.4);
}

/* Buttons */
button {
    background-color: #FF0000;
    color: rgb(70,0,0);
    border: none;
    padding: 10px 20px;
    font-size: 25px;
    margin: 10px;
    font-family: 'Terminal', 'Courier New', monospace;
    box-shadow: 0 0 10px 5px rgba(255,0,0,0.2);
    cursor: url('../fonts/cursor.cur'), auto;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #FF3333;
    box-shadow: 0 0 15px 7px rgba(255,0,0,0.3);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.about-content{
    font-family:Courier New;
}

/* Login Section Styling */
.login-header {
    margin-bottom: 20px;
}

#contact-reason, #contact-email, #contact-name{
    text-align:left;
    font-family:Courier New;
}

.login-icon {
    max-width: 5em;
}

.login-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Visual Elements */
.back-link {
    color: #FF0000;
    cursor: pointer;
    transition: color 0.2s;
    font-family:"Terminal";
}

.back-link:hover {
    color: #FFFFFF;
    text-shadow: 0 0 5px rgba(255,0,0,0.8);
}

.error {
    color: #FF0000;
    font-size: 16px;
    margin: 10px 0;
}

.success {
    color: #00FF00;
    font-size: 16px;
    margin: 10px 0;
}

/* Daemon Creation UI */
#daemon-preview {
    font-family: 'Courier New', monospace;
    font-size: 3em;
    line-height: 1.2;
    height: 3.6em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preview-row {
    margin-top: -0.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#symbol, #eyes, #mouth {
    display: inline-block;
    width: 4em;
    height: 1.2em;
    line-height: 1.2em;
    vertical-align: middle;
    overflow: hidden;
}

.arrow-choice, #daemon-preview {
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.customization-hint {
    font-size: 0.8em;
    margin-bottom: 10px;
    font-family:"Terminal";
}

#forgot-password,#join-daemons{
    font-family:"Terminal";
}

#forgot-password-message{
    font-family:Courier New;
}

#color-choices {
    margin-top: 1em;
    text-align: center;
    width: 100%;
}

.colorchoice {
    width: 25px;
    height: 25px;
    display: inline-block;
    margin: 0 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.colorchoice:hover {
    transform: scale(1.2);
}

/* Animation Elements */
.cursor {
    animation: blink 1s step-end infinite;
}

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

/* Background Effects */
#matrixCanvas, #grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#grain-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10002;
opacity: 0.1;
mix-blend-mode: multiply;
}

#matrixCanvas {
    z-index: -1;
    opacity: 0.5;
}

#flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    pointer-events: none;
    z-index: 9999;
    transition: background-color 0.1s ease;
}

.shopbanner{
    max-width:100%;
}
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(100,0,0);
    z-index: 9990;
    transition: opacity 1s ease-out;
    font-family: 'Courier New', monospace;
    color: white;
    padding: 5px;
    font-size:12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
}

#loading-overlay.fade-out {
    opacity: 0;
}

#boot-text {
    white-space: pre-wrap;
    line-height: 1.2;
    text-align: left;
    text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), 
    linear-gradient(
        90deg, 
        rgba(255, 0, 0, 0.06), 
        rgba(0, 255, 0, 0.02), 
        rgba(0, 0, 255, 0.06)
    );
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10001;
    opacity: 0.8;
}

/* Status UI Elements */
#os-version {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #FF0000;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(255,0,0,0.8);
    z-index: 9800;
    text-align: left;
}

#music-control {
    position: absolute;
    top: 8px;
    right: 8px;
    color: red;
    text-shadow: rgba(255,0,0,0.5);
    border: none;
    padding: 8px 8px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 9000;
    font-family: monospace;
}

#music-control.visible {
    opacity: 1;
}

#play-pause-btn {
    width: 30px;
    height: 30px;
    background-color: rgba(150,0,0,0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#play-pause-btn i {
    color: rgb(100,0,0);
    font-size: 14px;
}

.record-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-top: 2px solid red;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#play-pause-btn.playing .record-spinner {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#music-file-name {
    color: red;
    font-size: 12px;
    margin-left: 5px;
    text-shadow: 0 0 5px rgba(255,0,0,0.5);
    text-align: right;
    margin-right: 1em;
}

.music-subtitle {
    font-style: italic;
    font-size: 0.8em;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #FF0000;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    z-index: 8999;
    text-shadow: 0 0 15px rgba(255,0,0,0.8);
}

#datetime {
    margin-right: 1em;
    display: inline-block;
}

#crypto-prices span {
    margin-right: 10px;
}

/* Shop & Access Code Areas */
.access-code-desc {
    font-family: monospace;
    margin: auto;
    max-width: 30em;
    margin-bottom: 1em;
}

.shop-invite {
    max-width: 30em;
    font-family: monospace;
    margin: auto;
}

.access-icon, .email-icon, .password-icon {
    height: 2em;
    vertical-align: middle;
    display: inline-block;
    margin-right: 0.2em;
}

/* Welcome Overlay */
#redoverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 1.2em;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.welcome-daemon {
    font-family: Courier New, monospace;
    font-size: 1.3em;
    margin-bottom: 0.5em;
    text-shadow: 0 0 6px rgba(255,0,0,1);
}

.welcome-text {
    font-size: 1em;
    text-shadow: 0 0 6px rgba(255,0,0,0.6);
}

.icon-symbol-welcome, .icon-eyes-welcome, .icon-mouth-welcome {
    line-height: 1;
}

/* Effects */
.bullet-hole {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.debris {
    position: fixed;
    width: 3px;
    height: 3px;
    background-color: #FF0000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    box-shadow: 3px 5px 3px black;
}



#loginButton, #loginButton-activate {
    font-size:1.5em;
    padding:0.5em;
    width:6em;
    font-family:"BasicFont";
}