:root {
    --header-height: 200px;
    --stripe-offset: 0px;
}

@font-face {
    font-family: 'HelveticaNeueBlack';
    src: url('assets/archivefont1/HelveticaNeueBlack.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'HelveticaNeueMedium';
    src: url('assets/archivefont1/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    font-family: 'HelveticaNeueMedium', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #111;
}


.site-header {
    position: relative;
    height: var(--header-height);
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}


.header-bg-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #ffffff,
        #ffffff 20px,
        #e0e0e0 20px,
        #e0e0e0 40px
    );
    background-size: 56.57px 56.57px;
    background-position: var(--stripe-offset) 0;
    will-change: background-position;
   
    z-index: 1;
}


.header-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('assets/archivelogo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.25;
    z-index: 2;
    pointer-events: none;
    animation: fadeInLogo 2s ease-in-out forwards;
}

@keyframes fadeInLogo {
    0% { opacity: 0; transform: translate(-50%, -70%);}
    100% { opacity: 0.25; transform: translate(-50%, -50%);}
}


.header-content {
    position: relative;
    z-index: 5;
    text-align: center;
    transform: translateY(-250%);
    animation: slideDown 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideDown {
    0% { transform: translateY(-250%); }
    100% { transform: translateY(0); }
}

.archive-title {
    font-family: 'HelveticaNeueBlack', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    color: white;
    font-size: 4rem;
    margin: 0;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.archive-subheader {
    font-family: 'HelveticaNeueMedium', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: white;
    font-size: 1.5rem;
    margin: 10px 0 0 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


.header-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, black 100%);
    z-index: 4;
    pointer-events: none;
}


.header-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, black, rgb(27, 28, 29), black);
    background-size: 200% 100%;
    animation: borderCycle 3s linear infinite;
    z-index: 5;
}

@keyframes borderCycle {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}


main {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
    box-sizing: border-box;
}


main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
   
    background-color: #000000;
    background-image: 
        linear-gradient(45deg, transparent 48%, #141414 48%, #141414 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, #141414 48%, #141414 52%, transparent 52%);
    
   
    background-size: 20px 20px;
    
    z-index: 0;
}

@keyframes backgroundMove {
    0% { background-position: 0 0, 50px 50px; }
    100% { background-position: -100px 100px, -50px 150px; }
}


.content-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    color: white;
}


.warning-box {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #333;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    transition: width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), 
                height 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), 
                padding 0.5s ease;
    width: auto;
    overflow: hidden;
    text-align: left;
}


.warning-box {
   
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.warning-box p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #ccc;
}

.warning-box .warning-red {
    color: #ff0000;
    font-weight: 900;
    font-size: 1.2rem;
    font-family: 'HelveticaNeueBlack', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    margin-bottom: 0 !important;
    text-shadow: 0 0 10px rgb(255, 0, 0);
}

@keyframes pulseRed {
    0% { opacity: 1; text-shadow: 0 0 25px rgba(255, 0, 0, 1); color: #ff0000; }
    100% { opacity: 1; text-shadow: 0 0 10px rgba(255, 0, 0, 0.5); color: #ffffff; }
}


.verify-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 50px;
    font-family: 'HelveticaNeueBlack', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.verify-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}



.warning-box {
    transition: all 0.5s ease-in-out;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.warning-green {
    color: #4CAF50;
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.fractal-gif {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #333;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.pulse-anim {
    display: inline-block;
    animation: pulseRed 0.8s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



.warning-box, .warning-box * {
    box-sizing: border-box;
}


.warning-box {
    max-width: 800px;
   
}


.home-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    min-height: 80vh;
    height: auto;
    z-index: 2;
}


.sidebar-box {
    width: 250px;
    background: linear-gradient(to bottom, #000000, #333333);
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-btn {
    color: #fff;
    background: none;
    border: none;
    text-align: left;
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 0;
    width: 100%;
}

.main-page-btn {
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.main-page-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.sidebar-btn.selected {
    font-weight: 900;
}

.divisions-container {
    margin-top: 0;
    flex-grow: 1;
    overflow-y: visible;
   
    scrollbar-width: thin;
    scrollbar-color: #888 #000;
}


.sidebar-box::-webkit-scrollbar {
    width: 6px;
}
.sidebar-box::-webkit-scrollbar-track {
    background: #000; 
}
.sidebar-box::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 3px;
}


.divisions-container::-webkit-scrollbar {
    width: 6px;
}
.divisions-container::-webkit-scrollbar-track {
    background: #000; 
}
.divisions-container::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 3px;
}


.divisions-title {
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: 0;
}

.division-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.division-btn {
    color: #ccc;
    background: none;
    border: none;
    text-align: left;
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    width: 100%;
    transition: color 0.2s;
}

.division-btn:hover {
    color: white;
    font-weight: bold;
    text-decoration: none;
}


.division-btn::before {
    content: '> ';
    display: inline-block;
    width: 0;
    opacity: 0;
    transition: all 0.2s ease;
    margin-right: 0;
}

.division-btn:hover::before {
    width: 15px;
    opacity: 1;
    margin-right: 5px;
}


#cursor-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 15px;
    border-radius: 8px;
    max-width: 250px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1000;
    line-height: 1.4;
    border: 1px solid #444;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.1s;
    font-family: 'HelveticaNeueMedium', sans-serif;
}


.dashboard-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-card {
    background: linear-gradient(to bottom, #000000, #333333);
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'HelveticaNeueMedium', sans-serif;
    color: #fff;
    text-align: left;
    transition: transform 0.1s;
    overflow: hidden;
}

.guide-card {
    width: 100%;
    height: 150px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    font-size: 1.8rem;
}

.header-icon {
    height: 100px;
    width: auto;
    opacity: 0.8;
}

.guide-card:hover, .action-card:hover { 
    transform: scale(1.005);
   
    background: linear-gradient(to bottom, #111111, #444444);
}

.dashboard-split {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-grow: 1;
}

.announcements-card {
   
    background: linear-gradient(to bottom, #000000, #333333);
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    width: 350px; 
    flex-shrink: 0;
    overflow: hidden;
    cursor: default;
}

.announcements-header {
    background: linear-gradient(to bottom, #ffffff, #cccccc);
    color: #000;
    padding: 25px;
    font-size: 1.4rem;
    font-family: 'HelveticaNeueMedium', sans-serif;
    line-height: 1.2;
    border-bottom: 2px solid white;
}

.announcements-content {
    flex-grow: 1;
    background: transparent;
    padding: 20px;
    color: #fff;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}


.guide-page-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.guide-page-title {
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff;
}

.guide-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-section {
    width: 100%;
    background: linear-gradient(to bottom, #000000, #333333);
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 25px 30px;
    box-sizing: border-box;
    color: #fff;
    font-family: 'HelveticaNeueMedium', sans-serif;
}

.guide-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4rem;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.guide-section p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #ccc;
}

.guide-section p:last-child {
    margin-bottom: 0;
}

.action-card {
    flex-grow: 1;
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start;
    padding: 30px;
    font-size: 1.5rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}


.action-icon {
    position: absolute;
    bottom: -10%; 
    right: -5%; 
    height: 110%; 
    width: auto;
    z-index: 0;
    pointer-events: none;
    
   
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 100%);
    mask-image: linear-gradient(to top, transparent 0%, black 100%);
    
    transition: opacity 0.3s ease;
}

.action-card:hover .action-icon {
   
   
   
    opacity: 0.9;
   
   -webkit-mask-image: linear-gradient(to top, transparent 0%, black 60%);
   mask-image: linear-gradient(to top, transparent 0%, black 60%);
}


.action-text {
    position: relative;
    z-index: 1;
   
    -webkit-text-stroke: 3px black;
   
    paint-order: stroke fill;
}


.card-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    box-sizing: border-box;
    text-align: center;
    font-family: 'HelveticaNeueMedium', sans-serif;
    border-top: 1px solid #333;
    z-index: 10;
    
   
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}

.action-card:hover .card-tooltip {
    opacity: 1;
    transform: translateY(0);
}



.announcement-folder {
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-family: 'HelveticaNeueMedium', sans-serif;
}
.announcement-folder:hover .folder-body {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.announcement-folder:hover {
    transform: translateY(-2px);
}


.folder-tab {
    display: inline-block;
    border: 1px solid white;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 6px 15px; 
    font-size: 0.75rem;
    font-weight: normal; 
    background-color: transparent;
    margin-left: 0;
    color: #ccc;
    position: relative;
    top: 1px; 
    z-index: 2;
    background: black; 
    text-transform: none;
}

.folder-body {
    border: 1px solid white;
    border-radius: 0 8px 8px 8px; 
    border-top-left-radius: 0; 
    padding: 15px 20px;
    font-size: 1.1rem;
    color: #fff;
    position: relative;
    z-index: 1;
    background: transparent;
    text-transform: none;
    letter-spacing: normal;
}


#modal-subheader {
    margin-top: -10px;
    margin-bottom: 20px;
    color: #888;
    font-size: 1rem;
    font-weight: normal;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #111;
    color: #fff;
    border: 2px solid white;
    border-radius: 20px;
    padding: 40px;
    width: 600px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    font-family: 'HelveticaNeueMedium', sans-serif;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #ccc;
}

#modal-title {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

#modal-text {
    line-height: 1.6;
}



.guide-split-bottom {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.guide-split-bottom .guide-section {
    flex: 1;
    width: auto;
}

.glossary-section-btn {
    cursor: pointer;
    text-align: center;
    font-size: 1.4rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glossary-section-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}


/* Experiment Log Styles */
.experiment-log-box {
    cursor: default;
}

.experiment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.experiment-title {
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.experiment-header.active .toggle-icon {
    transform: rotate(180deg);
}

.experiment-content {
    margin-top: 15px;
    animation: fadeIn 0.5s ease-in-out;
}

.experiment-description {
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 15px;
}

.dialogue-box {
    border: 2px solid white;
    padding: 15px;
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialogue-line {
    margin-bottom: 20px;
    color: #fff;
}

.dialogue-line:last-child {
    margin-bottom: 0;
}

.speaker {
    font-weight: bold;
    color: #ddd;
    margin-right: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
