@font-face {
    font-family: assistant;
    src: url("fonts/Assistant-Regular.ttf");
}
@font-face {
    font-family: assistant;
    src: url("fonts/Assistant-SemiBold.ttf");
    font-weight: 500;
}
@font-face {
    font-family: assistant;
    src: url("fonts/Assistant-Bold.ttf");
    font-weight: bold;
}
  
* {
    direction: rtl;
    font-family: assistant;
    user-select: none;
    font-size: 1.1rem;
}

html, body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    background-color: rgb(247, 249, 248);
    background-size: cover;
    overflow-x: hidden;
    color: rgb(63, 58, 58);
}

.bg-tal {
    background-color: #1b88bf;
}

.navbar {
    border-bottom: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.navbar-nav {
    padding-right: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

#logo {
    width: 8vw;
    position: absolute;
    top: 0.2rem;
    bottom: -7vh;
    right: 46vw;
    /* animation: zoomsInDown 1s ease-in; */
}

#logo:hover {
    cursor: pointer;
    opacity: 0.9;
    animation: rubberBand 1s ease-in-out;
}

#icons-div {
    width: 30vw;
    position: absolute;
    left: 2vw;
    top: 1rem;
    display: flex;
    justify-content: space-around;
}

#phone-num-span {
    color: white;
    user-select: text;
    direction: ltr;
}

#main-div {
    height: 80vh;
    width: 98.7vw;
    box-sizing: border-box;
    background: url('media/caravanimg.jpg') center center;
    background-size: 100vw 100vh;
}

#main-dark-div {
    height: 80vh;
    width: 98.7vw;
    box-sizing: border-box;
    position: relative;
    top: -80vh;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.65);
    /* box-shadow: inset 0 0 200px black; */
    /* box-shadow: 0 0 10px black; */
    text-align: center;
    color: white;
    text-shadow: 2px 2px 3px black;
}

#main-ttl {
    position: relative;
    top: 1vh;
    margin-bottom: 3vh;
    font-size: 56pt;
}

#line {
    width: 8vw;
    height: 0.75vh;
    position: relative;
    background-color: #36b2eb;
    top: -2vh;
    right: 31vw;
}

#main-txt {
    width: 70vw;
    font-size: 22pt;
}

.animate__zoomIn {
    animation-duration: 1.5s;
}

.animate__zoomInDown {
    animation-duration: 1.2s;
    animation-delay: 0.15s;
}

.icon:hover {
    opacity: 0.7;
}

#share-icons {
    width: 7vw;
    position: fixed;
    top: 0;
    left: 1vw;
    padding: 3.7rem 0 3vh;
    display: flex;
    justify-content: space-around;
    z-index: 1030;
}

.share-icon {
    display: none;
}

#why-div-nav {
    width: 98.7vw;
    padding-top: 10vh;
    box-sizing: border-box;
    position: relative;
    top: -80vh;
    text-align: center;
}

#short-contact {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding: 0 1rem;
    width: 100% !important;
    text-align: center;
    background-color: rgb(231, 237, 244);
    padding: 1rem 1rem;
    box-shadow:  0 0 1rem rgba(0, 0, 0, 0.5);
}

#short-contact-input {
    width: 40%;
}

.card {
    border-bottom: 3px solid #169fe6;
    background-color: #ebebeb;
}

.card-text {
    font-size: 1rem;
}

.card-img-first {
    height: 50vh;
}

#gallery {
    flex: 0 0 55%;
    max-width: 55%;
}

#gallery-card {
    border: none;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
}

#car-model-gallery {
    background-color: #1b88bf;
    border-bottom: 0.15rem solid white;
    color: white;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    text-align-last: center;
}

#car-model-gallery:focus {
    /* border: 1px solid rgb(206, 212, 218); */
    box-shadow: none;
}

#katava-ttl {
    max-width: 70%;
    margin: 2rem 10% 2rem 0;
    text-align: start;
}

#katava1, #katava2, #katava3, #katava4 {
    max-width: 70%; 
    margin-right: 15%;
}

#end-div-nav {
    padding-top: 10vh;
    box-sizing: border-box;
    position: relative;
    top: -80vh;
}

#end-div {
    width: 98.7vw;
    height: fit-content;
    box-sizing: border-box;
    position: absolute;
    top: 6.5vh;
    border-top: 4px solid #169fe6;
    background-color: #ebebeb;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 3rem 0 0;
}

#car-model {
    text-align-last: center;
}

#car-model:focus {
    border: 1px solid rgb(206, 212, 218);
    box-shadow: none;
}

.curr-cal {
    font-weight: 600;
}

#tr-head > td {
    border: none;
}

 /* #tr-head, #tr-days {
    border: 1.5px solid rgb(78, 74, 74);
} */

#calendar > tbody > tr > td {
    padding: 0.1rem;
}

#tr-head > td {
    background-color: #1b88bf;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

#tr-days > td {
    background-color: rgb(221, 230, 229);
    font-size: 0.8rem;
    font-weight: 500;
}

#tr-days > td {
    width: 1%;
}

#calendar, #tr-head, #tr-days > td, .tr-weeks > td {
    border: 1px solid rgb(78, 74, 74);
    border-left-color: rgba(0, 0, 0, 0);
    border-right-color: rgba(0, 0, 0, 0);
}

.tr-weeks > td {
    font-size: 0.8rem;
}

.td-occ-7 {
    background-color: rgb(204, 80, 100);
    color: white;
}

.td-occ-4 {
    background-color: rgb(255, 180, 50);
    color: white;
}

.td-occ-6 {
    background-color: rgb(71, 185, 161);
    color: white;
}

.td-occ-5 {
    background-color: rgb(146, 208, 80);
    color: white;
}

.td-occ-exp {
    background-color: rgb(221, 230, 229);
}

#square {
    width: 0.5rem;
    margin: 0 0.2rem;
}

#gallery-div {
    width: 40vw;
    height: fit-content;
    box-sizing: border-box;
    position: relative;
}

video {
    width: 40vw;
    margin-top: 1rem;
}

#contact-div {
    width: 40vw;
    height: fit-content;
    box-sizing: border-box;
    position: relative;
}

form {
    width: 40vw;
    font-size: large;
}

.form-check {
    text-align: start;
}

.form-control.is-valid, .was-validated .form-control:valid {
    background-image: none;
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important; */
}

.valid-feedback, .invalid-feedback {
    text-align: center;
}

.btn-tal {
    background-color: #169fe6;
    color: white;
}

.btn-tal:hover {
    background-color: #36b2eb;
    color: white;
}

.btn-con {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background-color: royalblue;
    color: white;
    box-shadow: 3px 3px 0 black;
    animation: bounce 1s ease-in-out;
    z-index: 1030;
    transition: ease-in-out 0.1s;
}

.btn-con:hover {
    background-color: rgb(84, 120, 228);
    color: white;
}

.btn-con:active {
    background-color: rgb(22, 62, 182);
    box-shadow: 0 0 0 black;
    color: white;
    bottom: 13px;
    right: 13px;
}

.btn-tel {
    bottom: 80px;
    background-color: rgb(47, 194, 91);
}

.btn-tel:hover {
    background-color: rgb(59, 218, 107);
}

.btn-tel:active {
    background-color: rgb(11, 167, 58);
    bottom: 77px;
}

#container-copyrights {
    width: inherit;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    padding: 0.5rem 0;
    margin-top: 3rem;
    text-align: center;
    background-color: rgb(63, 58, 58);
    box-shadow: inset 0 15px 35px 0 rgba(0, 0, 0, 1);
}

#link-conditions {
    color: #6ba5ec;
    text-decoration-line: underline;
    margin-right: 2rem;
}

.ts-btn {
    background-color: black;
}

.text-copyrights {
    font-size: 0.8rem;
}

/* ---------------------------- comments page -------------------------------------------------------- */

#comments-ttl {
    width: 100%;
    text-align: center;
    margin-top: calc(4rem + 4vw);
}

.comments-div {
    margin: 0 10rem 3rem;
    max-height: 20rem;
    overflow: auto;
    border: 0.1rem solid #696969;
    padding: 0.5rem;
    direction: ltr;
}

.comment-div {
    width: 100%;
    padding: 0.5rem;
    background-color: #f1f1f1;
    border: 0.05rem solid #979696;
    border-bottom: 0.1rem solid #696969;
    border-radius: 0.5rem;
    
    /* border-style: solid none; */
    color: #393939;
    text-align: start;
    margin: 1rem 0;
}

.comment-div:first-of-type, .comment-div:last-of-type  {
    margin: 0;
}

.comment-div:last-of-type {
    border-bottom: 0.1rem solid #696969;
}

.comment-ttl {
    background-color: #256985;
    border-bottom: 0.1rem solid #393939;
    padding: 0.25rem 0.3rem;
    font-weight: 500;
    color: whitesmoke;
    border-radius: 0.3rem 0.3rem 0 0;
}

.five-stars {
    height: 1.3rem;
    margin-right: 0.5rem;
}

.comment-p, .comment-p > b {
    font-size: 0.9rem;  
}

.comment-p {
    margin-bottom: 1rem;
}

.img-container {
    display: flex;
    justify-content: start;
}

.img-container > img {
    width: 15%;
    margin: 0 0.5rem;
}

.comment-div:nth-of-type(17) > .img-container > img {
    width: unset;
    height: 6rem;
    margin: 0 0.5rem;
}

.comments-imgs {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

#galleryComments {
    flex: 0 0 40%;
    max-width: 40%;
    margin-top: 2rem;
}

/* ---------------------------- prices page ---------------------------------------------------------- */

td {
    border: 1.5px solid #1b88bf;
    padding: 1rem 0.5rem;
}

.table-prices {
    display: none;
    min-width: 70vw;
    max-width: 100vw;
    margin: 2rem 5rem 0;
    border-style: hidden;
    /* border-radius: 1rem; */
    background-color: #ebebeb;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: 1s bounceInDown;
}

#tr-titles {
    border-bottom: 3px solid #1b88bf;
    font-weight: 700;
    font-size: 1.2rem;
}

.td-right {
    font-weight: 700;
}

.td-middle {
    border-left: 3px solid #1b88bf;
    border-right: 3px solid #1b88bf;
    
}

.table-prices > tbody > tr > td:nth-of-type(3) {
    background-color: #DEEBF7;
}

#container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 6rem;
}

#info-div {
    display: none;
    width: 45vw;
    margin: 5rem 2rem;
    text-align: start;
}

.info-title {
    margin-right: -1rem;
    color: #169fe6;
    font-size: 1.5rem;
    font-weight: 500;
    display: block;
}

#galleryp {
    display: none;
    margin: 5rem 0 0;
    flex: 0 0 40%;
    max-width: 40%;
}

.table-prices > tbody > tr > td > s {
    color: rgb(148, 26, 26);
    font-size: 0.8rem;
}

/* ---------------------------- Q&A page ------------------------------------------------------------- */

.qa-card {
    text-align: start;
    margin-top: 6rem;
    padding-bottom: 0;
}

.ui-accordion .ui-accordion-header {
    border-radius: 0;
}

.ui-state-active {
    background-color:#0993d8;
    border-color: #093850;
}

/* ---------------------------- gallery page --------------------------------------------------------- */

#galleryg {
    padding: 6rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.back-btn {
    margin-bottom: 1rem;
    margin-left: 80vw;
    justify-self: start;
}

.back-btn-g {
    margin-bottom: 1rem;
    margin-left: 80vw;
    justify-self: start;
}

.back-btn::before {
    content: '\226A';
    margin-left: 0.5rem;
}

.img-div {
    height: 40vh;
    width: 30vw;
    margin: 1rem;
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}

.img-div:hover {
    filter: brightness(80%);
}

.img-choose-div {
    display: flex;
    height: 50vh;
    width: 35vw;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
    text-shadow: 2px 2px 3px black;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    
}

.img-choose-div:hover {
    filter: brightness(80%);
    width: 38vw;
    font-size: 1.5rem;
}

.zoom {
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    background-size: 50%;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    margin: 0;
    z-index: 1030;
    display: none;
}

.exit {
    height: 100vh;
    width: 100vw;
    cursor: pointer;
}

.exit > div {
    /* background-color: rgb(27, 25, 25); */
    position: absolute;
    /* padding: 0.05rem 0.55rem; */
    opacity: 0.9;
    font-size: 1.5rem;
    font-weight: bold;
    color: whitesmoke;
    text-align: right;
    margin: 1rem;
    z-index: 1030;
    border-radius: 25%;
}

.exit > div:hover {
    opacity: 1;
}

.nav-btn {
    background-size: 50%;
    width: 2rem;
    height: 2rem;
    background-color: rgb(27, 25, 25);
    border-radius: 1rem;
}

.zoom-btn-prev {
    margin-left: 25%;
    cursor: pointer;
    z-index: 1029 !important;
}

.zoom-btn-prev:hover {
    opacity: 0.9 !important;
}

.disappear {
    display: none;
}

.zoom-btn-next {
    margin-right: 25%;
    cursor: pointer;
    z-index: 1029 !important;
}

.zoom-btn-next:hover {
    opacity: 0.9 !important;
}

/* --------------------------------------------------------------------------------------------------- */

@media (max-width: 992px) {
    #logo {
        width: 24vw;
        top: auto;
        right: 38vw;
        bottom: -5vh;
    }
    #icons-div {
        width: 38vw;
        right: 1vw;
    }
    #phone-num-span {
        display: none;
    }
    .icon {
        width: 7vw;
    }
    .icon:hover {
        opacity: 1;
    }
    .icon:active {
        opacity: 0.7;
    }
    #share-icons {
        width: 27vw;
        position: relative;
        top: 9vh;
        left: 24vw;
        z-index: 1030;
        align-content: space-around;
        padding: 0 0 0 0;
    }
    .share-icon {
        width: 10vw;
    }
    #main-div {
        width: 100vw;
        background-size: auto 100%;
        background-repeat: no-repeat;
        background-position-x: 48%;
        background-position-y: 35%;
    }
    #main-dark-div {
        width: 100vw;
    }
    #main-ttl {
        font-size: 40pt;
    }
    #line {
        height: 0.5vh;
        width: 24vw;
        right: 38vw;
    }
    #main-txt {
        width: 100vw;
        font-size: 16pt;
    }
    #why-div-nav {
        width: 100vw;
    }

    #short-contact-input {
        width: 100%;
    }
    .card-img-first {
        height: unset;
    }
    .row {
        justify-items: center;
    }
    #gallery {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #katava-ttl {
        max-width: 100%;
    }
    
    #katava1, #katava2, #katava3, #katava4 {
        max-width: unset; 
        margin: 0 1rem;
    }

    #end-div {
        width: 100vw;
    }
    
    #gallery-div-nav {
        width: 100vw;
        right: 0;
    }
    #gallery-div {
        width: 100vw;
    }

    #gallery-div > .row {
        width: 100vw !important;
        margin-bottom: 3rem !important;
    }

    video {
        width: 100vw;
        margin-bottom: 6.5vh;
        margin-top: 0;
    }
    #contact-div {
        width: 100vw;
    }

    #contact-div > h1 {
        margin: 0 0 1.5rem !important;
    }

    .contact-form {
        width: 80vw;
        margin: 0 10vw !important;
    }

    .btn-con:hover {
        background-color: royalblue;
    }
    
    .btn-con:active {
        background-color: rgb(22, 62, 182);
        box-shadow: 0 0 0 black;
        color: white;
    }
    
    .btn-tel:hover {
        background-color: rgb(47, 194, 91);
    }
    
    .btn-tel:active {
        background-color: rgb(11, 167, 58);
    }

    .back-btn {
        margin-left: 0vw;
    }
    .back-btn-g {
        margin-left: 65vw;
    }

    .table-prices {
        margin: 2rem 0 0;
    }

    #container {
        flex-wrap: wrap;
    }

    #info-div {
        width: fit-content;
        margin: 3rem 3rem;
    }
    #galleryp {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .img-div {
        height: 14vh;
        width: 40vw;
    }
    .img-choose-div {
        display: flex;
        height: 30vh;
        width: 100vw;
        font-size: 1.4rem;
        font-weight: 500;
    }
    .img-choose-div:hover {
        width: 100vw;
        font-size: 1.5rem;
    }
    .zoom {
        height: 100vh;
        width: 100vw;
        background-size: 100%;
    }
    .zoom-btn-prev {
        margin-left: 0;
    }
    
    .zoom-btn-next {
        margin-right: 0;
    }

    .exit > div {
        margin: 4rem 1rem 1rem;
    }

    #sb-developes {
        display: block;
    }

    #link-conditions {
        margin-right: 0;
    }

    #comments-ttl {
        margin-top: 6rem;
    }

    .comments-div {
        margin: 0 1rem 2rem;
    }

    .img-container {
        justify-content: center;
    }

    .img-container > img {
        width: 40%;
    }

    #galleryComments {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    ::-webkit-scrollbar-thumb {
        background-color: #acacac;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-track {
        border-radius: 10px;
        background-color: #ebebeb;
    }

    ::-webkit-scrollbar {
        -webkit-appearance: none;
        direction: rtl;
    }

    ::-webkit-scrollbar:vertical {
        width: 0.4rem;
    }
}