@font-face {
  font-family: 'KuenstlerGrotesk';
  src: url('/kirjasin/KuenstlerGrotesk.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
body {
    background-color: #f3e9d1;
    font-family: "Finlandica", serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    font-size: 16px;
}
.laatikko {
    position: relative;
    width: clamp(300px, 100%, 1200px);
    margin: 0 auto;
}
.taustakuva {
    width: 100%;
    height: auto;
    display: block;
}
.linkeng,
.linkfin {
    position: absolute;
    padding: 1em;
    border-radius: 8px;
}
.linkeng ul,
.linkfin ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.linkeng li,
.linkfin li {
    margin: 1vh 0;
}

.lahde p {
    font-weight: 600;
    font-size: clamp(0.6rem, 1.1vw, 14px);
    text-decoration: none;
    color: #241102;
}

.linkeng a,
.linkfin a {
    text-decoration: none;
    color: #003366;
    font-weight: 600;
    font-size: clamp(0.6rem, 1.2vw, 17px);
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
}
.lahde p:hover,
.linkeng a:hover,
.linkfin a:hover {
    color: maroon;
}
.linkeng a::before,
.linkfin a::before {
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.2em;
    background: url("../muut/sormi.webp") no-repeat center center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.linkeng a:hover::before,
.linkfin a:hover::before {
    opacity: 1;
}
.linkeng {
    top: 57%;
    left: 40%;
    transform: translate(-50%, -50%);
}
.linkfin {
    top: 57%;
    left: 70%;
    transform: translate(-50%, -50%);
}
.lahde {
    font-size: small;
    position: absolute;
    top: 77%;
    left: 15%;
    transform: translate(-50%, -50%);
}
.otsikko {
    display: none;
}

.alaotsikko {
    text-align: center;
    font-weight: 300;
    font-size: small;
    
}
@media (max-width: 750px) {
    body {
        background: #e8c592;
    }
    .taustakuva {
        width: 100%;
        height: auto;
        display: block;
    }
    .laatikko {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .linkeng,
    .linkfin {
        background-color: rgba(243, 224, 192, 0.8);
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        width: 80%;
        max-width: 400px;
        padding: 0.5rem;
        border-radius: 20px;
        border: 1px solid;
    }
    .otsikko {
        display: block;
        font-size: 1.1rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    .linkeng a,
    .linkfin a {
        font-size: 14px;
        color: #003366;
    }
    .lahde {
        display: none;
    }
    .alaotsikko,
    .laatikko img {
        display: none;
    }
}
