/* style.css */

/* Font Face Declarations */
@font-face {
    font-family: 'Cinzel';
    src: url('fonts/CinzelDecorative-Regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cinzel';
    src: url('fonts/CinzelDecorative-Bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Global Styles */
body {
    background-color: #0b1d0b; /* Dark forest green */
    color: #e0e0e0; /* Light text for contrast */
    font-family: 'Cinzel', serif;
    margin: 0;
    padding: 0;
    background-image: url('images/valheim-bg.jpg'); /* Optional subtle background pattern */
    background-size: cover;
    background-attachment: fixed;
    text-shadow: 2px 2px 5px #000;
}

/* Header Styles */
h1 {
    background-image: url('valheim-header.jpg'); /* Add a Valheim-themed header image */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 60px 0;
    margin: 0;
    font-size: 50px;
    text-shadow: 2px 2px 5px #000;
}

/* Current Players Styles */
#current-players-display {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
}

/* Online Status Styles */
#online-status-display {
    text-align: center;
    font-size: 24px;
    margin: 10px 0;
	animation: text-glow 10s linear infinite;
}

#online-status {
    font-weight: bold;
}

/* Chart Container */
#chart-container {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
}

/* Canvas Styles */
#playerChart {
    width: 100% !important;
    height: auto !important;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 15px 0;
    color: #aaa;
    background-color: #0b1d0b77;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Link Styles */
a {
    color: #76b852; /* Valheim green */
    text-decoration: none;
}

.count-changed {
    animation: bounce 1s ease-in-out;
	transform-origin: bottom;
	color: #76b852;
	font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
        padding: 40px 0;
    }

    #current-players-display {
        font-size: 20px;
    }

    #chart-container {
        width: 95%;
    }
}

@keyframes text-glow {
    0% {
        text-shadow: 2px 2px 5px #000;
    }
    9% {
        text-shadow: 2px 2px 5px #000;
    }
    10% {
        text-shadow: 10px 2px 5px #000;
    }
    11% {
        text-shadow: -5px 2px 5px #000;
    }
    12% {
        text-shadow: 8px 2px 5px #000;
    }
    13% {
        text-shadow: -1px 2px 5px #000;
    }
    14% {
        text-shadow: 4px 2px 5px #000;
    }
    15% {
        text-shadow: 0px 2px 5px #000;
    }
    16% {
        text-shadow: 2px 2px 5px #000;
    }
    40% {
        text-shadow: 2px 2px 5px #000;
    }
    45% {
        text-shadow: 2px 2px 5px #000;
    }
    50% {
        text-shadow: 2px 2px 5px #000;
    }
    55% {
        text-shadow: 2px 2px 5px #000;
    }
    60% {
        text-shadow: 2px 2px 5px #000;
    }
    65% {
        text-shadow: 2px 2px 5px #000;
    }
    70% {
        text-shadow: 2px 2px 5px #000;
    }
    75% {
        text-shadow: 2px 2px 5px #000;
    }
    80% {
        text-shadow: 2px 2px 5px #000;
    }
    85% {
        text-shadow: 2px 2px 5px #000;
    }
    90% {
        text-shadow: 2px 2px 5px #000;
    }
    95% {
        text-shadow: 2px 2px 5px #000;
    }
    100% {
        text-shadow: 2px 2px 5px #000;
    }
}

@keyframes bounce {
	0%{ transform: translate(0,0px); }
	20%{ transform: translate(0,-30px); }
	40%{ transform: translate(0,10px) ; }
	60%{ transform: translate(0,-20px); }
	80%{ transform: translate(0,5px); }
	100%{ transform: translate(0,0px); }
}