@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900;1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    color: whitesmoke;
    user-select: none;
}

.material-symbols-rounded {
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
    user-select: none;
    cursor: pointer;
  }

::-webkit-scrollbar {
    display: none;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    background-color: #1d1e24;
    display: flex;
    flex-direction: row;
}

nav {
    height: 100%;
    width: 160px;
    background-color: #24252b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 45px;
}

nav a {
    background-color: transparent;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    border-radius: 10px;
    transition: 0.1s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

nav a:active {
    transform: scale(90%);
}

#nav-icons {
    font-size: 30px;
    color: whitesmoke;
}

.page {
    background-color: #1d1e24;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 0.4fr;
    grid-template-rows: 20% 38% 38%;
    gap: 20px;
    overflow: hidden;
}

.header-categories {
    width: 100%;
    height: 100%;
    grid-area: 1 / 1 / span 1 / span 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.categories {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
    overflow-x: scroll;
    border-radius: 20px;
}

.header-categories h1 {
    font-size: 58px;
    font-weight: 700;
}

.header-categories a {
    background-color: #33343a;
    padding: 15px 90px;
    font-size: 22px;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    min-width: 260px;
    transition: 0.2s ease;
}

.header-categories a:hover {
    background-color: #e4ff31;
    color: black;
}

.header-categories a:active {
    background-color: #555f12;
    color: black;
}

.header-categories span {
    background-color: whitesmoke;
    color: #1d1e24;
    padding: 14px;
    font-size: 30px;
    font-weight: 800;
    border-radius: 50px;
    transition: 0.2s ease-in-out;
}

.header-categories span:hover {
    background-color: lightgrey;
    transform: rotate(90deg);
}

.header-categories span:active {
    background-color: grey;
}

.selected-sidebar {
    background-color: #24252b;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    grid-area: 1 / 4 / span 3 / span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.banner {
    background-color: #24252b;
    background-image: url('https://mir-s3-cdn-cf.behance.net/project_modules/fs/1e3afa130021239.61779406008e2.jpg');
    background-repeat: no-repeat;
    background-size: 110%;
    background-position-x: 0%;
    background-position-y: 55%;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    grid-area: 2 / 1 / span 1 / span 3;
    overflow: hidden;
}

.banner .content {
    background-image: linear-gradient(90deg,#24252beb,#24252bc9,#24252ba8,#24252b7c,#24252b00,#24252b00);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
}

.banner .content h1 {
    font-size: 38px;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner .content h2 {
    font-size: 21px;
    font-weight: 500;
}

.items {
    background-color: #24252b;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.2s ease-in-out;
}

.items:hover {
    transform: scale(102%);
    box-shadow: 0px 0px 5px 1px #33343a;
}

.items .car-img1 {
    background-image: url(https://tdc-prod.ams3.digitaloceanspaces.com/40ebaa5e-ccd5-4311-a0a1-d2a6a2c191e4.jpg);
    background-size: 150%;
    background-position-x: 0%;
    background-position-y: 50%;
    background-repeat: no-repeat;
    width: 100%;
    height: 65%;
    border: 3px solid rgb(54, 54, 54);
    border-radius: 20px;
    position: relative;
    transition: 0.4s ease-in-out;
}

.items .car-img1:hover {
    background-size: 105%;
    background-position-x: 50%;
    background-position-y: 50%;
}

.items .add-to-fav {
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    position: absolute;
    top: 8px;
    left: 8px;
}

/*start of add to fav*/
/*1*/
[id="heart1"] {
    position: absolute;
    left: -100vw;
  }
  
  [for="heart1"] {
    color: whitesmoke;
    cursor: pointer;
    font-size: 23px;
    align-self: center;  
    transition: color 0.2s ease-in-out;
  }
  
  [for="heart1"]:hover {
    color: lightgrey;
  }
  
  [for="heart1"]::selection {
    color: none;
    background: transparent;
  }
  
  [for="heart1"]::moz-selection {
    color: none;
    background: transparent;
  }
  
  [id="heart1"]:checked + label {
    color: #ff7576;
    will-change: font-size;
    animation: heart 0.3s cubic-bezier(.17, .89, .32, 1.49);
  }

  @keyframes heart {0%, 17.5% {font-size: 0;}}

/*2*/
[id="heart2"] {
    position: absolute;
    left: -100vw;
  }
  
  [for="heart2"] {
    color: whitesmoke;
    cursor: pointer;
    font-size: 23px;
    align-self: center;  
    transition: color 0.2s ease-in-out;
  }
  
  [for="heart2"]:hover {
    color: lightgrey;
  }
  
  [for="heart2"]::selection {
    color: none;
    background: transparent;
  }
  
  [for="heart2"]::moz-selection {
    color: none;
    background: transparent;
  }
  
  [id="heart2"]:checked + label {
    color: #ff7576;
    will-change: font-size;
    animation: heart 0.3s cubic-bezier(.17, .89, .32, 1.49);
  }

/*3*/
[id="heart3"] {
    position: absolute;
    left: -100vw;
  }
  
  [for="heart3"] {
    color: whitesmoke;
    cursor: pointer;
    font-size: 23px;
    align-self: center;  
    transition: color 0.2s ease-in-out;
  }
  
  [for="heart3"]:hover {
    color: lightgrey;
  }
  
  [for="heart3"]::selection {
    color: none;
    background: transparent;
  }
  
  [for="heart3"]::moz-selection {
    color: none;
    background: transparent;
  }
  
  [id="heart3"]:checked + label {
    color: #ff7576;
    will-change: font-size;
    animation: heart 0.3s cubic-bezier(.17, .89, .32, 1.49);
  }
/*end of add to fav*/

.info {
    display: flex;
    flex-direction: column;
    padding: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.car-name {
    font-size: 24px;
    font-weight: 700;
    color: whitesmoke;
    width: 100%;
    height: fit-content;
}

.type-rating {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.type-rating h2 {
    font-size: 20px;
    font-weight: 700;
    color: #79a3b2;
}

.rating {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items:flex-end;
    gap: 5px;
}

.rating span {
    color: #fea828;
}

.rating p {
    font-size: 16px;
    color: whitesmoke;
    font-weight: 600;
}

.items .car-img2 {
    background-image: url(https://www.tukas.cz/wp-content/uploads/2022/10/default-42.jpg);
    background-size: 150%;
    background-position-x: 0%;
    background-position-y: 50%;
    background-repeat: no-repeat;
    width: 100%;
    height: 65%;
    border: 3px solid rgb(54, 54, 54);
    border-radius: 20px;
    position: relative;
    transition: 0.4s ease-in-out;
}

.items .car-img2:hover {
    background-size: 105%;
    background-position-x: 50%;
    background-position-y: 50%;
}

.items .car-img3 {
    background-image: url(https://cas.volvocars.com/image/dynamic/MY24_2317/246/exterior-v1/RA/72300/RA0000/R18C/TC05/_/_/TP05/_/JT02/GR02/T102/TJ02/NP02/TM04/JG02/_/EV02/JB0C/T21B/LF05/_/VP09/_/FH02/T006/_/_/default.jpg?market=cz&client=gox-graph%7Cpdps&angle=4&w=1920&bg=descriptive-studio);
    background-size: 150%;
    background-position-x: 0%;
    background-position-y: 50%;
    background-repeat: no-repeat;
    width: 100%;
    height: 65%;
    border: 3px solid rgb(54, 54, 54);
    border-radius: 20px;
    position: relative;
    transition: 0.4s ease-in-out;
}

.items .car-img3:hover {
    background-size: 105%;
    background-position-x: 50%;
    background-position-y: 50%;
}

.car-img-sidebar {
    background-image: url(https://cdn.motor1.com/images/mgl/OVyNA/s1/tesla-model-3-18-aero-wheels-design-studio-u.s.---october-2020.jpg);
    background-size: 150%;
    background-position-x: 30%;
    background-position-y: 50%;
    background-repeat: no-repeat;
    width: 100%;
    height: 35%;
    border: 3px solid rgb(54, 54, 54);
    border-radius: 20px;
    position: relative;
    transition: 0.4s ease-in-out;
}

.car-img-sidebar:hover {
    background-size: 110%;
    background-position-x: 50%;
    background-position-y: 50%;
}

.details {
    width: 100%;
    height: 65%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.details h1 {
    font-size: 50px;
    font-weight: 700;
    color: whitesmoke;
}

.details h2 {
    font-size: 30px;
    font-weight: 600;
    color: #79a3b2;
}

.specs {
    width: 100%;
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.specs .tag {
    background-color: #4f5053;
    width: 100%;
    height: 100px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

.specs .tag h3 {
    font-size: 24px;
    font-weight: 600;
    color: whitesmoke;
}

.specs .tag p {
    font-size: 16px;
    font-weight: 400;
    color: lightgrey;
}

.details .text {
    margin-top: 22px;
    font-size: 20px;
    font-weight: 500;
    line-height: 180%;
}

.details .price-buy {
    width: 100%;
    height: fit-content;
    margin-top: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.details .price-buy .price {
    width: fit-content;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.details .price-buy .price p {
    font-size: 22px;
    color: lightgrey;
    font-weight: 600;
}

.details .price-buy .price h1 {
    font-size: 36px;
    color: whitesmoke;
    font-weight: 700;
}

.details .price-buy a {
    background-color: #e4ff31;
    color: black;
    font-weight: 600;
    font-size: 28px;
    border-radius: 100px;
    height: 90%;
    width: 250px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.details .price-buy a:hover {
    background-color: #738119;
    width: 260px;
}