/*
Pipsmash 404 Page Stylesheet
*/

:root {
  --pipsmash-dark-green: #1E463A;
  --pipsmash-green: #25a163;
  --pipsmash-gold: #d4a04c;
  --pipsmash-light: #f8f9fa;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--pipsmash-dark-green);
    color: var(--pipsmash-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.error-container {
    text-align: center;
    padding: 2rem;
	
}

.logo {
    width: 60px;
    height: 60px;
    background-image: url('../img/pipsmash_logo_opt.PNG'); /* Ensure path is correct */
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto 1.5rem auto;
    opacity: 0.8;
}

.chart-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1rem auto;
}

svg path {
    stroke-width: 4px;
    stroke: var(--pipsmash-gold);
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Animation setup */
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 2s ease-out forwards;
}

svg .line-path-2 {
    animation-delay: 0.5s;
}

.error-text {
    font-family: monospace;
    font-size: 50px;
    font-weight: 700;
    fill: var(--pipsmash-green);
    opacity: 0;
    animation: flicker 2s linear forwards;
    animation-delay: 1.5s;
    text-shadow: 0 0 5px var(--pipsmash-green);
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--pipsmash-light);
    animation: fade-in 1s 1.8s ease-out forwards;
    opacity: 0;
}

p {
    font-size: 1.1rem;
    color: rgba(248, 249, 250, 0.7);
    margin: 0.5rem 0 2rem 0;
    animation: fade-in 1s 2s ease-out forwards;
    opacity: 0;
}

.btn-home {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--pipsmash-gold);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--pipsmash-gold);
    transition: all 0.3s ease-in-out;
    animation: fade-in 1s 2.2s ease-out forwards;
    opacity: 0;
}

.btn-home:hover {
    background-color: transparent;
    color: var(--pipsmash-gold);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 160, 76, 0.2);
}

/* Keyframe Animations */
@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes flicker {
    0% { opacity: 0; }
    50% { opacity: 0; }
    51% { opacity: 1; }
    55% { opacity: 0; }
    60% { opacity: 1; }
    70% { opacity: 0.5; }
    80% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}