/*CSS style reset*/
*, *::before, *::after{
    box-sizing: border-box; 
}

*{
    margin: 0; 
    padding: 0; 
}

ul[role='list'], ol[role='list']{
    list-style: none; 
}

html:focus-within{
    scroll-behavior: smooth; 
}

a:not([class]){
    text-decoration-skip-ink: auto; 
}

img, picture, svg, video, canvas{
    max-width: 100%;
    height: auto; 
    vertical-align: middle; 
    font-style: italic; 
    background-repeat: no-repeat; 
    background-size: cover;
}

input, button, textarea, select{
    font: inherit; 
}

@media (prefers-reduced-motion: reduce){
    html:focus-within {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition: none;
    }
}

body, html{
    height: auto; 
    scroll-behavior: smooth; 
}

/*CSS*/

:root {
    --black: #131412;
    --orange: #E4572E;
    --grey: #4F6D7A;
    font-size: 16px;
    /*Includes scrollbar in width*/
    /*scrollbar-gutter: stable both-edges;*/
    
}

body {
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    max-height: 100%;
    max-width: 100%;

}

h1 {
    color: var(--orange);
    font-family: "Jost", sans-serif;
    font-size: 16rem;
    font-size: max(16rem);
    font-optical-sizing: auto;
    text-transform: uppercase;
}

h2 {
    color: var(--orange);
    font-family: "Jost", sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
}

h3 {
    color: var(--orange);
    /*font-family: 'jsMath-cmbx10', sans-serif;*/
    font-family: "Jost", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    word-wrap: break-word;
}

h4 {
    color: var(--orange);
    font-family: "Jost", sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
}

h5 {
    color: var(--orange);
    font-family: "Jost", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    padding-right: 0.5rem;
}

p {
    color: var(--orange);
    font-family: "Noto Sans", sans-serif;
    font-size: 1rem;
}

a {
    color: #fbfbfb;;
    text-decoration: none;
}

a:visited {
    color: #fbfbfb;
    text-decoration: none;
}


a.ulkoinen {
    text-decoration: underline;
    text-decoration-color: var(--orange);
}

.main-container, .perus {
    background-color: var(--black);
    border: 1px solid var(--orange);
    border-bottom: 4px solid var(--orange);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    height: 90%;
    max-height: 1064px;
    min-height: 250px;
    width: 1200px;
    min-width: 280px;
}

.main-container {
    height: calc(100vh - 8rem);
    margin: 4rem 0;
    overflow-y: auto;
}

.perus {
    margin: 4rem;
    min-height: calc(100vh - 8rem);
}

.main-title {
    border-radius: 32px 32px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 50%;
    width: 100%;
    overflow: hidden;
    padding: 0 20%;
}

.main-title img {
    width: 100%;
    max-width: 40rem;
}

.main-options {
    border-radius: 0 0 32px 32px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    height: 50%;
    width: 100%;
    padding-top: 7.5%;
}

.option {
    border-radius: 32px;
    height: 15rem;
    width: 25%;
    max-width: 16rem;
    padding: 1rem;
    /*transition: 0.1s background-color;*/
}

.option a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;

}

.option:hover {
    background-color: rgba(228, 87, 46, 0.25);
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(80% - 1rem);
    width: 100%;
}

.icon img {
    height: 100%;
    width: 100%;
}

.icon img:last-of-type {
    display: none;
}

.option#saannot img{
    padding-top: 3rem;
    padding-bottom: 0.75rem;
}

.option#tapahtumat img{
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.option#info img{
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
}

.icon-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20%;
    width: 100%;
}

.icon-title h3 {
    width: 100%;
    text-align: center;
}

.icon + .icon-title {
    margin-top: 1rem;
}

.navbar {
    border-bottom: solid 1px var(--orange);
    border-radius: 32px 32px 0 0;
    display: flex;
    align-items: center;
    height: 4rem;
    width: 100%;
    justify-content: flex-end;
}

.navbar h3 {
    font-weight: 400;
}

.menu {
    background: url('pics/menu.svg') no-repeat;
    background-size: cover;
    border: none;
    cursor: pointer;
    margin-right: 2rem;
    width: 6rem;
}

.menu:hover {
    background-color: var(--black);
}

.nav, .menu {
    height: 100%;
    padding: 1rem;
}

.nav a, .menu a {
    height: 100%;
}

.nav a {
    display: flex;
    align-items: center;
}

.nav#riski {
    border-radius: 32px 0 0 0;
    flex-grow: 2;
    padding-left: 2rem;
}

.nav#last-nav {
    border-radius: 0 32px 0 0;
    padding-right: 2rem;
}

.nav:hover {
    background-color: rgba(228, 87, 46, 0.25);
}

.menu {
    display:none;
}

.scroll-container {
    margin: 2rem;
    overflow-y: auto;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--orange);   
}

::-webkit-scrollbar-track {
    background-color: var(--black);   
}

.mid-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 2rem 3rem 2rem;
}

.mid-title>* {
    padding: 0 1.5rem;
}

.mid-title img {
    height: 8rem;
}

.mid-title .peili {
    transform: scaleX(-1);
}

.mid-title#saantosivu img {
    height: 6rem;
    padding-top: 1rem;
}

.mid-title#tapahtumasivu img {
    padding-top: 0.75rem;
}

.mid-title#infotietosivu img {
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
}

.perus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

button:hover {
    background-color: rgba(228, 87, 46, 0.25);
}

.drop {
    background-color: var(--black);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 100%;
    z-index: 1;
}

.drop-item {
    height: 20rem;
    width: 100%;
}

.drop-item:hover {
    background-color: rgba(228, 87, 46, 0.25);
}

.drop-item a {
    border-bottom: 1px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.drop-item>a>h3 {
    color: var(--orange) !important;
    font-size: 4rem;
    font-weight: 600;
}

.show {
    display: flex;
}

.small-title, .text-container {
    width: 60%;
    max-width: 1200px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.tiny-title {
    width: 60%;
    max-width: 1200px;
    margin-bottom: 0.25rem;
}

.tiny-title > p {
    color: #fbfbfb;
}

.text-container {
    padding-bottom: 2rem;
}

#info > .small-title {
    text-align: center;
}

.tapahtumat-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.event-link, .upcoming, .event-old {
    height: 26rem;
    width: 25%;
    min-width: 35%;
    margin: 0 1rem 2rem 1rem;
}

.upcoming {
    background-color: var(--orange);
    border: solid 1px var(--orange);
    border-bottom: solid 4px var(--orange);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upcoming h2 {
    font-size: 2.5rem;
    color: var(--black);
    text-align: center;
}

.upcoming p {
    color: var(--black);
    margin-top: 0.75rem;
    text-align: center;
}

.event-card, .event-card-old {
    border: solid 1px var(--orange);
    border-bottom: solid 4px var(--orange);
    border-radius: 32px;
    height: 100%;
    width: 100%;
}

.event-card:hover .event-pic, 
.event-card:hover .event-description {
    background-color: rgba(228, 87, 46, 0.25);
}

.event-card.old:hover .event-pic, 
.event-card.old:hover .event-description {
    background-color: transparent;
}



.event-pic {
    border-bottom: solid 1px var(--orange);
    border-radius: 32px 32px 0 0;
    display: inline-block;
    height: 50%;
    width: 100%;
    overflow: hidden;
}

.event-pic img {
    height: auto;
    width: 100%;
    object-fit: contain;
}

.event-description {
    border-radius: 0 0 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;   
    height: 50%;
    width: 100%;
    padding: 1.5rem 0.5rem;
}

.event-description h4 {
    width: 100%;
    text-align: center;
}

.event-description p {
    margin-top: 1rem;
    text-align: center;
}

.event-card-old, .event-card-old * {
    border-color: var(--grey) !important;
    color: var(--grey) !important;
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
}

.event-card-old {
    opacity: 0.8;
}

.tapahtuma-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.murupolku {
    display: flex;
    flex-direction: row;
    margin: 2rem 4rem 0 4rem ;
}

.murupolku h5:hover {
    text-decoration: underline;
}
.murupolku h5#ei:hover {
    text-decoration: none;
}

.event-card-2 {
    border-radius: 32px;
    width: 60%;
    max-width: 1200px;
}

.event-card-2  h2 {
    text-align: center;
}

.event-description-2 {
    display: flex;
    align-items: left;
    flex-direction: column;
    padding-bottom: 1.25rem;
}

.event-description-2 > h3 {
    padding: 3rem 0.5rem 0 0.5rem;
}

.event-description-2 > p {
    padding: 0.5rem;
}

.event-topbar-2 {
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.event-pic-2 {
    background-color: black;
    border: solid 1px var(--orange);
    border-radius: 32px;
    display: inline-block;
    height: auto;
    width: 100%;
    overflow: hidden;
}

.event-pic-2 img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.event-title-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 1rem 0;
}

.event-title-2 h2 {
    font-size: 7rem;
}

.event-title-2 h3 {
    font-size: 3rem;
}

.not-found {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/*Media*/

@media (max-width: 1300px) {

    :root {
        font-size: 14px;
    }

    p {
        font-size: 1.25rem;
    }

    .main-container, .perus {
        width: 900px;
        margin-top: 4rem;
        margin-right: 2rem;
        margin-bottom: 4rem;
        margin-left: 2rem;
    }

    .option {
        margin: 0 0.5rem;
        width: 20%;
    }

    .event-link {
        width: calc(35% - 2rem);
    }

    .event-title-2 h2 {
        font-size: 6rem;
    }

}

@media (max-width: 1100px) {

    .main-container, .perus {
        display: flex;
        justify-content: flex-start;
        height: calc(100vh - 3rem);
        min-height: calc(100% - 3rem);
        max-height: none;
        width: calc(100% - 3rem);
        margin-top: 1.5rem;
        margin-right: 1.5rem;
        margin-bottom: 1.5rem;
        margin-left: 1.5rem;
    }

    h5 {
        font-size: 4rem;
    }

    .tapahtuma-content {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .tapahtuma-content h2 {
        font-size: 6rem;
    }

    .main-container {
        overflow-y: auto;
    }

    .perus {
        height: 90%;
    }

    .main-container h3 {
        color: var(--black);
        font-family: "Jost", sans-serif;
        font-weight: bold;
    }

    .main-title {
        height: 30%;
        padding: 1rem;
    }

    .main-title img {
        height: 100%;
        width: auto;
        max-width: 100%;
        padding: 0 2rem;
    }

    .main-options {
        align-content: flex-start;
        height: 70%;
        width: 100%;
        padding: 2rem;
    }

    .option {
        /*border: 1px solid var(--orange);*/
        background-color: var(--orange);
        height: calc(25% - 1rem);
        width: calc(100% - 1rem);
        max-width: none;
        min-height: 6rem;
        margin: 0.5rem;
        padding: 1rem 2rem;
    }

    .option a {
        flex-direction: row;
    }

    .icon {
        height: 100%;
        width: 20%;
    }

    .icon + .icon-title {
        margin-top: 0;
    }

    .icon-title {
        height: auto;
        width: 80%;
    }

    .icon-title h3 {
        font-size: 3rem;
        text-align: left;
        padding-left: 2rem;
    }

    .option#uutiset img {
        padding: 0.25rem;
    }

    .option#saannot img{
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .option#tapahtumat img{
        padding: 0.25rem;
    }
    
    .option#info img{
        padding: 1rem;
    }

    .icon img {
        display: none;
    }

    .icon img:last-of-type {
        display: flex;
    }

    .mid-title {
        flex-direction: column;
        margin-top: 5rem;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .mid-title img:last-of-type {
        display: none;
    }

    .mid-title img {
        height: 20rem;
        margin-bottom: 1rem;
    }

    .mid-title#saantosivu img {
        height: 15rem;
    }


    h2 {
        display: inline-block;
        font-size: 7rem;
        word-wrap: break-word;
        width: 100%;
        text-align: center;
        padding: 0 0 !important;
    }

    .perus h3 {
        font-size: 4.5rem;
    }

    .perus p {
        font-size: 3rem;
        margin-bottom: 4rem;
    }

    .small-title h3 {
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .small-title#news h3 {
        margin-top: 0;
    }

    .tiny-title {
        margin-top: 4rem;
    }

    .tiny-title > p {
        margin-bottom: 1rem;
    }

    .small-title, .text-container, .event-card-2, .tiny-title {
        width: 80%;
        max-width: none;
    }

    .nav {
        display: none;
    }

    .nav#riski {
        display: flex;
        flex-grow: 1;
    }

    .nav#riski:hover {
        background-color: var(--black);
    }

    .nav#riski h3 {
        color: var(--orange) !important;
    }

    .menu {
        display: flex;
    }

    .menu img {
       height: 100%; 
    }

    .small-title, .text-container, .event-card-2, .tiny-title {
        width: 90%;
    }

    .event-link, .upcoming {
        height: auto;
        width: calc(100% - 1.5rem);
        margin: 2rem 0.75rem 4rem 0.75rem;
    }

    .event-pic {
        height: 30rem;
    }



    .event-pic-2 img {
        width: 100%;
        height: auto;
    }

    .event-description {
        height: auto;
    }

    .event-link h4 {
        font-size: 4rem;
    }

    .upcoming h2 {
        font-size: 4rem;
    }

    .navbar {
        height: 10rem;
    }

    .murupolku h5 {
        font-size: 3rem;
    }

    .event-title-2 h2 {
        font-size: 10rem;
        overflow-wrap: anywhere;
    }

}

@media (max-width: 700px) {

    .main-options {
        height: 70%;
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }

    .main-title {
        height: 30%;
    }

    .option {
        height: calc(25% - 1rem);
        margin: 0.5rem;
    }

    .icon {
        width: 30%;
    }

    .icon-title {
        width: 70%;
    }

    .icon-title h3 {
        font-size: 2.5rem;
    }

    .event-card-2 {
        width: 100%;
    }

    h2 {
        font-size: 4.5rem;
    }


    .mid-title img {
        height: 16rem;
    }

    .muruhide {
        display: none;
    }
}

@media (max-width: 550px) {

    .main-options {
        height: calc(100% - 12rem);
    }

    .main-title {
        height: 12rem;
    }

}

@media (max-width: 500px) {

    .event-link, .upcoming {
        height: 28rem;
        width: 100%;
        margin: 0 0 1rem 0;
    }

    .upcoming {
        height: auto;
    }

    .event-link h4 {
        font-size: 1.5rem;
    }

}


@media (min-width: 1100px) and (max-height: 790px) {

    .main-container {
        height: calc(100vh - 3rem);
        margin: 1.5rem 0;
    }

    .main-options {
        height: 50%;
        padding-top: 2rem;
    }

    .main-title {
        height: calc(50% - 2rem);
        margin-top: 2rem;
    }

    .main-title img{
        height: 100%;
        width: auto;
    }

}

@media (min-width: 1100px) and (max-height: 640px) {

   .option {
        height: 100%;
   }

}

@media (min-width: 1100px) and (max-height: 500px) {

    .main-options {
        height: 60%;
        padding-top: 1rem;
    }

    .main-title {
        height: calc(40% - 1rem);
        margin-top: 1rem;
    }

    .option#saannot img {
        padding-top: 2rem;
   }
 
 }

 @media (min-width: 1100px) and (max-height: 350px) {

   .option#saannot img {
        padding-top: 1rem;
    }

    .option#tapahtumat img {
        padding-top: 0.5rem;
    }

    .option#info img {
        padding-top: 0.25rem;
   }
 
 }
