html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

body {
    background-image: url(tausta.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;        
}

.sisalto {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    text-shadow: 7px 7px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

h1.vuosi {
    font-size: 2em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.2;
    background: #ffffff;
    padding: 20px 40px;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.nimi {
    font-size: 2.5em;
    font-weight: 300;
    margin-top: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

header .otsikko {
    position: fixed;
    top: 0;
    left: -22px;
    width: 100%;
    background: linear-gradient(45deg, rgba(28, 28, 28, 0.8), rgba(122, 72, 52, 0.39));
    color: white;
    padding: 30px 30px;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    transform: translateY(-100%);
    animation: slideIn 0.6s forwards;
}

header .otsikko::before,
header .otsikko::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: #ffffff;
    left: 0;
}

header .otsikko::before { top: 0; }
header .otsikko::after { bottom: 0; }

header .otsikko h2 {
    margin: 0;
    font-size: 2em;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.linkit {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 800px;
}

.linkit a {
    font-size: 1.2em;
    text-decoration: none;
    color: #000;
    padding: 20px 20px;
    border: 2px solid #000;
    border-radius: 25px;
    text-align: center;
    background-color: #fff;
    transition: 0.3s;
    width: 100%;
    margin: 10px;
    
}

.linkit a:hover {
    transform: scale(1.1);
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, #ad6f57, #664e3b);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 0;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
}

.aika {
    position: fixed;
    bottom: 40px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.9em;
}