* {
    font-family: "Lato";
    font-size: 16px;
    --body-color: rgb(240, 240, 240);
    --light-grey: rgb(150, 150, 150);
}

#lang {
    position: absolute;
    right: 50px;
}

#logo {
    height: 60px;
}

.clickable {
    cursor: pointer;
}

html, body {
    background-color: var(--body-color);
    max-width: 100%;
    overflow-x: 100%;
}

header {
    display: block;
    position: fixed;
    overflow: hidden;
    top: 0px;
    right: 0px;
    z-index: 1000;
    padding: 10px;
    height: 75px;
    background-color: white;
    width: calc(100% - 11px);
    user-select: none;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--body-color);
}

header * {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

header span {
    transform: unset;
    top: unset;
}

input[type="button"] {
    background-color: transparent;
    border-style: hidden;
    border-right-style: initial;
    width: fit-content;
    height: fit-content;
    top: 0px;
    transition-duration: 0.1s;
}

input[type="button"]:hover {
    color: rgb(100, 100, 100);
    cursor: pointer;
}

input[type="button"]:active {
    color: rgb(200, 100, 100);
}

.scrolled {
    color: rgb(255, 0, 0);
}

.scrolled:hover {
    color: rgb(200, 100, 100);
}

select {
    border-radius: 10px;
    border-style: initial;
    padding: 5px;
    background-color: var(--body-color);
}

.content {
    margin-top: 130px;
}

.box {
    margin: 10px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border-radius: 20px;
    padding: 10px;
    width: 40vw;
    min-width: 820px;
    border-width: 1px;
    border-color: var(--light-grey);
    border-style: solid;
}

.box img {
    display: block;
    margin: auto;
    max-width: 100%;
}

.imgcaption {
    color: var(--light-grey);
    text-align: center;
}

hr {
    color: var(--light-grey);
    border-style: solid;
}
.box hr {
    position: relative;
    width: calc(100% + 19px);
    left: -10px;
}

h1 {
    color: var(--light-grey);
    font-size: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));   
    grid-template-rows: auto;
    justify-items: center;
    align-content: center;
    gap: 20px;
    margin-top: 10px;
}
.grid.left {
    justify-items: left;
}

.griditem {
    width: 200px;
    height: 220px;
    transition-duration: 100ms;
    cursor: pointer;
    outline-color: var(--light-grey);
    outline-style: solid;
    outline-width: 0px;
    border-radius: 5px;
    user-select: none;
}

.griditem img {
    margin: 0px;
    width: 200px;
    height: 200px;
}
.griditem .imgcaption {
    margin: 0px;
}

.griditem:hover {
    box-shadow: -10px 10px 10px rgba(0, 0, 0, 0.5);
}

.griditem:active {
    transform: translateY(3px);
}

.griditem.selected {
    outline-width: 3px;
}

.info {
    position: relative;
    overflow: hidden;
    background-color: var(--body-color);
    width: calc(100% + 20px);
    left: -10px;
    margin-top: -10px;
    height: fit-content;
    visibility: hidden;
    max-height: 0px;
    transition: all 0.5s;
    border-top-style: solid;
    border-color: var(--light-grey);
    border-width: 2px;
}

.info * {
    position: absolute;
    top: 0px;
    width: 100%;
    transition: all 0.5s;
    opacity: 0;
    padding: 5px;
    max-height: 0px;
    user-select: none;
    visibility: hidden;
}

.info * * {
    position: unset;
    opacity: unset;
    max-height: unset;
    padding: unset;
    border-style: unset;
    visibility: unset;
    user-select: unset;
}

.info .visible {
    position: relative;
    max-height: 1000px;
    opacity: 1;
    user-select: unset;
    visibility: visible;
}
.info.visible {
    visibility: visible;
    max-height: 1000px;
}

.closeinfo {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 30px;
    height: 30px;
    display: block;
    z-index: 100;
    opacity: unset;
    border-style: unset;
}
.closeinfo a {
    visibility: visible;
	width: 24px;
	height: 24px;
	display: block;
    position: absolute;
	background: transparent url(kuvat/close.png) no-repeat;
    background-size: 24px 24px;
    z-index: 100;
}

.closeinfo:hover {
    cursor: pointer;
}

.pdf {
    display: block;
}

.pdf img {
    position: relative;
    top: 6px;
    width: 24px; 
    height: 24px; 
    margin: unset;
    margin-right: 12px;
    display: inline;
}

@media (max-width: 820px) {
    .box {
        width: 100%;
        min-width: 0px;
        margin-left: 0px;
        margin-right: 0px;
    }
    #scrollbuttons {
        display: grid;
        position: absolute;
        width: 100%;
        bottom: 0px;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));  
        grid-template-rows: auto;
        justify-content: center;
        align-content: center;
        text-align: center;
    }
    #scrollbuttons * {
        width: 33vw;
        text-align: center;
        font-size: 14px;
    }
    #scrollbuttons * * {
        width: unset;
        text-align: unset;
    }
    #logo {
        position: absolute;
        top: 20px;
    }
    #lang {
        top: 20px;
    }
}

