
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&family=Press+Start+2P&family=Sixtyfour&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');


body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
}
body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000 0%, #0a2901 60%, #00012e 80%);
    z-index: -2;
    transform-origin: center;
    transform: scale(1.5); 
    animation: bgColSpin 6s linear infinite;
}


body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("media/WhatIsDjmc.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 30px rgba(158, 185, 149, 0.7));
    opacity: 0.85;
    z-index: -1;
    animation: BGDANCE 6s ease-in-out infinite;
}


@keyframes bgColSpin {
    0% { transform: rotate(-6deg) scale(1.5); }
    50% { transform: rotate(6deg) scale(1.5);}
    100% { transform: rotate(-6deg) scale(1.5); }
}




@keyframes BGDANCE {
    0% {
        transform: translate(0%, 0%) scale(.6) rotate(0deg);
    }
    25%{
        transform: translate(0%, -5%) scale(.55) rotate(15deg);
    }
    50% {
        transform: translate(-5%, -5%) scale(.65) rotate(0deg);
    }
    75%{
        transform: translate(0%, -5%) scale(.55) rotate(-15deg);
    }
    100% {
        transform: translate( 0%, 0%) scale(.6) rotate(0deg);
    }
}


@keyframes Rotate {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(12deg); }
  100% { transform: rotate(0deg); }
}


.sliders {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 90%;
    max-width: 500px;
    margin: 0 auto 40px auto;
    filter: drop-shadow(0 0 10px rgba(233, 225, 222, 0.7));
    

}

.slider-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-color: rgb(99, 1, 1);
    height: 250px;
    padding-bottom: 20px;
    border-radius: 10px;
    min-width: 120px;
    box-shadow: 10px 10px 2px blue;
    filter: drop-shadow(0 0 10px rgba(163, 52, 8, 0.7));
}
.slider-block input[type="range"] {
    transform: rotate(-90deg);
    width: 120px;
    filter: drop-shadow(0 0 20px rgba(46, 224, 1, 0.7));
}


label {
    color: white;
    font-size: 20px;
    font-family: "Sixtyfour", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "BLED" 0,
        "SCAN" 0;

    padding-top: 100px;
    text-shadow: 0px 0px 20px rgb(244, 250, 168);
    color: rgb(45, 158, 17);
}

.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 saraketta */
    grid-auto-rows: 100px;
    gap: 30px;
    width: 80%;
    max-width: 500px;
    justify-items: center;
    align-items: center;
    margin: 40px auto;
    
}

button {
    width: 100%;
    height: 100%;
    font-size: clamp(14px, 2vw, 18px);
    border-radius: 12px;
    border: 5px groove rgb(126, 36, 3); 
    background: linear-gradient(135deg, #ff9b00 0%, #da3a00 50%, #a12902 100%);
    color: #fff;
    font-family: "Sixtyfour", serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    filter: drop-shadow(0 0 10px rgba(163, 52, 8, 0.7));
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.7);
}

button.active {
    background: linear-gradient(45deg, #fc7314, #8c00ff);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
    color: #000;
        animation-name: flash;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
     animation-timing-function: none;
}




@keyframes flash {
    0% {
        background: #B33000;
        background: linear-gradient(321deg,rgba(179, 48, 0, 1) 0%,
        rgba(252, 115, 20, 1) 50%, rgba(255, 232, 23, 1) 100%);
        box-shadow: 0 0 20px cyan;
        color: white;
        text-shadow: 10px 0px 0px black;
    }

    25% {
        border: 5px groove rgb(0, 179, 9);
        text-shadow: -10px 10px 0px rgb(255, 0, 0);
    }

    50% {
        background: #FC7314;
        background: linear-gradient(96deg,rgba(252, 115, 20, 1) 0%, 
        rgba(252, 28, 20, 1) 50%, rgba(140, 0, 255, 1) 100%); 
        text-shadow: -10px -10px 0px rgb(255, 255, 255);
        color: black;

    }


    75% {
        background: #ffbf91;
        background: linear-gradient(221deg,rgba(255, 191, 145, 1) 0%,
        rgba(145, 5, 0, 1) 50%, rgba(255, 242, 0, 1) 100%);
        

    }


    100% {
        background: #B33000;
        background: linear-gradient(321deg,rgba(179, 48, 0, 1) 0%,
        rgba(252, 115, 20, 1) 50%, rgba(255, 232, 23, 1) 100%);
        color: white;
        text-shadow: 10px 0px 0px black;

    }
}


.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px;
    filter: drop-shadow(0 0 10px rgba(163, 52, 8, 0.7));
}


.title {
    background: linear-gradient(2deg, rgb(58, 20, 2) 50%, rgb(89, 99, 33) 100%);
    border-radius: 10px;
    width: 400px;
    min-height: 100px;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center; 
}

h1 {
    color: white;
    font-size: 38px;
    font-family: "Sixtyfour", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "BLED" 0,
        "SCAN" 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    animation-name: LG;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;


    padding: none;
    border-radius: 10px;

}

@keyframes LG {
    0% {
        text-shadow: 12px 12px rgb(20, 20, 20);   
        transform: rotate(0turn);
      
    }
    25% {
        text-shadow: -12px 12px rgb(20, 20, 20);   
        transform: rotate(0.01turn); 
    }
    50% {
        text-shadow: -12px -12px rgb(20, 20, 20); 
        transform: rotate(0turn);  
    }
    75% {
        text-shadow: 12px -12px rgb(20, 20, 20); 
        transform: rotate(-0.01turn);   
    }
    100% {
        text-shadow: 12px 12px rgb(20, 20, 20); 
        transform: rotate(0turn);     
    }

}


#Reset {
    width: clamp(100px, 20vw, 150px);
    height: clamp(100px, 20vw, 150px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(14px, 2vw, 18px);
    background: linear-gradient(200deg,rgb(0, 255, 85) 0%, rgb(218, 0, 164) 40%, rgb(68, 17, 0) 100%);
    border: 5px groove rgb(58, 2, 2); 
    box-shadow: 5px 5px 0px rgb(26, 25, 25);
    cursor: pointer;
    margin-top: 50px;
    margin-left: 20px;
    margin-right: 20px;
    filter: drop-shadow(0 0 10px rgba(163, 52, 8, 0.7));
}

#Reset:active {
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 20px;
    font-family: "Sixtyfour", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "BLED" 0,
        "SCAN" 0;
    
    width: 150px;
    height: 150px;
    color: rgb(0, 0, 0);
    background: #cc0d0d;
    background: linear-gradient(200deg,rgb(255, 251, 0) 0%, 
    rgb(218, 0, 47) 40%, rgb(68, 17, 0) 100%);
    border: 0px groove rgb(59, 2, 2); 

    border-radius: 50%;

    box-shadow: 0px 0px 40px rgb(226, 1, 226);

    animation-name: RES;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes RES {
    0% {
        border-radius: 50% 90% 50% 25%;
        box-shadow: 5px 5px 40px rgb(26, 25, 25);
    }
    25% {
       border-radius: 90% 50% 25% 50%;
       box-shadow: 15px -15px 15px rgb(146, 67, 2);

    }
    50% {
        border-radius: 50% 25% 50% 100%;
        box-shadow: -30px -30px 10px rgb(226, 1, 226)
       
    }
    75%{
        border-radius: 25% 50% 90% 20%;
        box-shadow: -15px 15px 15px rgb(115, 255, 0);
        
    }
    100%{
        border-radius: 50% 90% 50% 25%;
        box-shadow: 5px 5px 40px rgb(26, 25, 25);
       
    }
}

@media (max-width: 480px) {
    .buttons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* mobiilille automaattinen pakkaus */
        grid-auto-rows: 80px;
        gap: 15px;
    }

    .slider-block {
        height: 200px;
    }

    button {
        font-size: 14px;
    }

    #Reset {
        width: 100px;
        height: 100px;
        font-size: 14px;
    }
}