:root {
    /* Main colors for the page */
    --bg-color: #188367;
    --bg-secondary-color: #0c4c3c;
    --text-color: rgb(241, 241, 241);
}
/* new font */
/* some of the font sizes needed to be changed elsewhere */
@font-face {
    font-family: SuperLobster;
    src: url(Super\ Lobster.ttf) format('truetype');
}

html {
    height: 100%;
}
/* base settings for the page */
body {
    margin: 0;
    background-color: var(--bg-color);
    width: 100%;
    color: var(--text-color);
    font-family: SuperLobster;
    height: auto;
    letter-spacing: 0.5px;
    font-size: 1.35em;
}

/* Left and right bars for visual flare */
#left {
    background-image: url("./Images/nettisivuvasen.png");
    max-width: 625px;
    width: 30%;
    background-size: contain;
    /* Making the background stick on the correct side */
    background-position: left 0;
    background-repeat: repeat-y;
}

#right {
    background-image: url("./Images/nettisivuoikee.png");
    background-repeat: repeat-y;
    background-size: contain;
    width: 30%;
    /* Making the background stick on the correct side */
    background-position: right 0;

    /* Making the element stay connected to the right side of the page */
    right: 0;
}

.header {
    background-color: var(--bg-secondary-color);
    height: 65px;
    /* Without this the header goes under the slide shows */
    z-index: 1;
    /* Making the header stay on top of the viewport */
    position: sticky;
    top: 0;

    /* display: flex; */
    /* flex-direction: row; */
    /* Separating header from other elements with a shadow */
    -webkit-box-shadow: 0px 3px 3px 0px rgba(0,0,0,1);
    -moz-box-shadow: 0px 3px 3px 0px rgba(0,0,0,1);
    box-shadow: 0px 3px 3px 0px rgba(0,0,0,1);
}
.header-content {
    background-color: var(--bg-secondary-color);

    width: 100%;
    height: 100%;
}

.header * {
    transition: all 500ms;
}

/* Logo */
.header > img {
    height: 100%;
    left: 50%;
    transform: translate(-50%);
    float: right;
    position: absolute;
    top: 0;
    /* Shadow to separate this logo from the background */
    filter: drop-shadow(3px 4px 1px #000000);

}

.header-content > nav {
    height: 100%;
    width: fit-content;
    float: left;
    /* Centers the text elements */
    display: flex;
}
.header-content > nav > a {
    display: block;
    color: white;
    text-align: center;
    padding: 16.25px 16px;
    text-decoration: none;
    float: left;
    height: 50%;
    /* margin: auto; */

}

.header-content a:hover {
    background-color: #00000093;
}

.header-content > .lang-selection {
    float: right;
    width: 200px;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.header-content > .lang-selection > img {
    height: auto;
}

.header-content > .lang-selection > img:hover {
    filter: brightness(55%);
}

/* Burger menu buttons */
#burger-button {
    position: absolute;
    right: 16px;
    top: 16px;
    display: none;
    cursor: pointer;
}

/* Individual burger menu button bars */
#burger-button div {
    width: 35px;
    height: 5px;
    background-color: #d6d6d6;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 20px;
}

/* Toggle animation for the burger menu */
.toggle :nth-child(1) {
    transform: translate(0, 11px) rotate(-45deg);
}
.toggle :nth-child(2) {
    opacity: 0;
}
.toggle :nth-child(3) {
transform: translate(0, -11px) rotate(45deg);
}


/* Contains everything except footer and header */
.container {
    display: flex;
    flex-direction: row;
}

/* Contains the main content of this page */
.main-container {
    width: 40%;
    display: flex;
    align-items: center;
    grid-area: content;
    flex-direction: column;
    flex-grow: 1;
}

a.anchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}
/* Content boxes */
.article {
    padding: 20px;
    background-color: var(--bg-secondary-color);
    margin: 20px;
    border-radius: 15px;
    height: fit-content;
    width: 80%;
    background-image: url(./Images/puuta.png);
    /* -webkit-box-shadow: 3px 3px 0px 3px rgba(9,51,40,1);
    -moz-box-shadow: 3px 3px 0px 3px rgba(9,51,40,1);
    box-shadow: 3px 3px 0px 3px rgba(9,51,40,1); */
    /* Making the box look more 3d */
    -webkit-box-shadow: 3px 3px 0px 3px rgba(56,40,35,1);
    -moz-box-shadow: 3px 3px 0px 3px rgba(56,40,35,1);
    box-shadow: 3px 3px 0px 3px rgba(56,40,35,1);
}

.article iframe {
    width: 100%;
}

.article > .title {
    width: 100%;
    text-align: center;
    font-weight: normal !important;

}

.article > h1 {
    font-size: 4.5rem;
    margin-top: 15px;
    margin-bottom: 15px;
}

.article > h2 {
    font-size: 3rem;
    margin: 10px 0 10px 0;
}

.team-member-card-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;

}

.team-member-card-container > div {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.253);
    padding: 15px;
    margin: 20px;
    border-radius: 15px;
    flex-wrap: wrap;
}

.team-member-card-container > div > h2 {
    margin-bottom: 10px;
    margin-top: 10px;
}

.team-member-card-container > div > div {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.team-member-card {
    text-align: center;
    flex-shrink: 1;
    background-color: rgba(0, 0, 0, 0.342);
    padding: 20px;
    border-radius: 15px;
}

.team-member-card > img{
    width: 100px;
    height: auto;
}

.download-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary-color);
    padding: 20px;
    border-radius: 5px;
}

.download-section a{
    display: inline;
    color: black;
    text-decoration: none;
    background-color: white;
    padding: 15px;
    border-radius: 15px;
    height: fit-content;
    margin: 20px;
    align-self: flex-end;
    transition: all 0.25s;

    -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
}

.download-section a:hover {
    background-color: #535353;
}

.download-section img{
    image-rendering: pixelated;
    height: auto;
    flex-grow: 1;
    -webkit-box-shadow: 6px 6px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 6px 6px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 6px 6px 5px 0px rgba(0,0,0,0.75);
}


/* Image carousel */
/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

  /* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

  /* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: #717171;
}
  /* On hover, add a grey background color */
.prev:hover, .next:hover {
    background-color: #f1f1f1;
    color: black;
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 25px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 22px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}
/* Settings for the mobile view */
@media only screen and (max-width: 720px) {
    .main-container {
        width: 100%;
        align-items: center;
    }

    #left {
        display: none;
    }
    #right {
        display: none;
    }
    .header {
        display: block;
    }
    .header-content {
        display: none;
        height: auto;
        align-items: center;
        flex-direction: column;
        /* Moves the menu under the header */
        position: relative;
        top: 65px
    }

    .header-content > nav {
        flex-direction: column;
    }
    .header-content > img {
        display: none;
    }
    .header-content > a {
        position: absolute;
        right: 0;
    }
    .header-content > .lang-selection {
        float: none;
        height: 150px;
        width: auto;
    }
    .header-content > .lang-selection > img{
        float: none;
        height: 100%;
        width: auto;
    }

    .active {
        display: flex;
    }

    #burger-button {
        display: inline-block;
    }


}