.flex-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    z-index: 100;
    left: 0;
    width: 100%;
    padding: 0;
    position: absolute;
}

.flex-container li{
    text-decoration: none;
    list-style-type: none;
    padding: 20px 15px;
}

.flex-container li a{
    color: #ffffff;
    font-size: 1.5em;
    text-transform: uppercase;
    font-weight: 300;
}



.section-intro{
    background-image: url(https://yaninatrekhleb.github.io/restaurant-website/img/petr-sevcovic-qE1jxYXiwOA-unsplash.jpg);
    height: 820px;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-intro header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-grow: 4;
    flex-shrink: 1;
    flex-basis: 0%;
}

.section-intro h1{
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 4em;
}

.booking{
    display: block;
    padding: 5px 10px;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.book-wrap{
    flex: 1;
}

a.booking{
    text-decoration: none;
}

a.booking:hover{
    background-color: #ffffff;
    color: #95999e;
    text-decoration: none;
}


.section-about p,.section-about h3{
    text-align: center;
    width: 60%;
    margin: auto;
    text-transform: uppercase;
}



.carousel {
    position: relative;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.64);
    margin-top: 26px;
}

.carousel-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-open:checked + .carousel-item {
    position: static;
    opacity: 100;
}

.carousel-item {
    position: absolute;
    opacity: 0;
    -webkit-transition: opacity 0.6s ease-out;
    transition: opacity 0.6s ease-out;
}

.carousel-item img {
    display: block;
    height: auto;
    width: 100%;
    height: 100%;
    
}

.carousel-control {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 40px;
    height: 40px;
    line-height: 35px;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(0, -50%);
    cursor: pointer;
    -ms-transform: translate(0, -50%);
    /* transform: translate3d(-50%,-40%,70px); */
    transform: translate(0, -50%);
    text-align: center;
    width: 40px;
    z-index: 10;
}

.carousel-control.prev {
    left: 2%;
}

.carousel-control.next {
    right: 2%;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #aaaaaa;
}

#carousel-1:checked ~ .control-1,
#carousel-2:checked ~ .control-2,
#carousel-3:checked ~ .control-3 {
    display: block;
}

.carousel-indicators {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 2%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.carousel-indicators li {
    display: inline-block;
    margin: 0 5px;
}

.carousel-bullet {
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 35px;
}

.carousel-bullet:hover {
    color: #aaaaaa;
}

/* contact section */
.container{
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.row-flex{
    display: flex;
    flex-direction: row;
}

.flex-column-form{
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 30px 20px;
}
form{
    display: block;
    margin-top: 0em;
}
.form-group{
    margin-bottom: 1rem;
}
div{
    display: block;
}
.form-control{
    display: block;
    width: 100%;
    height: calc(1.5em+0.75rem+2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
button, input{
    overflow: visible;
}
.opening-time{
    flex: 1;
    margin: 30px 20px;
    font-size: 1.2em;
}
.contact-address{
    flex: 1;
    margin: 30px 20px;
    font-size: 1.2em;
}
span{
    display: block;
}

@media screen and (max-width: 576px){
.section-intro {
    height: 300px;
}
.section-about{
    padding: 30px;
}
.row-flex{
    display: flex;
    flex-direction: column;
}
}


*,::after,::before{
    box-sizing: border-box;
}