
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
/* Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--foreground);
}
html {
	scroll-behavior: smooth;
}
:root {
    --background: #919191;
    --nav-bg: #383f34a8;
    --foreground: #e9e9e9;
    --foreground-highlight: #ffffff;
    --logo-size: clamp(0px,calc(calc(7vw + 7vh)/2),85px);
}

@media only screen and (max-width: 600px) {
    .desktop *{
        display: none;
    }
    :root {
        --background: #919191;
        --nav-bg: #383f34a8;
        --foreground: #e9e9e9;
        --foreground-highlight: #ffffff;
        --logo-size: clamp(0px,calc(calc(7vw + 7vh)/2),85px);
    }
    #tapahtumat {
        width: 100%;
    }
    #calendar {
        width: 100%;
    }
}


@media only screen and (min-width: 600px) {
    .mobile {
        display: none;
    }
    #calendar {
        width: 50%;
    }
}


main h1 {
    font-size: clamp(25px,calc(calc(5vw + 5vh)/2),1000px);
    color: var(--foreground-highlight);
    font-family: poppins;
    font-weight: bold;
}

main h2 {
    font-size: clamp(25px,calc(calc(3vw + 3vh)/2),1000px);
    font-family: poppins;
    font-weight: bold;
}
a {
    font-size: clamp(0px,calc(calc(1.5vw + 1.5vh)/2),40px);
}
i {
    color: var(--foreground);
    font-size: clamp(0px,calc(calc(3vw + 3vh)/2),40px);
    transition: all 0.2s ease-in-out;
}

i:hover {
    color: var(--foreground-highlight);
    transform:scale(1.1);
}

/* Design */

.wrapper {
    min-height: 100vh;
    width: 100%;
    background-image: url("/static/img/bg.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Main */
main {
    width: 100%;
    margin: 50px 0px;
    display: flex;
    flex-direction: column;
}

.welcome {
    display: flex;
    align-items: center;
    padding: 20px;
}

.welcome #txt {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.welcome #txt p {
    color: rgba(219, 219, 219, 0.862);
    font-family: poppins;
    font-size: clamp(0px,calc(calc(2vw + 2vh)/2),15px);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    white-space: normal;
    margin-bottom: 30px;
    width: 65%;
}

.welcome #txt a {
    background-color: #e0832c;
    text-decoration: none;
    padding: 10px 20px;
    color: var(--foreground-highlight);
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.137);
    font-family: poppins;
}

h2 {
    color: rgb(209, 209, 209);
}


.content {
    width: 100%;
    background-color: rgb(244, 244, 244);
    min-height: 100vh;
    margin-top: 50px;
}

#info {
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#info h2 {
    color: rgb(141, 204, 64);
}


hr {
    border: 1px solid rgb(216, 216, 4);
    width: 65%;
}

.links {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.link {
    width: 50vw;
    height: 50vw;
    max-width: 200px;
    max-height: 200px;
    background-color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.315);
}

.inner-link {
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-position: center center;

}

.link-content {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.629);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.link-content a {
    text-decoration: none;
    padding: 10px 20px;
    background-color: rgb(235, 156, 10);
}

.link-content:hover {
    opacity: 1;
}

@media (max-width:801px) {
    .link-content {
        opacity: 1;
    }
    #txt p {
        color: black;
    }
}

@media (min-width:801px) {
    .links {
        width: 65%;
        gap: 45px;
        column-gap: 50px;
    }
    .link {
        width: calc(45% - 20px);
        height: 35vh;
        max-height: none;
        max-width: 450px;
    }
}

h3 {
    text-align: center;
}