body {
    margin: 0;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;

}

header {
    display: flex;
    flex-direction: column;
    background-image: url(img/spa.jpg);
    background-size: cover;
    background-position: center;
    padding-bottom: 20%;
}

nav {
    display: flex;
    flex-direction: row;
}

nav a {
    text-decoration: none;
    color: white;
    margin: 0 20px;
    font-weight: bold;
    font-family: "Hurricane", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
}

.updiv {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 50px;
    background-color: #ffffff8d;
}

header .top h1 {
    color: white;
    font-size: 48px;
    margin: 0;
    font-family: "Ballet", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 50px;
}

.downdiv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 2%;
    margin: 0 20px;
    width: 80%;
    box-sizing: border-box;
}

article {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.druha article {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff8d;
    margin: 0 20px;
}

.prvni article {
    background-color: #ffffff8d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 50px;
}

.review-section {
    background: #e8f2f0;
    padding: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    position: relative;
}

.review-section img {
    max-width: 100%;
    width: 30%;
}

.review-card {
    position: absolute;
    left: 150px;
    bottom: 100px;
    background: rgba(255, 255, 255, 0.482);
    padding: 25px;
    width: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a {
    text-decoration: none;
    color: black;
    margin: 5px 10px;
}

footer li {
    list-style: none;
    display: flex;
    margin: 10px;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}

article ul {
    align-self: flex-start;
}


@media (max-width: 800px) {
    .top {
        flex-direction: column;
        align-items: center;
    }

    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav a {
        margin: 10px 0;
    }

    header .top h1 {
        font-size: 32px;
    }

    section {
        flex-direction: column;
    }

    .downdiv {
        flex-direction: column;
        align-items: center;
    }

    .druha article {
        margin: 20px 0;
        padding: 40px 80px;
    }

    .review-section {
        flex-direction: column;
        gap: 40px;
    }

    .review-section img {
        width: 100%;
        margin-left: 0;
    }

    .review-card {
        position: static;
        width: 100%;
        margin-top: -40px;
        background-color: rgba(0, 0, 0, 0);
        box-shadow: none;
    }
}
