/* Variables */
:root {
    --dashed: 1px dashed #dcdcdc9e;
    --container-margin: 1.5% auto;
    --bg-main: #C71585;
    --bg-container: #232323d5;
    --bg-sidebar: #171717c5;
    --text-main: #ababab;
    --text-light: #dcdcdc;
}
#darkreader-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #C71585;
    color: white;
    padding: 10px;
    text-align: center;
    font-family: sans-serif;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
#darkreader-warning button {
    background: white;
    color: #C71585;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
body {
    background-color: #121212;
    color: #000000;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
}
/*Reset browsers shenanigans*/
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding:0;
    line-height: 0.9; /*This absolute pice of fucking dog shit puts some space between lines*/
}
h1{
    font-size: 800%;
}
h2{
    font-size: 250%;
}
h3{
    font-size: 110%;
    color:#B0E0E6;
    padding: 10px;
}
h4{
    font-weight: 600;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 110%;
    border: var(--dashed);
    border-radius: 7px 7px 0 0;
    color:#FFFACD;
    padding: 6px;
}

/*Global crap*/
html{
    font-family: "Noto Sans JP", sans-serif;
}
.fullscreen-image{
    position: fixed;
    z-index: -99;
    top:0;
    left:0;
    inset: 0;
    width: 100%;
    height: 100vh;
}
.fullscreen-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.elcoomo-container{
    overflow: hidden; 
    position: relative;
    max-width: 1100px;
    margin: var(--container-margin);
    width:100%;
}
#main-container {
    width: 90%;
    margin: var(--container-margin); /*This SHIT means margin in top/bottom 8% and center left/right*/
    text-align: center;
    animation: bounceIn 1s;
}
header{
    border:var(--dashed);
    border-radius: 15px 15px 0 0;
    background:url("C_Flag_Anim_Dith.webp");
    background-size: 110%;
    background-position: center calc(50% - 50px);
    color: var(--text-light);
}
header h1{
    padding-top:30px;
    text-shadow:
    2px 2px 0 black,
    -2px 2px 0 black,
    2px -2px 0 black,
    -2px -2px 0 black;
    color:var(--bg-main);
}
header h2{
    color:#B0E0E6;
    padding-top:15px;
    padding-bottom: 5px;
    text-shadow:
    1px 1px 0 black,
    -1px 1px 0 black,
    1px -1px 0 black,
    -1px -1px 0 black;
}
header p{
    font-size: 80%;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #00000080
}
.spacer {
    height: 1rem;
}
.row {
    display: flex;/* makes children sit side by side */
    max-width: 100%;
    flex-direction: row;
    gap: 0;/*spacing between columns */
}
.coomtainer {
    min-width: 0;
    flex: 1 1 0;
    display: flex;             /* flex inside each container */
    flex-direction: column;    /* stack h4, p, etc. vertically */              /* each container takes equal width */
    padding: 0;/*Some size around the text inside*/
    border:var(--dashed);
    background-color: var(--bg-container);
    color: var(--text-main);
}
.coomtainer p {
    font-weight: 320;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 1.1px; /* Increase the letter spacing */
    margin-bottom: 0.5em;
}
.coomtainer:first-child {
    padding: 2%;
    flex: 3 1 0;  /* a shorthand property for the flex-grow, flex-shrink, and flex-basis */
    border-style: none none dashed dashed;
}
.coomtainer:last-child {
    padding: 2%;
    flex: 1 1 0;  /* normal width */
    background-color: var(--bg-sidebar);
    border-style: none dashed dashed none;
}
/* Footer */
.footer {
    padding: 20px;
    text-align: inherit;
    color:#B0E0E6;
}
/* Figures */
figure {
    margin: 0;
    /*No width or height set, so it's taking coomtainers w&h*/
}
figure img {
    display: block;
    object-fit:cover;
    width: 100%; /*reative to parent's -figures-width*/
    height: 100%;/*reative to parent's -figures-height*/
    border-radius:15px;
}
/*Some kool floating images, I rip off the idea from eggdev.*/
.newscoo{
    position: absolute;
    margin-left: 16em;
    margin-top: -2em;
}
.cDoll{
    opacity: 0;
    position: absolute;
    bottom:0;
    right: 65%;
    width:35%;
    z-index: 99;
    animation: bounceIn 1s ease forwards;/*Keeps the last animation keyframe*/
    animation-delay: 0.2s;
}
article {
    padding: 5px;
}
mark {
    background-color:var(--bg-main);
    color: black;
    font-weight: 350;
}
#visitorCounter {
    background-color:var(--bg-main);
    color: black;
}
/*SCROLLBAR STYLING*/
/*For superior Librewolf */
.scroll-box {
    height: 159px;
    overflow-x: hidden;
    overflow-y: scroll;
    text-align: center;
}
/* For the rest of coomiun based trash*/
    .scroll-box::-webkit-scrollbar {
    width: 2px; /* use 8px or more for visibility */
}
.scroll-box::-webkit-scrollbar-track {
    background: #191c1b;
}
.scroll-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.scroll-box::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}


/*Music player stuff. I rip the whole thing from Ghostingpen but the script is from sayantanm19*/
.box {           
    border: 1px var(--text-main);
    border-style: dashed dashed dashed dashed;
    padding: 5px;
}
/* Music player */
.track-info {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    color:#B0E0E6;
}
.scrolling-text {
    display: inline-block;
    /*animation: scrollText 6s linear infinite; */
}
#musicplayer {
    gap: 10px;
}
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 1px;
    background: var(--text-main);
}
input[type=range]::-webkit-slider-thumb {
    height: 10px;
    width: 10px;
    border-radius: 1px;
    background: gray;
    -webkit-appearance: none;
    margin-top: -4px;
}
input[type=range]::-moz-range-thumb {
    height: 10px;
    width: 10px;
    border-radius: 1px;
    background: gray;
    border: none;
}
input[type=range]::-moz-range-track {
    height: 1px;
    background: var(--text-main);
}
input[type=range]::-moz-range-progress {
    height: 1px;
    background: var(--text-main);
}
.songtitle, .track-info, .now-playing {
    font-size: 100%;
    padding: 1px;
}
.controls {
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}
.buttons {
    display: flex;
    justify-content: center;
    font-size: 5px !important;
    width: 100%;
}
.buttons div {
    width: 33.3%;
    color:#B0E0E6;
}
.playpause-track, .prev-track, .next-track {
    color: var(--text-main);
    font-size: 20px !important;
}
.volume-icon {
    font-size: 10px !important;
}
.seeking, .volume {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.track-name {
    font-size:85%;
    font-weight: bold;
}
/* Scroll animation for the music box*/
@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/*Awesome boucing intro to the site*/
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}
.glitch {
    color:#C71585;
}
/*Glitch effect I rip off from a m8, only runs on hover. Btw If you are reading this sorry but I feel no shame in admiting it, if god knows, the world can know it too.*/
.glitch:hover {
    animation: glitch 0.2s steps(2, end) infinite;}

@keyframes glitch {
0% {
    text-shadow: 0 0 0 red, 0 0 0 cyan;
}
50% {
    text-shadow: -8px 0 red, 4px 0 cyan;
}
100% {
    text-shadow: 0 0 0 red, 0 0 0 cyan;
}
}

/*RESPONSIVE DESIGN BULLSHIT*/
/* Tablets and below*/
@media screen and (max-width: 761px){
    .elcoomo-container{
    position: relative;
    max-width: 1100px;
    width:100%;
}
#main-container {
    margin: 0 auto; /*This SHIT means margin in top/bottom 8% and center left/right*/
    width: 95%;
}
.row {
    display: flex;          /* makes children sit side by side */
    flex-direction: column;    /* horizontal layout */
    gap: 20px;/*spacing between columns */

}
header{
    margin-bottom: 20px;
    background-size: 170%;
    background-position: center calc(50% - 50px);
}
header h1{
    font-size:500%;
}
header h2{
    font-size:200%;
}
header p{
    font-size:80%;
}
h3{
    font-size: 90%;
}
.coomtainer p {
    font-size: 80%;
    flex: 100%;
    width: 100%;
    line-height: 160%;
    letter-spacing: 1px; /* Increase the letter spacing */
}
.coomtainer:first-child {
    min-width: 0;
    flex: 2 1 0;
    padding: 0 5%;
    border-style: dashed dashed dashed dashed;
}
.coomtainer:last-child {
    flex: 100%;
    padding: 5% 5%;
    border-style: dashed dashed dashed dashed;
}
.cDoll{
    position: absolute;
    bottom:0;
    right: 50%;
    width:55%;
    z-index: 99;
}
.newscoo{
    display: none;
    margin-left: 0%;
    margin-top: -30%;
    width:12%;
}
.now-playing {
    font-size: 80%;
}
.track-info{
    font-size:80%;
}
}