/* FjordHome.css */


/*          <div id="sideBar">
                <div>
                    <div id="newButton">New</div>
                    <div id="usedButton">Used</div>
                </div>
                <hr>
                <div>
                
                </div>
            </div> */


body {
    width: 100%;
    margin: auto;
    background-color: #EFEAE6;
    color: #0C2C47
}

#header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 4;
}

#navBar a:hover {
    color: #EFEAE6;
}

div.content {
    width: 80%;
    margin: auto;
    margin-top: 10px;
}

div#titleBG {
    width: 100%;
    min-height: 100px;
    background-color: #2D5652;
    display: grid;
    align-items: center;
}

div#titleBar {
    width: 80%;
    margin: auto;
    padding: 20px 0;
    color: #E4F2EA;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
}

div#navBG {
    width: 100%;
    background-color: #97D3CD;
}

div#navBar {
    width: 80%;
    margin: auto;
    padding: 20px;
    color: #0C2C47;
}

#titleOptions {
    display: grid;
    grid-auto-flow: column;
    justify-content: end;
    gap: 30px;
    
}

.car {
    width: 100%;
}

#titleOptions a {
    color: #E4F2EA;
    font-size: 20px;
    font-weight: bold;
    padding: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 10px;
}

#titleOptions a:hover {
    background-color: #E2A54D;
    color: #EFEAE6;
}

#title {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: "Redaction 20"
}

#title:hover {
    color: #97D3CD;
}


ul#navOptions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px
}

li {
    position: relative;
    display: block;
    font-size: 20px;
    border-radius: 5px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s ease, background-color, 0.5s ease;
}

li a {
    display: block;
    padding: 20px;
    text-align: center;
    transition: color 0.5s ease;
}

li:hover {
    transform: translateY(-3px);
    background-color: #0C2C47;
    /*color: #E2A54D;*/
}

li:hover a {
    color: #EFEAE6
}

li::after {
    position: absolute;
    content: "";
    left: 15%;
    right: 15%;
    bottom: 5px;
    height: 2px;
    background-color: #EFEAE6;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.75s ease;
}

li:hover::after {
    transform: scaleX(1);
}

a .optionButton:hover {
    background-color: #0C2C47;
    color: #EFEAE6
}

a .optionButton2:hover {
    background-color: #E4F2EA;
    color: #2D5652;
}

.insideAP {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr))
}

.advertisePanel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
    background-color: #2D5652;
    color: #E4F2EA;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 20px;
}

.advertisePanel img{
    border-radius: 5px;
    padding: 10px;
}

.advertisePanel h2 {
    text-align: left;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

#searchBar {
    background-color: #e0dddb;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #0C2C47;
}

#carLayout {
    display: grid;
    grid-template-columns: 20% 1fr;
    gap: 20px;
    align-items: start;
}

#sideBar {
    color: #0C2C47;
    letter-spacing: 1px;
    background-color: #97D3CD;
    height: fit-content;
    font-size: 20px;
    position: sticky;
    top: clamp(300px, 26vw, 230px);
    box-shadow: 0 15px  #2D5652;
    margin-bottom: 40px;
 }

#insideSB {
    font-weight: bold;
    margin: 15px 5px 15px 15px;
}

.vehiclesBar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.priceText {
    font-size: 30px;
    color: #0C2C47;
    font-weight: bold;
}

.displayText {
    padding: 10px;
}

.vehicleDisplay {
    background-color: #e0dddb;
    color: #2D5652;
    width: 100%;
}

.vehicleDisplay img {
    width: 100%;
}

#pageActive {
    background-color: #0C2C47;
    color: #EFEAE6;
}

.pageNum {
    color: #0C2C47;
    height: 20px;
    text-align: center;
    padding: 5px;
    font-weight: bold;
    border-radius: 20px;
}

.pageNum:hover {
    background-color: #E2A54D;
    color: #EFEAE6;
    height: 20px;
    text-align: center;
    padding: 5px;
    font-weight: bold;
    border-radius: 20px;
}

#arrow {
    background-color: #97D3CD;
    border: 1px solid #0C2C47;
}

#pageViewer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, max-content));
    justify-content: right;
    margin: 24px auto;
    gap: 10px;
}

#newButton {
    background-color: #E2A54D;
    color: #EFEAE6;
    float: left;
    padding: 10px;
    border-radius: 30%;
    margin: 10px 18px 5px;
    border: 1px solid #EFEAE6;
}

#usedButton {
    float: left;
    padding: 10px;
    border-radius: 30%;
    margin-top: 10px;
    border: 1px solid #EFEAE6;
}
#usedButton:hover {
    background-color: #e1b577;
    color: #EFEAE6;
}

#offerLayout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.offerBox {
    color: #2D5652;
    border: 2px solid #0C2C47;
    border-radius: 5px;
    padding: 20px;
}

.offerBox h2 {
    text-align: left;
}

.supportLayout {
    display: grid;
    grid-template-columns: 75% 1fr;
    gap: 75px;
}

.supportTopics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.supportBox {
    color: #2D5652;
    border: 2px solid #0C2C47;
    border-radius: 5px;
    padding: 20px;
}

.supportBox p {
    font-weight: bold;
    font-size: 18px;
}

#phoneSupport {

    align-content: center;
}

#phoneImg {
    display: block;
    width: 200px;
    height: 200px;
    transform: translateY(0) rotate(0deg);
    animation: phoneBounce 3s ease-in-out infinite;
}

@keyframes phoneBounce {
    0%, 35% {
        transform: translateY(0) rotate(0deg);
    }
    45% {
        transform: translate(-18px, -15px) rotate(-8deg);
    }
    55% {
        transform: translateY(2px) rotate(8deg);
    }
    65% {
        transform: translateY(-9px) rotate(-5deg);
    }
    75% {
        transform: translateY(1px) rotate(3deg);
    }
    85%, 100% {
        transform: translateY(0) rotate(0deg);
    }
}

#road {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

#carContainer {
    position: relative;
    display: inline-block;
    transform: translateX(-120%) scale(0.7);
    animation: driveCar 4s ease-in-out infinite;
}

#carImg {
    position: relative;
    z-index: 4;
    display: block;
    width: 220px;
    height: auto;
}

#dustImg {
    position: absolute;
    z-index: 3;
    left: -70px;
    bottom: 0;
    width: 120px;
    height: auto;
    pointer-events: none;
}

#carImg2 {
    position: absolute;
    z-index: 2;
    left: -150px;
    display: block;
    width: 180px;
    bottom: 10px;
    height: auto;
}

#dustImg2 {
    position: absolute;
    z-index: 1;
    left: -220px;
    bottom: 10px;
    width: 100px;
    height: auto;
    pointer-events: none;
}

@keyframes driveCar {
    0% {
        transform: translateX(-120%) scale(0.7);
    }
    50% {
        transform: translateX(45vw) scale(1.75);
    }
    100% {
        transform: translateX(120vw) scale(1.2)
    }
}

.optionButton {
    clear: both;
    width: 80%;
    margin: auto;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    background-color:#97D3CD;
    color: #0C2C47;
    margin-bottom: 10px;
}

.optionButton2 {
    clear: both;
    width: 80%;
    margin: auto;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    background-color:#E2A54D;
    color: #EFEAE6;
    margin-bottom: 10px;
}

.optionButton3 {
    clear: both;
    width: 80%;
    margin: auto;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    background-color: #0C2C47;
    color: #EFEAE6;
    margin-bottom: 10px;
}

.optionButton3 a {
    color: #EFEAE6
}

#tabOptions{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}

.vehicleOption {
    padding: 15px 15px;
    border-radius: 8px;
    background-color: #97D3CD;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

h2 {
    text-align: center;
}

.insidePanel {
    padding: 10px;
    font-size: calc(100% + 2px);
    line-height: 1.5
}

.insidePanel .optionButton{
    background-color: #EFEAE6;
    color: #2D5652;
    padding: 20px;
}

.insidePanel .optionButton2{
    padding: 20px;
}

#coupePanel {
    background-color: #0C2C47;
    color: #EFEAE6;
    padding: 16px;
    border-radius: 10px;
}
#truckPanel {
    background-color: #2D5652;
    color: #E4F2EA;
    padding: 16px;
    border-radius: 10px;
}
#suvPanel {
    background-color: #97D3CD;
    padding: 16px;
    border-radius: 10px;
}
#vanPanel {
    background-color: #E2A54D;
    color: #EFEAE6;
    padding: 16px;
    border-radius: 10px;
}

.radioTab {
    display: none;
}

.vehiclePanel {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
}

.vehiclePanel img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover
}

.optionButton2 a:hover {
    color: #EFEAE6;
}

#vehicles:has(#radioCoupe:checked) #coupePanel,
#vehicles:has(#radioTruck:checked) #truckPanel,
#vehicles:has(#radioSUV:checked) #suvPanel,
#vehicles:has(#radioVan:checked) #vanPanel {
    display: grid;
}

#vehicles:has(#radioCoupe:checked) label[for="radioCoupe"],
#vehicles:has(#radioTruck:checked) label[for="radioTruck"],
#vehicles:has(#radioSUV:checked) label[for="radioSUV"],
#vehicles:has(#radioVan:checked) label[for="radioVan"] {
    background-color: #2D5652;
    color: #E4F2EA;
}

#copyrightBG {
    width: 100%;
    background-color: #97D3CD;
    bottom: 0;
}

.copyrightBox {
    width: 80%;
    margin: auto;
}

.ignoreFloats {
    clear: both;
}

#BTTop {
    font-weight: bold;
    background-color: #97D3CD;
    position: relative;
    padding: 15px;
    width: 20%;
    margin: auto;
    top: -25px;
    text-align: center;
    border: 2px solid #E4F2EA;
   
}

.left {
    float: left;
}

.bold {
    font-weight: bold;
}

.portion3 {
    width: 33%;
    line-height: 1.5
}

#brandPhrase {
    font-size: 30px;
}

.wordSpace {
    word-spacing: 15px;
}

a {
    text-decoration: none;
    color: #0C2C47;
}

a:hover {
    color:#E2A54D
}


.left {
    float: left;
}
.right {
    float: right;
}

.yellow {
    color: #E2A54D;
}

.bigText {
    font-size: calc(100% + 4px);
}

.alignRight {
    text-align: right;
}

#priceBox {
    background-color: #2D5652;
    color: #E4F2EA;
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    line-height: 1.8;
    font-size: calc(100% + 1px);
}

#imageCycle {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#imageCycle img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

#imageCycle img:first-child {
    position: relative;
    opacity: 1;
}

#imageCycle:hover img {
    animation: changeImages 4s infinite;
}

#imageCycle:hover img:nth-child(1) {animation-delay: 0s}
#imageCycle:hover img:nth-child(2) {animation-delay: 1s}
#imageCycle:hover img:nth-child(3) {animation-delay: 2s}
#imageCycle:hover img:nth-child(4) {animation-delay: 3s}

@keyframes changeImages {
    0% {opacity: 0;}
    8% {opacity: 1;}
    25% {opacity: 1;}
    33% {opacity: 0;}
    100% {opacity: 0;}
}

.detailsGridTop {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 25px;
    align-items: start;
    margin-bottom: 30px;
}


.detailsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.detailsBox {
    background-color: #d8cdc5;
    padding: 15px;
    line-height: 2.5;
    border-radius: 5px;
}

.detailsBox h2 {
    margin-top: 0;
    background-color: #EFEAE6;
    padding: 5px;
    text-align: center;
}

.specs {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 15px;
    row-gap: 5px;
    align-items: baseline;
}

.line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: baseline
}

.noTop {
    margin-top: 5px
}

p.space {
    margin-right: 15px;
}

.bigSpace {
    margin-right: 20px;
}