* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 
    'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #024950;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    background: #024950;
    display: flex;
    justify-content: center;
    align-items: center;     
    padding-bottom: 4rem;
    flex: 1;
}


nav {
    height: 80px;
    background: #003135;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem calc((100vw - 1300px) / 2);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    font-weight: bold;
    font-style: italic;
    padding: 0 2rem;
}

.nav-items {
    display: flex;
    align-items: center;
  }

/* Košík */
.cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 1rem;
  }
  
  .cart-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cart-link i {
    font-size: 1.4rem;
  }
  
  .cart-count {
    position: absolute;
    top: -4px;
    right: 3px;
    background-color: red;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 60%;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    line-height: 1;
  }

.nav-items a {
    margin: 0 1rem;
    color: #fff;
    text-decoration: none;
}

.nav-items a:hover {
    color: #9b9b9b;
}

.toggle_btn {
    display: none;
    padding: 0 2rem;
}

.dropdown_menu {
    display: none;
    position: absolute;
    top: 80px;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(34, 34, 34, 0.0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 1s ease, visibility 1s ease, transform 0.3s linear;
    border-radius: 10px;
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu li {
    padding: 10px 20px;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    list-style-type: none;
}

.dropdown_menu.open {
    height: 240px;
}

.container, .container2 {
    padding: 20px;
    flex: 0 0 auto; 
}

.box, .box2 {
    background: #003135;
    color: white;
    text-align: center;
    box-shadow: -1px 0 5px 5px rgba(0, 0, 0, 0.0999);
    border-radius: 50px;
    padding: 30px;
    max-width: 700px;
    width: 80%;
    margin: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%; 
}

.box img{
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: scale-down; 
    
}

.box2 img {
    width: 30%;
    height: auto;
    max-height: 250px;
}


.text, 
.text2{
    padding: 20px;   
}

.text h3,
.text2 h3 {
    font-size: 1.2rem;
}

.text p,
.text2 p {
    font-size: 1rem;
    margin: 10px 0;
}

.box button,
.box2 button {
    background: #00818d;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    padding: 10px 20px;
}

.box button:hover,
.box2 button:hover {
    color: rgb(0, 0, 0);
}

footer {
    height: 100px;
    background: #003135;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
}

footer p {
    color: #fff;
}

footer .credit {
    margin: 1rem;
    font-size: 1rem;
}

.credit a {
    color: purple;
}


@media (max-width: 1024px) {
    .container,
    .container2 {
        flex-direction: column;
        align-items: center;
    }

    .box,
    .box2 {
        width: 90%;
        max-width: 600px;
    }
}


@media (max-width: 768px) {
    .nav-items {
        display: none;
    }

    .toggle_btn {
        display: flex;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
        z-index: 100;
    }

    .dropdown_menu {
        display: none;
        flex-direction: column;
        align-items: center;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        left: 0;
        padding: 1rem 0;
    }

    .dropdown_menu.open {
        display: flex;
    }

    .dropdown_menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    main {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .container,
    .container2 {
        max-width: 100%;
        padding: 0 1rem;
    }

    .container2 {
        margin-bottom: 4vh;
    }

    .box,
    .box2 {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .box img,
    .box2 img {
        width: 100%;
        max-height: 180px;
    }

    .text h3,
    .text2 h3 {
        font-size: 1rem;
    }

    .text p,
    .text2 p {
        font-size: 0.9rem;
    }

    .box button,
    .box2 button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}


@media (max-width: 480px) {
    main {
        flex-direction: column;
        padding: 1rem;
    }

    .box,
    .box2 {
        border-radius: 30px;
        padding: 20px;
    }

    .box img,
    .box2 img {
        max-height: 150px;
    }

    .text h3,
    .text2 h3 {
        font-size: 0.9rem;
    }

    .text p,
    .text2 p {
        font-size: 0.85rem;
    }

    .box button,
    .box2 button {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}
