html
{
    scroll-behavior: smooth;
}

*, *::before, *::after 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
:root 
{
    --admin-background: #EDEEF1;
    --background: #F8F8F8;
    --blue-background: #304C7B;
    --blue-background-hover: #5472a1;
    --red_background: #C72138;
    --red_background_hover: #af5662;
}

body
{
    font-family: 'PT Serif', serif;
}

#welcome
{   
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.welcome_content
{
    flex: 1; 
    padding: 20px;
    text-align: center;
}

.video_background
{
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay
{
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: rgba(0, 0, 0, 0.5);
}

#items
{
    padding: 10px;
    min-height: 100vh;
    background-color: var(--background);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-items 
{   
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  
}

#about_us
{
    min-height: 100vh;
    background-color: var(--background);
    padding: 10px;
    display: flex;
    justify-content: center;

}

.us_content
{
    margin-top: 100px;
    font-weight: bold;
}

.about_us_text
{   
    max-width: 1350px;
}

.about_us_text p
{
    margin-left: 10px;
    margin-right: 10px;
    padding: 3px;
} 

.float_right
{
    float: right;
    margin: 20px;
}

.float_left
{
    float: left;
    margin: 20px;
}

.about_us_image
{
    max-width: 350px; 
    height: auto;
}

#contacts
{
    min-height: 100vh;
    background-color: var(--background);
    padding: 120px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacts_content
{
    display: flex;
    justify-content: space-around;
    max-width: 1350px;
    width: 100%;
}

.contacts_map
{   
    flex-basis: 48%;
}

.contacts_map iframe
{
    width: 100%;
    max-width: 100%;
    height:75vh;
    margin-top: 10px;
}

.contacts_info
{   
    margin-top: 10px;
    flex-basis: 48%;
}

header
{
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background:var(--background);
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo
{
    background-image: url("/static/logo-no-background.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 50px;
    width: 180px;
}

.display_block
{
    display: block;
}

img
{
    overflow: clip;
    max-width: 100%;
    height: auto;
}

.list
{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 0;
    list-style: none;
    min-width: 50%;
}

.header_contacts
{
    margin: 12px 12px 4px 12px;
    text-align: center;
    font-weight: bold;
    padding: 0px 20px;
    white-space: nowrap;
}

#header_schedule
{
    margin:0; 
    padding: 0;
}

.button
{
    margin: 12px 30px 12px 30px;
    text-align: center;
    color: white;
    padding: 8px 20px;
    font-weight: bold;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.red_background
{
    background-color: var(--red_background);
}

.blue_background
{
    background-color: var(--blue-background);
}

.blue_background:hover
{
    background-color: var(--blue-background-hover);
}

.red_background:hover
{
    background-color: var(--red_background_hover);
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    box-sizing: border-box;
}

.item 
{
    border: 5px solid var(--blue-background);
    flex-basis: calc(30%);
    height: 300px;
    min-width: 220px;
    max-width: 250px;
    margin: 25px;
    position: relative;
    box-sizing: border-box;
    background-color: var(--blue-background);
}

.item:hover 
{   
    border: 5px solid var(--blue-background-hover);
}

.item:hover .item_text_block
{
    background-color: var(--blue-background-hover);
}

.item_text_block
{   
    border-top: 3px solid var(--item-background-color);
    width: 100%;
    height: 90px;
    background-color: var(--blue-background);
    padding: 5px;
    color: white;
}

.item_name
{
    width: 100%;
    font-weight: bold;
}

.item_image_block
{
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.item_price
{
    position: absolute;
    bottom: 0;
    font-weight: normal;
}

.swiper
{
    max-width: 700px;
    height: 400px;
    margin: 10px;
}

.swiper [class^="swiper-button-"]
{
   color: var(--red_background);
}

.swiper img{
    width: 90%;
    display: block;
    margin: 0 auto;
}

.swiper-pagination-bullet-active 
{
     background-color: var(--red_background) !important;
}

.swiper-pagination .swiper-pagination-bullet {
  opacity: 1;
  background-color: white;
  border: 1px solid var(--red_background);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-actions 
{
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10; /* Increase the z-index value */
}

.image-preview
{
    padding: 20px;
}

.item_description
{
    max-width: 1200px;
    margin:auto;
    background-color: var(--background);
    padding: 20px;
    min-height: 100vh;
}

.editor-background
{
    background-color: var(--admin-background);
    padding-bottom: 10px;
    min-height: calc(100vh - 62px);
}

#editor-div
{   
    margin: 0 5vw;
}

.input
{
    margin: 10px 5px;
}

.flex
{
    display: flex;
    justify-content:space-between;
}

.bold
{
    font-weight: bold;
}

.select
{
    height: 40px
}

#editor
{
    max-width: 1400px;
}

.login-form
{
    margin: auto auto;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.form_container
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.red_text
{
    color: var(--red_background);
}

.padding_bottom
{
    padding-bottom: 10px;
}

@media (max-width: 1460px)
{
    .button
    {
        margin: 12px 15px 12px 15px;
    }
}

@media (max-width: 1200px)
{
    .button
    {
        margin: 12px 5px 12px 5px;
    }
}

@media (max-width: 1050px)
{
    #header_schedule
    {
        display: none;
    }
}

@media (max-width: 770px) 
{   
    .item {
        flex-basis: calc(50%);
    }
    header
    {
        flex-direction: column;
        height: auto;
    }
    #phone_email
    {
        display: none;
    }
    .button
    {
        margin: 2px 5px 10px 5px;
    }
    .contacts_content
    {
        flex-direction: column;
    }
    .text-with-image {
        columns: 1;
    }
    .item_description iframe
    {
        width: 100%;
        height: 295px;
    }
    .swiper
    {
        width: 500px;
        height: 350px;
    }
}

@media (max-width: 580px)
{
    .about_us_text p
    {
        clear: both;
    }

    .float_left, .float_right
    {
        float: none;
        margin: 20px auto;
        display: flex;
        justify-content: center;
    }

    .about_us_image
    {
        max-width: 300px;
    }
    .swiper
    {
        max-width: 400px;
        height: 250px;
    }
    
    .swiper [class^="swiper-button-"]
    {
       display: none;
    }
    
    .swiper img
    {
    width: 100%;
    }
}

@media (max-width: 480px)
{
    .button
    {
        margin: 2px 1px 10px 1px;
        padding: 8px;
    }
    .swiper img{
    width: 100%;
    }
    .swiper
    {
    width: 360px;
    height: 250px;
    }
    .item_description
    {
    padding: 20px 5px 20px 5px;
    }
} 