*{
    box-sizing: border-box;
}
body{
    background: #e0e0e0;
}
img{
    cursor: pointer;
    border-radius: 8px;
}
a{
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}
.stick{
    position: sticky;
    z-index: 1000;
    top: 0;
}
.main-content{
    z-index: -1;
}
.car-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
    display: block; 
}
.modal-dialog{
    max-width: 60%;
    margin: 0 auto;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.btn-x{
    color: #962103;
    background-color: #c0c0c0;
    font-weight: bolder;
    border: none;
}
.modal-content{
    background: #ababab;
}
.text-center {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter{
    text-align: center;
    width: 100%;
}
.buttons{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.left, .right{
    width: 25%;
    font-size: xx-large;
    border: none;
    background-color: gray;
    border-radius: 8px;
}
.left:hover, .right:hover, .left:active, .left:focus, .right:active, .right:focus{
    background-color: #962103 !important;
}
.contact-div{
    display: flex;
    justify-content: flex-end;
    padding: 10px 10px;
    gap: 10px;
    background-color: #909090;
    height: max-content;
}
.photo-logo, .photo-fb, .photo-ig{
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-nr{
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-nav{
    display: flex;
    justify-content: flex-end;
    padding: 0;
    background-color: #909090;
}
.menu{
    width: 100vw;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}
.menu-btn{
    display: none;
}
.close-btn{
    position: absolute;
    right: 10px;
    display: none;
}
.menu-link{
    color: #453200;
}
.active{
    color: #962103;
}
.menu-link:hover{
    color: #8c3200;
}
ul, .menu li {
    float: right;
}
.menu li a {
    display: block;
    padding: 6px;
    height: 100%;
}
.cad_list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    float: none;
}
.cad_list li {
    display: list-item;
    margin-bottom: 0.5rem;
    float: none; 
}
.cad-photos{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px;
    gap: 10px;
    width: 100%;
}
.enlargedImg {
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-trigger{
    transition: 0.3s;
}
.modal-trigger:hover{
    transform: scale(1.02);
}
.cad-info{
    margin: 18;
}
.cars{
    display: flex;
    flex-direction: column;
    margin: 30px;
}
.photo1, .photo2, .photo3{
    width: max(300px, 30%);
    align-self: center;
}
@media only screen and (max-width: 816px){
.text-center{
    height: 80vh;
}
.enlargedImg{
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}
}
@media only screen and (max-width: 616px){
.modal-dialog{
    max-width: calc(100% - 25px);
    margin: 0 auto;
}
.cad-photos{
    display: flex;
    flex-direction: column;
}
.text-center{
    height: 80vh;
}
.enlargedImg{
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}
.top-nav{
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
}
.menu{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}
.menu-btn{
    display: block;
}
.menu-li{
    width: 100%;
    text-align: center;
}
.menu li a{
    display: none;
    width: auto;
    align-items: center;
    padding-left: 10px;
}
.left, .right{
    width: 40%;
}
}