/* *************************************************************************************************** */
/* Univerasl Styles                                                                                    */
/* *************************************************************************************************** */

body{
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a{
    text-decoration: none;
    color: black;
}

a:hover{
    color: red;
}


/* *************************************************************************************************** */
/* Header and Menu                                                                                     */
/* *************************************************************************************************** */

#header {
  display: flex;
  align-items: center;
  background-color: #1b1414;
  height: 150px;
  
  gap: 30px;
  position: relative; 
  flex-wrap: nowrap;
  overflow: hidden;
}

#logo img {
  width: 240px;
}

#menu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
}

#menu li{
    display: inline-block;
}

#menu a{
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 100px;
    color: #ffffff;

    padding: 0 40px;
    border: none;
    display: block;
}

#menu a:hover{
    background-color: #eae9e9;
    color: #1b1414;
    border-radius: 5px;
}

/* *************************************************************************************************** */
/* Banner                                                                                              */
/* *************************************************************************************************** */

#banner{
    height: 400px;
}

#banner img{
    width: 100%;
    height: 400px;
}

/* *************************************************************************************************** */
/* Page                                                                                                */
/* *************************************************************************************************** */

#page{
    min-height: 400px;
    padding: 30px;
}

#page h2{
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
    color: red;
}

/* CONTENT */

#content{
    float: right;
    width: 75%;
}

#content p{
    text-align: justify;
}

/* FEATURED VEHICLES */

#featured {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

#featured > a {
    width: 32%;
    text-decoration: none;
}

#featured > a > div {
    border: 1px solid #1b1414; 
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;  
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    padding: 10px;           
}

#featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;     
}

#featured h2 {
    font-size: 16px;
    text-align: center;
    margin: 0;               
    line-height: 1.2em;      
}

#featurred h2{
    margin: 10px;
}


/* SIDEBAR */

#sidebar{
    float: left;
    width: 23%;
}

/* Lists */

ul.styled{
    margin: 0;
    padding: 0;
    list-style-type: none;
}

ul.styled li{
    border-top: solid 1px #e5e5e5;
    padding: 14px 0px;
}

/* *************************************************************************************************** */
/* Footer                                                                                              */
/* *************************************************************************************************** */

#footer{
    width: auto;
    height: 270px;
    background-color: #1b1414;
    padding-top: 25px;
    padding-left: 22px;
    clear: both;
}

#footer h2{
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
}

#footer p{
    color: #adadad;
}

#footer a{
    color: #adadad;
}


#box1{
    float: left;
    width: 30%;
    padding-right: 30px;
}

#box2{
    float: left;
    width: 30%;
    padding-right: 30px;
}

#box3{
    float: right;
    width: 30%;
    
}

#box3 img{
    width: 48px;
    height: 48px;
}

/* *************************************************************************************************** */
/* Copyright                                                                                           */
/* *************************************************************************************************** */

#copyright{
    width: 100%;
    height: 100px;
    text-align: center;
    background-color: #ee1521;
    padding-top: 55px;
    clear: both;
}

#copyright p{
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

/* **************************************************************************************************** */
/* Vehicles                                                                                    */
/* **************************************************************************************************** */

#vehicle1 h2, #vehicle2 h2, #vehicle3 h2{
    margin: 10px;
}

/* **************************************************************************************************** */
/* Car image gallery                                                                                    */
/* **************************************************************************************************** */

.gallery-container {
    display: flex;
    gap: 20px; /* space between gallery and description */
    align-items: flex-start;
}

/* Gallery adjustments */
.gallery {
    flex: 0 0 600px; /* fixed 600px */
    text-align: center;
    margin-bottom: 50px;
}

.big-image {
    display: none; /* hide all by default */
    margin-bottom: 20px;
}

.big-image img {
    width: 500px;
    max-width: 90vw;
    border: 2px solid #333;
    border-radius: 8px;
}

/* Show the first image only if nothing is targeted */
body:not(:has(:target)) #img1 {
    display: block;
}

/* Show the clicked image */
.big-image:target {
    display: block;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbnails img {
    width: 100px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #646464;
    transition: border 0.3s;
}

.thumbnails img:hover {
    border: 2px solid #ee1521;
}


#img1, #img2, #img3, #img4, #img5 {
    scroll-margin-top: 50px; 
}

.car-description {
    width: auto;        /* let it take remaining space */
    float: none;        /* remove float */
    flex: 1;            /* if inside a flex container, take remaining space */
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 14px;
    margin-bottom: 20px;
}

/* **************************************************************************************************** */
/* Next Page and Previous Page                                                                                    */
/* **************************************************************************************************** */


.back-btn {
    display: inline-block;
    padding: 8px 14px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 40px;
}

.back-btn:hover {
    background-color: #ee1521;
    color: #fff;
}



#nextpage {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center;     /* Align items vertically */
    gap: 40px;              /* Adjust this for decent spacing */
    width: 100%;
}

#nextpage a{
    font-weight: bold;
}
