@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans", sans-serif;
    color: #eaeaea;
}

.card {
    scroll-snap-align: start;
    width: 100%;
    height: 100vh;
    background-color: #4c4c4c;
    background-blend-mode: multiply;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3em;
}

.article {
    display: flex;
    flex-direction: column;
    padding: 2em 10em 2em 15em;
    gap: 1em;
}

.article h2 {
    font-size: 2em;
}

.article h3 {
    font-size: 1.2em;
}

.article__text {
    display: flex;
    flex-direction: column;
    row-gap: 1em;
}

.article__text p {
    font-size: 1em;
    line-height: 2;
    text-align: justify;
}

#uvod {
    background-image: url("images/uvod.webp");
}

#manhattan {
    background-image: url("images/manhattan.webp");
}

#trinity {
    background-image: url("images/trinity.webp");
}

#hiroshima {
    background-image: url("images/hiroshima.webp");
}

#nagasaki {
    background-image: url("images/nagasaki.webp");
}

#kapitulace {
    background-image: url("images/kapitulace.webp");
}

.nav {
    position: fixed;
    top: 50%;
    left: 3em;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.nav__button {
    width: 20px;
    height: 20px;
    border: 3px #fff solid;
    border-radius: 50%;
    transition: all ease-in 100ms;
}

.nav__button.active {
    background: #fff;
}

.nav__button:hover {
    background-color: #fff;
}

@media (max-width: 769px) {
    .title {
        font-size: 1.9em;
    }

    .article {
        padding: 2em 2em 2em 5em;
    }

    .article__text p {
        font-size: 0.9em;
    }

    .nav {
        left: 1.5em;
    }

    .nav__button {
        width: 15px;
        height: 15px;
    }

    .nav__button:hover {
        background-color: unset;
    }

    .nav__button.active {
        background: #fff;
    }
}

@media (max-width: 481px) {
    .title {
        font-size: 1.7em;
    }

    .article {
        padding: 2em 2em 2em 4em;
    }

    .article__text p {
        font-size: 0.8em;
    }
}