@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300&display=swap');
html {
    width: 100%;
}

html, body {
    background-color: #173e79;
    color: white;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    animation-name: backgroundColorPalette;
    animation-duration: 25s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes backgroundColorPalette {
    0% {
      background: rgb(44, 97, 197);
    }
    25% {
      background: rgb(51, 104, 202);
    }
    50% {
      background: rgb(73, 93, 185);
    }
    75% {
      background: rgb(55, 123, 201);
    }
    100% {
      background: rgb(44, 97, 197);
    }
  }
body::-webkit-scrollbar {
    width: 1em;
  }
   
  body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  }
   
  body::-webkit-scrollbar-thumb {
    background-color: rgb(0, 132, 255);
    outline: 2px solid #4d4d4d;
    border-radius: 2px;
  } 

a {
    color: #fff;
    transition: color 0.4s;
} a:hover {
    color: rgb(115, 115, 255);
}

ul, li {
    list-style-type: none;
}

main {
    text-align: center;
    width: 100%;
} main div {
    width: 100%;
    margin: 0 auto;
}

article {
    margin-left: auto;
    margin-right: auto;
    width: 1200px;
    max-width: 90%;
    padding: 15px;
    background-color: #174ea1;
    box-shadow: 8px 8px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.flex_container {
    width: 100%;
    height: auto;
    display: flex;
    overflow: visible;
}.flex_container div {
    margin: 15px;
    width: fit-content;
    height: auto;
    overflow: visible;
}

#gif_hammerit {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 15px;
}

#gif_sieni {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 15px;
}

#gif_klippi1 {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 15px;
    border-radius: 15px;
}


.copyright {
    font-size: 18px;
    margin: 0;
    display: block;
}

.asidetext {
    max-width: 600px;
    width: 100%;
    height: auto;
    float: left;
    margin: 15px;
    border-radius: 25px;
    margin: 0 auto;
    margin-right: 15px;
    box-shadow: 8px 8px rgba(0, 0, 0, 0.2);
}

.asidetext_right {
    max-width: 600px;
    width: 100%;
    height: auto;
    float: right;
    margin: 15px;
    border-radius: 25px;
    margin: 0 auto;
    margin-left: 15px;
    box-shadow: 8px 8px rgba(0, 0, 0, 0.2);
}

.wrapper {
    margin-bottom: auto;
}

.textbox {
    font-size: 20px;
}



.expand_less {
    visibility: hidden;
    display: none;
    text-align: center;
}

.expand_more {
    display: contents;
    visibility: visible;
    text-align: center;
}

button {
    background: none;
    border: none;
}


header {
    margin: 30px;
    text-align: center;
    border-bottom: 2px solid;
    text-decoration: none;
}
header a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
} header a:hover {
    color: rgb(115, 115, 255);
}
header ul li {
    list-style: none;
    display: flex;
    padding: 0px 20px;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 30px;
    margin-top: 30px;
}
#headerLinks{
    display: none;
    font-size: 1.2em;
}
header img {
    width: 7rem;
    transition: width 0.5s;
} header img:hover {
    width: 7.5rem;
} 

.esittely {
    text-align: center;
    padding-top: 85px;
    padding-bottom: 85px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 100px;
    margin-bottom: 100px;
    height: auto;
    font-size: 22px;
    background-repeat: no-repeat;
    max-width: 90%;
    width: 1500px;
    overflow: hidden;
    background-color: rgb(14, 41, 92);
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
}

footer {
    position: relative;
    bottom: 0;
    border-top: 2px solid;
    height: auto;
    margin: 30px;
    color: #fff;
    text-align: center;
}
footer a {
    color: #fff;
}
footer p {
    margin-top: 2px;
}
footer a {
    text-decoration: none;
    transition: color 0.3s;
} footer a:hover {
    color: rgb(115, 115, 255);
}

.social_media {
    margin: 0 auto;
    justify-content: space-between;
    display: flex;
    overflow: hidden;
}

.discord {
    font-size: 100%;
    width: 160px;
    transition: font-size 0.4s;
} .discord:hover {
    font-size: 110%;
}

.twitch_list {
    font-size: 100%;
    width: 160px;
    transition: font-size 0.4s;
} .twitch_list:hover {
    font-size: 110%;
}

.mobiilivaroitus {
    opacity: 0;
    display: none;
}


.twitter {
    font-size: 100%;
    width: 160px;
    transition: font-size 0.4s;
} .twitter:hover {
    font-size: 110%;
}

ion-icon {
    font-size: 2.5em;
    margin-top: 20px;
    justify-content: space-between;
}

@media only screen and (max-width: 600px) { 
    footer {
        position: relative;
    }

    #headerlinks {
        display: block;
    }

    .social_media {
        display: inline-block;
    }

    .submission {
        width: 250px;
        padding: 20px;
    }
    .runs {
        width: 320px;
        height: 560px;
    }

    .start__text {
        width: 85%;
        padding-bottom: 100px;
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: medium;

    }
    .material-symbols-outlined {
        color: white;
        transition: font-size 0.3s;
      font-variation-settings:
      'FILL' 1,
      'wght' 700,
      'GRAD' 0,
      'opsz' 48
    }
    .material-symbols-outlined:hover {
       cursor: pointer;
       font-size: 30px;
    }

    .sm__kisat {
        max-width: 70%;
        text-align: center;
        margin: 0 auto;
    }
    .sm__kisat p {
        font-size: larger;
    }

    .sm__kisat h2 {
        font-size: 25px;
        padding-top: 5px;
        overflow: hidden;
    }
    

    .start__links {
        display: none;
    }

    .aikataulu__ul{
        display: none;
    } 
    .voittaja {
        display: none;
    }
    .havio {
        display: none;
    }

    

    .sm22aikataulut {
        width: 90%;
        height: auto;
    } 

    .finnrunsTwitch {
        opacity: 0;
    }

    .mobiilivaroitus {
        opacity: 1;
        display: block;
    }

    .twitchikkuna {
        display: none;
    }

    .seuraavaotteluTimer{
        width: auto;
    } 

    .timesTime {
        font-size: 30px;
        padding-right: 35px;
        display: flex;
    }

    .ottelutieto {
        font-size: 23px;
        white-space: wrap;
    }

    article {
        width: fit-content;
        padding: 5px;
    }

    .next {
        width: fit-content;
        padding: 0;

    }

    .esittely {
        width: fit-content;
    }

    .asidetext {
        width: 100%;
        margin: 0 auto;
    }
    .asidetext_right {
        margin: 0 auto;
    }
    
    .flex_container {
        display: block;
        margin: 0 auto;
        float: left;
        float: right;
    } .flex_container div {
        margin: 0 auto;
    }

    #gif_klippi1 {
        width: 80%;
        margin: 0; 
        align-items: center;
    }

    #gif_sieni {
        width: 300px;
    }

    #gif_hammerit {
        width: 300px;
    }

}

@media only screen and (min-width: 600px) { 
    .social_media {
        width: 40rem;
    }

    .sm__kisat {
        height: 600px;
        background-attachment: fixed;
        font-size: 23px;
    }

    .start__text {
        padding-top: 150px;
        padding-bottom: 150px;
        background-attachment: fixed;
        background-size: 90%;
        background-position: 0px -240px;
    }

    .material-symbols-outlined {
        color: white;
        transition: font-size 0.3s;
      font-variation-settings:
      'FILL' 1,
      'wght' 700,
      'GRAD' 0,
      'opsz' 48
    }
    .material-symbols-outlined:hover {
       cursor: pointer;
       font-size: 30px;
    }

    .sm__kisat p {
        padding-top: 10px;
    } 
    .sm__kisat h2 {
        padding-top: 30px;
    }

    .sm22aikataulut ul li {
        display: flex;
    }

    
}

@media only screen and (max-height: 450px) {
    
    .start__links {
        display: none;
    } 
    .header__links li {
        font-size: 15px;
        display: inline;
        padding: 5px;
    }

    .runs {
        width: 85%;
    }

    .twitchikkuna {
        display: none;
    }
    
}

@media only screen and (max-width: 1600px) {
    .twitchikkuna {
        display: none;
    }
}


.submission {
    display: flex;
    color: #fff;
    border: .5px solid;
    max-width: 550px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgb(0, 78, 196);
}
.submission a {
    color: #fff;
    transition: color 0.4s;
} .submission a:hover {
    color: rgb(115, 115, 255);
}

.runs li {
    margin-bottom: 15px;

}

#opas {
    width: 85%;
    background-color: rgb(14, 41, 92);
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
    padding: 50px;
}

.opas {
    width: 85%;
    background-color: rgb(14, 41, 92);
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
    padding: 50px;
}

.lista ul {
    background-color: #0c3e88;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
}



.sm__kisat {
    text-align: center;
    padding-top: 0px;
    padding-bottom: 30px;
    font-weight: 500;
    display: inline-block;
    background-size: 100%;
    max-width: 100%;
    height: auto;
    width: 95%;
    margin-top: 70px;
    background-image: url("./Images/smstudio.png");
    background-size: 100%;
    background-repeat: repeat;
    background-position: 0px 0px;
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
}
.sm__kisat p {
    width: 80%;
    margin: 0 auto;
}

.turnaus_kaavio {
    width: 90%;
    height: 600px;
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
}
.challonge {
    margin-top: 100px;
}

#finnrunsTwitch {
    width: 854px;
    height: 480px;
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
    background-color: rgb(14, 41, 92);
}

.voittaja {
    color: rgb(0, 255, 0);
}
.havio {
    color: red;
}

.sm22aikataulut {
    margin-top: 80px;
    margin-bottom: 80px;    
    border: 2px solid;
    max-width: 1800px;
    font-size: large;
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
} .sm22aikataulut ul li {
    display: inline-block;
    color: #fff;
    justify-content: space-between;
    border: .5px solid;
    margin: 0 auto;
    max-width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 50px;
    margin-right: 50px;
    padding: 20px;
    align-items: center;
} 

.seuraava {
    background-color: rgb(91, 167, 81);
}

.pelattu {
    background-color: rgb(0, 78, 196);
}

.eipelattu {
    background-color: rgb(199, 60, 60);
}

.eitiedossa {
    background-color: rgb(129, 129, 129);
}

.teksti {
    text-shadow: 3px 3px rgba(0, 0, 0, 0.3);
}

.linkit {
    margin-top: 105px;
    font-size: 20px;
}

.voittaja {
    font-weight: 600;
} .havio {
    font-weight: 700;
}

.twitchikkuna {
    width: 1600px;
    height: 800px;
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

.seuraavaotteluTimer p {
    margin: 20px;
}
.seuraavaotteluTimer li {
    display: inline-block;
    width: auto;
}

.seuraavaotteluTimer {
    text-align: center;
    border: 2px solid;
    max-width: max-content;
    background-color: rgb(14, 41, 92);
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
    padding: 35px;
}

#otteluAlkaa {
    display: none;
    font-size: 25px;
}

.timesTime {
    font-size: 30px;
}

.ottelutieto {
    font-size: 25px;
}

.twitchlista {
    background-color: rgb(14, 41, 92);
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid;
    max-width: 90%;
    text-align: center;
    padding-right: 35px;
} .twitchlista li {
    border: 2px solid;
    max-width: 100%;
    padding: 15px;
    margin-right: 15px;
    margin-top: 15px;
    display: inline-block;
    background-color: rgb(0, 78, 196);
    font-size: 25px;
} 

.lista a{
    font-size: 1.5rem;
}
.lista {
    margin-bottom: 80px;
}


.sitename {
    margin-bottom: 85px;
    font-size: 25px;
}

.text_container {
    width: 90%;
    font-size: 1.2rem;
    margin-bottom: 5%;
    display: inline-block;
}

.punainen {
    color: red;
}


.next {
    border: 2px solid;
    width: fit-content;
    padding: 30px;
    margin-bottom: 20px;
    background-color:#0c3e88;
    margin-top: 80px;
}
.next a {
    color: cornflowerblue;
}

video {
    width: 90%;
    border-radius: 8px;
    
}

.text_container img {
    width: 90%;
    border-radius: 8px;
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
}


.youtubevideo {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.youtube {
    position: absolute;
    margin: 0 auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 90%;
    height: 90%;
}

#otteluEiTiedossa {
    display: none;
}

.pisteet li {
    border: 2px solid;
    margin-right: 30px;
    margin-bottom: 15px;
    background-color: rgb(0, 78, 196);
}

.pisteet {
    border: 2px solid;
    max-width: 950px;
    margin-top: 50px;
    background-color: rgb(14, 41, 92);
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
    top: 150px;
    height:auto;
    overflow: hidden;
}

.runs {
    border: 2px solid;
    max-width: 950px;
    margin-top: 50px;
    background-color: rgb(14, 41, 92);
    box-shadow: 15px 15px rgba(0, 0, 0, 0.3);
    top: 150px;
    max-height: 805px;
    overflow: hidden;
}

.salanen4 {
    font-size: 5px;
}

.btn {
    background-color: rgb(0, 109, 218);
    border: none;
    color: white;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 15px;
    border-radius: 5px;
    transition: 0.3s;
    width: 10rem;
    margin: 0 auto;
    margin-top: 15px;
}

.btn:hover {
    background-color: royalblue;
}

.text_container img {
    width: 95%;
}

.speedrunkuva {
    width: 15rem;
}

.text_container_img img {
    width: 10rem;
    box-shadow: none;
    margin-left: 15px;
    margin-right: 15px;
}

.btn a {
    width: auto;
}

.empty {
    display: none;
}
