/* MAIN PAGE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    background-color: white;
    color: rgb(30, 30, 30);
    height: 100%;
    margin: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

/* Navigation Bar */

.header {
    border-bottom: 1px solid #fff;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: white;
    padding-right: 50px;
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: black;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu .nav-item {
    padding: 0;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
}



@media only screen and (max-width: 1200px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 3rem;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        border-radius: 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 2.5rem 0;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-container {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

}

.nav-menu .nav-item .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: red;
    text-decoration: none;
    font-size: 18px;
    font-weight: 550;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
}

.dropdown {
    float: left;
    overflow: hidden;
    margin: 10px 0;
}

/* Dropdown container */
.dropdown-container {
    position: relative;
    display: inline-block;
}

/* Main dropdown */
.dropdown .dropbtn {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 18px;
    border: none;
    outline: none;
    color: red;
    background-color: white;
    font-family: inherit;
    font-weight: 550;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
}

.dropdown:hover .dropdownmenu {
    display: block;
}

.dropdownmenu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    border: 1px solid #ccc;
}

.dropdownmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdownmenu li {
    position: relative;
}

.dropdownmenu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    margin: 0.75rem 0;
    color: #494949;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

/* Nested dropdownmenu-1 and dropdownmenu-2 */
.dropdownmenu-1,
.dropdownmenu-2 {
    display: none;
    position: absolute;
    left: 100%;
    background-color: #fff;
    min-width: 180px; /* Adjust width */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.dropdownmenu-1 ul,
.dropdownmenu-2 ul {
    margin: 0;
    padding: 0;
}

.dropdownmenu-1 li,
.dropdownmenu-2 li {
    padding: 0;
    margin: 0;
}

.dropdownmenu-1 li a,
.dropdownmenu-2 li a {
    display: block;
    padding: 0.5rem 1rem;
    margin: 0;
    color: #494949;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.dropdownmenu-1 li a:hover,
.dropdownmenu-1 li a:focus,
.dropdownmenu-2 li a:hover,
.dropdownmenu-2 li a:focus {
    background-color: #b3b3b3;
    color: #fff !important;
    cursor: pointer;
    border-radius: 4px;
}

.dropdownmenu li:hover .dropdownmenu-1,
.dropdownmenu li:hover .dropdownmenu-2 {
    display: block;
}

.dropdownmenu li:hover .dropdownmenu-1 {
    top: 0;
    left: 100%;
}

.dropdownmenu li:hover .dropdownmenu-2 {
    top: 0;
    left: 100%;
    margin-top: 0;
}

.dropdownmenu-1 ul,
.dropdownmenu-2 ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdownmenu-1 li,
.dropdownmenu-2 li {
    display: block;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
}

.nav-menu .nav-item .nav-link:hover,
.nav-menu .nav-item .nav-link:focus,
.nav-menu .dropdown .dropbtn:hover,
.nav-menu .dropdown .dropbtn:focus,
.dropdownmenu li a:hover,
.dropdownmenu li a:focus {
    background-color: #b3b3b3;
    color: #fff !important;
    cursor: pointer;
}



label{
    padding-left: 50px;
    align-items: center;
    display: flex;
    margin: 0;
}

label img {
    width: 50px;
    position: relative;
    top: 2px;
}

label h1 {
    margin: 0px 0px 0px 12px;
    font-weight: bold;
    font-size: 25px;
    color: #fb0100;
    font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}


#mainbody {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color:rgb(90, 90, 90);
    position: relative;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Slideshow */

/* WRAPPER FOR FEATURED SLIDE AND CAROUSEL */
.featured-wrapper {
    width: 100%;
    background-size: cover;
    background-position: center;
    flex: 1;
    position: relative;
}

/* STATIC FEATURED SLIDE */
.featured-slide {
    height: 80vh; /* Adjust as needed */
    background: url("pics/slideshow/emptypagespics/naturebackground.jpg") center/cover no-repeat;
    transition: opacity 0.5s ease;
}

/* FEATURED TEXT – Centered vertically */
.featured-text {
    position: absolute;
    top: 47%;
    left: 5%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.featured-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.featured-extra {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* CAROUSEL WRAPPER: Contains the carousel container and nav buttons */
/* Fix: change from absolute to relative on gallery pages to avoid disappearing */
.carousel-wrapper {
    position: absolute;
    bottom: 15%;
    right: 1%;
    width: 43%; /* Adjust width as needed */
    display: flex;
    align-items: center;
}

/* Override for gallery pages */
body[data-gallery="true"] .carousel-wrapper {
    position: relative; /* Changed from static to relative for better control */
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CAROUSEL CONTAINER: Keeps the track clipped */
.carousel-container {
    overflow: hidden; 
    width: 100%;
}

/* CAROUSEL TRACK */
.carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.5s ease-in-out;
}

/* CAROUSEL CARD */
.carousel-card {
    flex: 0 0 calc((100% - 20px) / 3);
    box-sizing: border-box;         /* include padding/border in width */
    border-radius: 8px;
    background-color: #c5c5c5d8;    /* gray backplate */
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    padding: 10px 0 0;
    padding-left: 5px;
    padding-right: 5px;
}

/* Hover color */
.carousel-card:hover {
    background-color: #c5c5c5f3;
}

/* Override for gallery pages to make cards bigger and taller */
body[data-gallery="true"] .carousel-card {
    min-width: 350px;
    height: 250px;
    padding: 10px;
}

/* CARD IMAGE */
.carousel-card .card-image {
    width: 100%;
    height: 180px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Override card image height on gallery pages */
body[data-gallery="true"] .card-image {
    height: 220px;
}

/* CARD TITLE */
.card-title {
    display: none !important;
}

/* Hide titles on gallery pages */
body[data-gallery="true"] .card-title {
    display: none;
}

/* NAVIGATION BUTTONS */
.nav-button {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.3s;
    z-index: 10;
}

/* Slightly lift buttons so they don't sit flush with container */
.nav-button.prev-btn {
    margin-right: 10px;
}

.nav-button.next-btn {
    margin-left: 10px;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Fix: Make sure buttons are aligned vertically centered */
.carousel-wrapper {
    align-items: center;
}

/* gallery page wrapper flex fix */
body[data-gallery="true"] .featured-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full height */
    background-color: #f5f5f5; /* Optional background */
    padding: 30px 0;
    position: relative;
}

body[data-carousel="4"] .carousel-card {
    flex: 0 0 calc((100% - 30px) / 4);
}

body[data-carousel="4"] .card-image {
    height: 120px;
}

body[data-carousel="4"] .carousel-wrapper {
    width: 90%;
    max-width: 800px;
    margin: auto;
}

#aboutuscarousel {
    margin-top: 30px;
}

  





#footerinfo {
    width: 100%;
    display: inline-block; 
    padding-top: 0;
    margin-top: 0;
    box-sizing: border-box;
    background-color: rgb(90, 90, 90);
    position: relative;
}

#bottomfooterinfo {
    position: fixed;
    bottom: 0;
    max-height: 20vh;
    overflow-y: auto;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgb(90, 90, 90);
}

.footercontainer {
    padding-block: clamp(10px, 2vh, 30px);
    padding-inline: 20px;
}

.footernav {
    margin: 0;
}

.text p {
    margin: 0;
    padding-block: 5px;
    line-height: 1.3;
    font-size: clamp(8px, 1vw, 13px);
    color: rgb(255, 255, 255);
    opacity: 0.7;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

/* emptypages  contacts page */

.iconGroup .details a {
    color: #616161;
}

.contactInfo img{
    position: absolute;
    left: 50%;
    width: 100%;
    max-width: 700px;
    top: 27%;
    border: 1px solid rgb(82, 82, 82);
}

.contactscontainer{
	width: 100%;
    height: 78.9vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 30px 8%;
    --s: 124px; /* control the size*/
    --c1: #ececec;
    --c2: #dfdfdf;
    
    --c: var(--c1) 12.5%,var(--c2) 0 25%,#00000000 0;
    background:
      conic-gradient(at 80% 20%,var(--c))
       calc(2*var(--s)/-5) calc(2*var(--s)/5),
      conic-gradient(from 180deg at 60% 40%,var(--c))
       calc(var(--s)/5) calc(var(--s)/-5),
      conic-gradient(at 0% 100%,var(--c));
    background-size: var(--s) var(--s);
}
.contactscontainer .contactsrow{
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 1100px;
}
.contactsrow section.col{
	display: flex;
	flex-direction: column;
}
.contactsrow section.left{
	flex-basis: 35%;
	min-width: 320px;
	margin-right: 60px;
}
.contactsrow section.right{
	flex-basis: 60%;
}
section.left .contactTitle h2{
	position: relative;
	font-size: 28px;
	color: rgb(90, 90, 90);
	display: inline-block;
	margin-bottom: 25px;
}
section.left .contactTitle h2::before{
	content: '';
	position: absolute;
	width: 50%;
	height: 1px;
	top: 120%;
	left: 0;
}

section.left .contactTitle p{
	font-size: 17px;
	color: #333;
	letter-spacing: 1px;
	line-height: 1.2;
	padding-bottom: 22px;
}
section.left .contactInfo{
	margin-bottom: 16px;
}
.contactInfo .iconGroup{
	display: flex;
	align-items: center;
	margin: 25px 0px;
}
.iconGroup .icon{
	width: 45px;
	height: 45px;
	border: 2px solid red;
	border-radius: 50%;
	margin-right: 20px;
	position: relative;
}
.iconGroup .icon i{
	font-size: 20px;
	color: rgb(90, 90, 90);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.iconGroup .details span{
	display: block;
	color: rgb(90, 90, 90);
	font-size: 18px;
}
.iconGroup .details span:nth-child(1){
	text-transform: uppercase;
	color: rgb(90, 90, 90);
    font-weight: 550;
}
section.left .socialMedia{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	margin: 22px 0px 20px;
}
.socialMedia a{
	width: 35px;
	height: 35px;
	text-decoration: none;
	text-align: center;
	margin-right: 15px;
	border-radius: 5px;
	background-color: red;
	transition: 0.4s;
}
.socialMedia a i{
	color: rgb(90, 90, 90);
	font-size: 18px;
	line-height: 35px;
	border: 1px solid transparent;
	transition-delay: 0.4s;
}
.socialMedia a:hover{
	transform: translateY(-5px);
	background-color: #e6e6e6;
	color: red;
	border: 1px solid red;
}
.socialMedia a:hover i{
	color: red;
}

@media(max-width: 900px){
	.contactscontainer .contactsrow{
		flex-wrap: wrap;
	}
	.contactsrow section.left, .contactsrow section.right{
		flex-basis: 100%;
		margin: 0px;
	}
}

/* emptypages dealers page */

.dealerscontainer {
    width: 100vw;
    height: 100vh;
    background-image: url(pics/slideshow/emptypagespics/naturebackground.jpg);
    background-position: center;
    background-size: cover;
    padding: 0 8%;
}

.dealerslogo {
    width: 120px;
    padding: 20px 0;
    cursor: pointer;
}

.dealerslogo {
    align-items: center;
    display: flex;
    margin: 0;
}

.dealerslogo img {
    position: relative;
    top: 2px;
}

.dealerslogo h1 {
    margin: 0px 0px 0px 12px;
    font-weight: bold;
    font-size: 40px;
    color: #fb0100;
    font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

.dealerscontent {
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    color: #fff;
}

.dealerscontent h1 {
    font-size: 64px;
    font-weight: 600;
    color: red;
    text-shadow: 2px 2px 8px black;
}

.dealerscontent a {
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    color: #fff;
    margin-top: 30px;
    cursor: pointer;
}

/* Three and Two Column Image Rows */

.threeimagerow,
.twoimagerow, .fourimagerow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Three Column Layout */
.threeimagecolumn {
  flex: 1 1 calc(33.333% - 20px); /* leave room for gap */
  min-width: 200px; /* prevents extreme shrinking */
  box-sizing: border-box;
}

/* Two Column Layout */
.twoimagecolumn {
  flex: 1 1 calc(50% - 20px);
  min-width: 250px;
  box-sizing: border-box;
}

.fourimagecolumn {
    flex: 1 1 calc(25% - 20px);
    min-width: 150px;
    box-sizing: border-box;
}

.threeimagecolumn img,
.twoimagecolumn img, .fourimagecolumn img {
  width: 100%;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 10px;
}

/* Optional: Slight margin above first image */
#redsemitrailer {
  margin-top: 50px;
}

#whitesemitrailer1, .whitesemitrailer2 {
  margin: 0;
}

#containerscheme {
  width: 100%;
  max-width: 600px;
  margin-left: 10px;
}

@media (max-width: 600px) {
    .threeimagecolumn,
    .twoimagecolumn, .fourimagecolumn {
      flex: 1 1 100%;
      min-width: unset;
    }
  }

/* All Vehicle Pages: dropdownproducts and dropdownspareparts */

.vehicles {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0px;
    background-color: #f7f7f7;
}
.vehiclescontainer {
    max-width: 92%;
    margin: 0 auto;
    background: rgb(255, 255, 255);
    padding: 0 15px;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.vehiclestitle {
    text-align: center;
    color: rgb(90, 90, 90);
    margin-bottom: 10px;
    margin-top: 50px;
    font-size: 30px;
    padding-top: 50px;
    padding-bottom: 20px;
}
.vehiclessubtitle {
    margin-left: 1%;;
    color: rgb(90, 90, 90);
    margin-bottom: 0px;
    margin-top: 20px;
    font-size: 20px;
}
.vehiclessubtitlespecial {
    margin-left: 1%;;
    color: rgb(90, 90, 90);
    margin-bottom: 0px;
    margin-top: 0px;
    font-size: 20px;
}
table {
    width: 98%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 17px;
    table-layout: fixed;
    margin-bottom: 40px;
    margin-left: 15px;
}
th, td {
    border: 2px solid #ddd;
    padding: 10px;
    text-align: left;
}



th {
    background-color: rgb(138, 46, 46);
    color: white;
    width: 400px;
}
td {
    color: rgb(90, 90, 90);
    font-weight: bold;
    padding-top: 2px;
}

.vehiclesimage {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

.video { /* for dumptruck page */
    display: flex;
    justify-content: center;
    
    --s: 124px; /* control the size*/
    --c1: #ececec;
    --c2: #dfdfdf;
    
    --c: var(--c1) 12.5%,var(--c2) 0 25%,#0000 0;
    background:
      conic-gradient(at 80% 20%,var(--c))
       calc(2*var(--s)/-5) calc(2*var(--s)/5),
      conic-gradient(from 180deg at 60% 40%,var(--c))
       calc(var(--s)/5) calc(var(--s)/-5),
      conic-gradient(at 0% 100%,var(--c));
    background-size: var(--s) var(--s);

    width: 100%;
    margin-bottom: 0;
    padding: 0;
}


.flex-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    margin-top: 5px;
  }
  .left-info {
    display: flex;
    flex-direction: column;
    max-width: 55%;
    margin: 0;
  }

  .left-info h3 {
    margin-left: 15px;
  }

  .right-video {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;

  }
  .squished-table {
    width: 100%;
    table-layout: fixed;
    font-size: 17px;
    margin-bottom: 20px;
  }
  .placeholder-icon {
    width: 550px;
    height: 100%;
    margin-top: 2px;
    align-self: flex-end;
    right: 15%;
  }
  .video-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
  }
  .video-controls button {
    padding: 8px 12px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .video-controls button:hover {
    background-color: #222;
  }
  #truckVideo {
    margin-top: 40px;
  }

/* about us */

h2 {
    color: rgb(187, 0, 0);
    margin-bottom: 15px;
}

.aboutussection {
    width: 92%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-style: solid none none none;
    border-color: gray;
    box-shadow: 0px 0px 10px rgba(22, 22, 22, 0.1);
    line-height: 1.5;
}

#aboutuslist li {
    list-style: disc;
    margin-left: 20px;
    margin: 30px;
}

/* front main */

#container {
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
  
#content {
    position: relative;
    top: 25%;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    perspective: 1000px;
    
}

#content h1 {
    font-size: 80px;
    color: #fb0100;
    text-align: center;
    text-shadow: 0 0 0 transparent;
    animation: textGold 5s steps(1, end) infinite;
    transition: color 1s ease-in-out, text-shadow 1s ease-in-out;
}

#content img {
    height: 300px;
}

.logo-spin-container {
    width: 380px;
    height: 300px;
    margin: auto;
    cursor: pointer;
    transform-style: preserve-3d;
    animation: spin360 5s linear infinite;
    position: relative;
    transform-origin: center center;
    perspective: 1000px;
}

.logo-spin-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    user-select: none;
    pointer-events: none;
}

.logo-front {
    opacity: 1;
    animation: frontOpacity 5s steps(1, end) infinite;
    transform: rotateY(0deg);
}

.logo-back {
    opacity: 0;
    animation: backOpacity 5s steps(1, start) infinite;
    transform: rotateY (180deg);}

@keyframes spin360 {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(-360deg); }
}

@keyframes frontOpacity {
    0%, 24.9999% { opacity: 1; }
    25%, 74.9999% { opacity: 0; }
    75%, 100% { opacity: 1; }
}

@keyframes backOpacity {
    0%, 25% { opacity: 0; }
    25.0001%, 74.9999% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

@keyframes textGold {
    0%, 19% { color: red; text-shadow: 0 0 0 transparent; }
    25%, 74% { color: #eacd0f; filter: brightness(1.1); text-shadow: 0 0 8px rgba(207, 164, 45, 0.8); }
    76%, 100% { color: red; text-shadow: 0 0 0 transparent; }
}

#frontpage {
    cursor: pointer;
    position: absolute;
    border: 10px solid transparent;
    border-image: url(pics/redcarborder.png) 30% round;
    margin-top: 1%;
    margin-left: 1%;
    margin-right: 1%;
    width: 98%;
    height: 98%;
    bottom: 1%;

    --s: 124px; /* control the size*/
    --c1: #ececec;
    --c2: #e6e6e6;
    
    --c: var(--c1) 12.5%,var(--c2) 0 25%,#0000 0;
    background:
      conic-gradient(at 80% 20%,var(--c))
       calc(2*var(--s)/-5) calc(2*var(--s)/5),
      conic-gradient(from 180deg at 60% 40%,var(--c))
       calc(var(--s)/5) calc(var(--s)/-5),
      conic-gradient(at 0% 100%,var(--c));
    background-size: var(--s) var(--s);

    opacity: 1;
    transition: opacity 0.5s ease-in-out;

    /* gold stuff now */

    border: 10px solid transparent;
    border-image: url(pics/redcarborder.png) 30% round;
    animation: carBorderSwap 5s steps(1, end) infinite;
}

@keyframes carBorderSwap {
    0%, 19% {
        border-image-source: url(pics/redcarborder.png);
    }
    25%, 74% {
        border-image-source: url(pics/goldcarborder.png);
    }
    76%, 100% {
        border-image-source: url(pics/redcarborder.png);
    }
}

#frontpage.fade-out {
    opacity: 0;
}






.carousel-2 {
    width: 100%;
    max-height: 300px;
    margin: 20px 0;
  }
  
  .carousel-window-2 {
    overflow: hidden;
    width: 100%;
  }
  
  .carousel-track-2 {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 10px;
    padding: 0 10px;
  }
  
  .carousel-track-2 img {
    flex: 0 0 calc((100% - 20px) / 3); /* 3 images, subtracting 2x gap */
    max-height: 300px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
  }
  
  .carousel-btn-2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0 15px;
    cursor: pointer;
    z-index: 1;
  }
  
  .carousel-btn-2.prev {
    left: 0;
  }
  
  .carousel-btn-2.next {
    right: 0;
  }

  .prev-btn,
  .next-btn {
    display: none !important;
  }
