@font-face {
    font-family: "roboto regular";
    src: url(roboto/RobotoCondensed-Regular.ttf);
}
@font-face {
    font-family: "roboto bold";
    src: url(roboto/RobotoCondensed-Bold.ttf);
}
@font-face {
    font-family: "roboto italic";
    src: url(roboto/RobotoCondensed-Italic.ttf);
}

.container {
    max-width: 900px;
    margin: auto;
    font-family: "roboto regular";
    font-size: 18px;
}
main {
    background-color: #fff;
    padding: 20px;
}
body {
    background-image: url(nykykunto-kuvat/tausta.jpg);
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
}

h1, h2 {
    font-family: "roboto bold";
    font-size: 40px;
}
img {
    display: inline-block;
    position: relative;
    margin: 7px;
}
.kylpylakuvacaption {
    width: 400px;
}
.uusi-kuva {
    max-height: 400px;
    width: auto;
}
.vanha-kuva {
    max-width: 400px;
    height: auto;
}
.sixtus-kuva {
    max-width: 350px;
    height: auto;
}
.oikea {
    float: right;
    max-width: 420px;
}
figure {
    display: inline-block;
    position: relative;
    margin: 0;
}
figure img {
    vertical-align: top;
}
figcaption {
    background-color: rgba(0,0,0,0.5);
        text-align: center;
    color: white;
    width: 350px;
    position: absolute;
    left: 7px;
    bottom: 7px;
    padding: 5px;
    box-sizing: border-box;
    pointer-events: none;
}
nav {
    padding: 15px;
    background-color: #003772;
    position: sticky;
    margin: 0px;
    text-align: center;
    box-shadow: 0px 10px 20px -10px #998c80;
    display: flex;
}
nav a {
    margin: 10px;
    padding: 10px;
    color: #fff;
    text-decoration: none;
}
nav a:hover {
    background-color: #001d3b;
    padding: 10px;
    transition: background-color 0.6s ease;    
}
footer {
    padding: 10px;
    text-align: center;
    background-color: black;
    color: #fff;
}
@media (max-width: 800px) {
nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
figure, figcaption {
    max-width: 100%;
}
}
@media (max-width: 920px) {
    .oikea {
        float: none;
    }
}
@media (max-width: 325px) {
    .uusi-kuva {max-width: 100%;}
}
@media (max-width: 444px) {
    .vanha-kuva {
        max-width: 100%;
    }
}
@media (max-width: 390px) {
    .sixtus-kuva {
        max-width: 100%;
    }
}