/* This is specifically for the ATCKR homepage. We will test run shortly. */



/* reset styles */
article, body, div, footer, header, main h1, h2, h3, h4, nav, img, ul, li, p {
    border: 0;
    margin: 0;
    padding: 0;
}

body {
  font-family: "Share Tech Mono", monospace;
    line-height: 1.6;
    color: #00FF00;
    background-color: #0A0A0A;
}

/* this is the header section */
header {
    background: #0a0a0a;
    border-bottom: 2px solid #526d3a;
}
main{
    background-image: url("gif.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    animation: fadeDown 1s ease forwards;
}

.logo {
    height: 150px;
   grid-column: 1;
   justify-self: left; 
}

nav {
    grid-column: 3;
    justify-self: end; 
}

nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-family: "Share Tech Mono", monospace;

}

nav a:hover {
    color: #52d63a;
}

/* hero page */

.hero {
    text-align: center;
    animation: fadeUp 1s ease forwards;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: #52d63a;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 0 14px rgba(82, 214, 58, 0.5);
}

.hero-tagline {
    font-size: 0.95rem;
    color: rgba(0, 255, 0, 0.65);
    margin-bottom: 22px;
    letter-spacing: 0.04em;
}

/* Terminal typing line */
.terminal {
    display: inline-block;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid #526d3a;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.88rem;
    color: #00ff00;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.terminal-prompt {
    color: #52d63a;
    font-weight: bold;
}

/* Blinking cursor */
.cursor {
    display: inline-block;
    animation: blink 0.75s step-start infinite;
    color: #52d63a;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* -----------------------------------------------
   START BUTTON
----------------------------------------------- */
.start-cont {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 28px;
    animation: fadeUp 1s ease forwards;
}

.start {
    background-color: #52d63a;
    color: white;
    border: none;
    display: inline-block;
    padding: 18px 40px;
    width: fit-content;
    font-size: 1.6rem;
    font-family: "Share Tech Mono", monospace;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;

    /* Glowing pulse animation */
    animation: glowPulse 2s ease-in-out infinite;
}

.start:hover {
    filter: brightness(1.15);
    transform: scale(1.04);
    transition: transform 0.18s, filter 0.18s;
}

@keyframes glowPulse {
    0%,  100% { box-shadow: 0 0 8px  rgba(82, 214, 58, 0.5); }
    50%        { box-shadow: 0 0 28px rgba(82, 214, 58, 0.95); }
}
/* navigation section (usage of transitions/animations here) */
nav.site-navigation {
    background-color: #FFFFFF;
    text-align: center;
}

nav.site-navigation li {
    display: inline-block;
    margin: 0 15px;
    text-align: center;
}

nav.site-navigation li:hover {
    -ms-transform: scale(1.4);
    transform: scale(1.4);
}

nav.site-navigation a:link {
    text-decoration: none;
    color: #333;
}

nav.site-navigation a:visited {
    color: darkgray;
}

nav.site-navigation a:hover, nav.site-navigation a:focus {
    color: #333;  
    text-shadow: 1px -1px 0 black; /* displays a black shadow when hovering around the navigation page. */
}

nav.site-navigation a:active {
    position: relative;
    top: 1px;
    left: 1px;
}

/* skip navigation features */
.skip-navigation {
    position: absolute;
    left: -10000px;
}

p.skip-navigation a:focus {
    left: 20px;
    top: 0.4em;
    background: white;
    padding: 0;
    color: #e63946;
    text-decoration: none;
}

/* images and links for the article cards */
.articles{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
}

.article-card{
    width: 260px;
    border: 1px solid #52d63a;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background: black;
    transition: transform 0.3s ease;
}

.article-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 0 15px #52d63a;
}

.article-card img{
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.article-text{
    padding: 15px;
}

.article-text h3{
    font-size: 16px;
    margin-bottom: 10px;
}

.article-text p{
    font-size: 13px;
    opacity: 0.8;
}

/* footer */
.site-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: #111;
    color: #888;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #555;
}

/* responsive web design for mobile devices only! */
@media print {
    .container, h1, h2, p {
        color: black;
        background-color: lightgrey;
    }
    
    .site-navigation ul {
        flex-direction: column;
        gap: 1em;
    }
    
    nav {
        display: none;
    }
}
/* animations for fading */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FADE UP */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

}
.profile-box {
    max-width: 700px;
    margin: 60px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #52d63a;
    border-radius: 12px;
    color: white;
}

.score-history {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #52d63a;
    border-radius: 12px;
    background: rgba(82, 214, 58, 0.08);
}

.score-history h2 {
    margin-bottom: 15px;
    color: #52d63a;
}

.score-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.score-card {
    padding: 15px;
    border: 1px solid #526d3a;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.65);
}

.score-card p {
    margin: 6px 0;
    color: white;
}
/* wrap title so splash moves with it */
.title-wrap {
    position: relative;
    display: inline-block;
}

/* fix spacing between the two title lines */
.hero-title {
    line-height: 1.2;
    margin: 0;
}

/* minecraft-style splash text (clean + readable) */
.cyber-splash {
    position: absolute;
    top: 12px;
    right: -165px;

    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;

    /* softer glow so it's readable */
    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.45),
        0 0 6px rgba(255, 255, 255, 0.25);

    transform: rotate(15deg);
    transform-origin: center;

    animation: cyberPulse 1.2s infinite ease-in-out;

    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

/* smooth pulsing animation (moves as one unit) */
@keyframes cyberPulse {
    0% {
        transform: rotate(15deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.08);
    }
    100% {
        transform: rotate(15deg) scale(1);
    }
}
