* 
{
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
    font-family: Arial, sans-serif;
}

a 
{
    text-decoration: none; 
    color: white;
}

#viewer {
    position: fixed;
    inset: 0;
}

#ui {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;

    padding: 15px 18px;
    border-radius: 10px;

    backdrop-filter: blur(10px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4);
}

#ui strong {
    font-size: 16px;
}

#fileInput {
    margin-top: 10px;
    width: 260px;
}

#filename {
    margin-top: 8px;
    color: #aaa;
    font-size: 13px;
}

#loading {
    display: none;
    margin-top: 8px;
    font-size: 13px;
}

@font-face {
    font-family: 'ramidots';
    src: url('fonts/Ramidots.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'manrope';
    src: url('fonts/Manrope-VariableFont_wght.ttf');
    font-weight: normal;
    font-style: normal;
}

.homepageLogo 
{
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    font-size: 25px;
    color: white;
    font-family: 'ramidots', sans-serif;
    cursor: pointer;
    display: none;
}

#menuNavigation
{
    position: fixed;
    top: 40px;
    left: -50px;
    z-index: 10;
    font-size: 25px;
    color: white;
    font-family: 'ramidots', sans-serif;
    cursor: pointer;
    display: none;
}

.baseTagline {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    font-family: 'ramidots', sans-serif;
    font-size: 75px;
    color: white;
}

#absolute-image {
    position: absolute;
    width: 25%;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

  .bottom-right-svg {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    pointer-events: none; /* Allows clicks to pass through */
  }

  #floating-button {
    position: fixed;
    bottom: 230px;
    right: -230px;
    padding: 16px 32px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'ramidots', sans-serif;
    font-size: 58px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 9999;
  }

/* thinker div */

#fade-wrapper 
{
    position: fixed;
    height: 100%;
    width: 100%;
    background: black;
    z-index: 10;
    display:flex;
    height:100vh;
    align-items:center;
}

.Center-Container 
{
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: auto;
    text-align: center;
}

#centerDiv
{
    position: fixed;
    height: 100%;
    width: 100%;
    background: transparent;
    z-index: 100;
    display:flex;
    align-items:center;
    min-height: 100px;
}

.centerContainer
{
    margin: 0 auto;
    overflow: auto;
    text-align: center;
    color: white;
    min-height: 100px;
    padding-top: 50px;
    font-family: 'ramidots', sans-serif;
    font-size: 28px;
}

/* panels */

#infoPanelWrapper
{
    position: fixed;
    height: 100%;
    width: 100%;
    background: transparent;
    z-index: 10;
    /*display:flex;*/
    display: none;
    height:100vh;
    align-items:center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.infoPanelCenter 
{
    width: 50%;
    height: 50%;
    margin: 0 auto;
    overflow: auto;
    text-align: center;
    z-index: 10000;
    color: black;
    background-color: #d0d0d0;
    /*background-image: linear-gradient(to bottom, #FF8811,#FFF8F0);*/
    animation: project-panel-in .35s cubic-bezier(.2, .8, .2, 1) both;
    box-shadow: 8px 8px 0 #11110f;
}

@keyframes project-panel-in {
  from {
    opacity: 0;
    transform: translate(
      calc(50vw),
      calc(50vh)
    ) scale(.06);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sectionTitle
{
    padding-top: 16px;
    padding-left: 20px;
    text-align: left;
    font-family: 'manrope', sans-serif;
    font-size: 12px;
}

.mainTitle
{
    padding-left: 20px;
    text-align: left;
    font-family: 'manrope', sans-serif;
    font-size: 40px;
}

.sectionText
{
    padding-top: 10px;
    padding-left: 20px;
    text-align: left;
    font-family: 'manrope', sans-serif;
    font-size: 14px;
}

.sectionText a
{
    color: black;
    text-decoration: underline;
}

.infoPanelCenter button 
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    color: #11110f;
    font: 15px 'manrope', monospace;
    letter-spacing: .12em;
    text-align: left;
    text-transform: uppercase;
    background: transparent;
    border: 0;
    border-top: 2px solid #11110f;
    cursor: pointer;
    /*padding: 20px;*/
    margin: 20px;
}

/* Modal Moderno */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-title {
    font-family: 'ramidots', sans-serif;
    font-size: 36px;
    color: white;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-text {
    font-family: 'manrope', sans-serif;
    font-size: 15px;
    color: #e0e0e0;
    line-height: 0.85;
}

.modal-text p {
    margin: 0 0 16px 0;
}

.modal-text ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.modal-text li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #d0d0d0;
}

.modal-text li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-size: 16px;
}

.modal-text strong {
    color: #ffffff;
    font-weight: 600;
}

.secret-dialog {
    max-width: 440px;
}

.secret-dialog-prompt {
    margin: 0 0 18px;
    color: #e0e0e0;
    font: 15px/1.5 'manrope', sans-serif;
}

.secret-word-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: 16px 'manrope', sans-serif;
}

.secret-word-input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.16);
}

.secret-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.secret-dialog-button {
    padding: 9px 16px;
    border: 1px solid #ff6b6b;
    border-radius: 7px;
    background: #ff6b6b;
    color: #171717;
    font: 13px 'manrope', sans-serif;
    cursor: pointer;
}

.secret-dialog-button.secondary {
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #ffffff;
}

.secret-dialog-button:hover,
.secret-dialog-button:focus-visible {
    filter: brightness(1.15);
    outline: none;
}

.secret-word-feedback {
    min-height: 22px;
    margin: 14px 0 0;
    color: #ffb0b0;
    font: 13px 'manrope', sans-serif;
}

.about-hint {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font: 18px 'ramidots', sans-serif;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    display: none;
}

.about-hint::before {
    content: '+';
    display: inline-block;
    margin-right: 8px;
    color: #ff6b6b;
    transition: transform 0.25s ease;
}

.about-hint:hover,
.about-hint:focus-visible {
    color: #ffffff;
    border-color: #ffffff;
    outline: none;
    transform: translateY(-3px);
}

.about-hint:hover::before,
.about-hint:focus-visible::before {
    transform: rotate(90deg);
}

.about-kicker {
    margin: 0 0 10px;
    color: #ff6b6b;
    font: 12px 'manrope', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-version {
    display: inline-block;
    animation: aboutVersionPulse 4s ease-in-out infinite;
}

@keyframes aboutVersionPulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 107, 107, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
        text-shadow: 0 0 12px yellow;
    }
}

.about-modal-container {
    border-color: rgba(255, 107, 107, 0.35);
}

.about-panel {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9998;
    width: min(390px, calc(100vw - 40px));
    padding: 24px 48px 24px 24px;
    border: 1px solid rgba(255, 107, 107, 0.42);
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
    font: 14px/1.5 'manrope', sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 20px));
}

.about-panel p {
    margin: 0 0 12px;
}

.about-panel h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font: 28px 'ramidots', sans-serif;
}

.about-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-panel li {
    padding: 4px 0 4px 18px;
    position: relative;
}

.about-panel li::before {
    content: '>'; 
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

.about-panel.visible {
    pointer-events: auto;
}

.about-panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.about-panel-close:hover,
.about-panel-close:focus-visible {
    background: rgba(255, 107, 107, 0.35);
    outline: none;
}

@media (max-width: 600px) {
    .about-hint {
        left: 16px;
        bottom: 16px;
    }

    .about-panel {
        left: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }
}

/* Achievement Counter */
.achievement-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'ramidots', sans-serif;
    font-size: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: none;
    z-index: 100000;
}

.achievement-counter.visible {
    display: flex;
    animation: achievementSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes achievementSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.7) rotateZ(-10deg);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.1) rotateZ(5deg);
    }
    85% {
        transform: translateY(-2px) scale(0.95) rotateZ(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateZ(0deg);
    }
}

.achievement-counter:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.achievement-counter {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.achievement-complete-link {
    display: inline-block;
    color: #7fffd4;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.achievement-complete-link:hover {
    color: #b7ffe3;
}

#achievementCount {
    color: #ff6b6b;
    font-weight: bold;
}

/* Flying Star Animation */
.floating-star {
    position: fixed;
    font-size: 32px;
    pointer-events: none;
    z-index: 999;
}

@keyframes starFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(360deg);
    }
}

.star-animation {
    animation: starFly 0.8s ease-out forwards;
}

#hiddenSpan
{
    display: none;
}

#fakeLink
{
    cursor: pointer;
}

.runLogo
{
    display: none;
    margin-left: -200px;
}

#secretLink:hover
{
    cursor: pointer;
    text-decoration: underline;
}

.hiddenSpan
{
    display: none;
}