@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family:'Poppins',sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
    letter-spacing: 1px;
}

@font-face {
    font-family: 'Tesla Slab';
    src: url('font/TESLA.ttf') format('truetype');
}

:root
{
    --font-color:rgb(76,75,75);
    --font-weight: 600;
}
.teslaLogo {
    font-family: 'Tesla Slab', serif;
    font-size: 20px;
    margin: 1rem 0 0 3.5rem;
    color: white;
    text-decoration: none;
}
.teslaLogo a
{
    color: white;
    text-decoration: none;
}
.navbar
{
    height: 50px;
    width: 100%;
    background-color: none;
    align-items: center;
    position: absolute;
    top: 0;
    display: flex;
}
.nav-center
{
    height: 2rem;
    flex: 8;
}
.rigth-nav
{
    flex: 3;
    margin: 0px;
    display: flex;
}
.menu-list
{
    display: flex;
    list-style: none;
    padding: 10px;
    justify-content: center;
    align-items: center;
}
.nav-list
{
    margin: 0 0.5rem;
}
.nav-list >a
{
    text-decoration: none;
    width: 2rem;
    color:white;
    padding: 6px 7px;
    font-weight: var(--font-weight);
    font-size: 12px;
    font-stretch: expanded;
    letter-spacing: 1px;
}
.nav-list >a:hover
{
    background-color: #e2e5e8;
    border-radius: 3px;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.header {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: top;
}

.header-image {
    display: block;
    -webkit-user-select: none;
    cursor: zoom-in;
    background-color: hsl(0, 0%, 90%);
    transition: background-color 300ms;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: 100%;
    object-fit: cover;
    object-position: top;
}

.model-title {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px; 
    color: white;
    font-weight: 600;
}
.financing-info {
    position: absolute;
    top: 130px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px; 
    color: white;
    font-weight: 600;
}

.financing-info a {
    color: white;
    text-decoration: none; 
    position: relative;
}

.financing-info a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -5px; /* Adjust this value to create space */
    width: 100%;
    height: 2px; /* Thickness of the underline */
    background-color: white; /* Color of the underline */
}


.price-info {
    position: absolute;
    top: 170px; /* Adjust as needed to move the text down */
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: 600;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-stretch: condensed;
}

.power
{
    font-size: 8px;
    font-weight: lighter;
}
.button
{
    display: flex;
    justify-content: center;
    position: absolute;
    top: 520px;
}
.button a
{
    margin: 10px;
    height: 40px;
    width: 20rem;
    border-radius: .5rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn1
{
    background-color:#3e6ae1;
    color: white;
    font-weight: 600;
    font-size: 14px;
}
.btn2
{
    background-color: white;
    color:#393C41;
    font-weight: 600;
    font-size: 14px;
}
.Xprice-info
{
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
    font-weight: 600;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-stretch: condensed;
}
.Xfinancing-info
{
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px; 
    color: white;
    font-weight: 600;
}
.Xfinancing-info a {
    color: white;
    text-decoration: none; 
    position: relative;
}

.Xfinancing-info a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px; 
    background-color: white; 
}
.cybertruck-logo {
    width: 300px; 
    height: auto;
    position: absolute;
    top: 30%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
}
.Last-content
{
    background-color: black;
    color:#d0d1d2;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    padding-top: 40px;
    display: block;
    padding-left: 300px;
    padding-right: 300px;
}
.underline
{
    text-decoration: underline;
    text-underline-offset: 2.5px;
}

footer
{
    background-color: black;
}
footer ul
{
    width: 80%;
    margin: 2 rem auto;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    list-style-type: none;
    padding-left: 25%;
    padding-top: 60px;
    padding-bottom:20px;
}
footer ul li
{
    font-weight: 600;
}

footer ul li a
{
    color: #d0d1d2;
    font-size: 10px;
    text-decoration: none;
}
