* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  height: auto;
  font-family:'Segoe UI';
  background-color: #f5f5f5; 
}

#buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

#buttons > a {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 10px;
  color: #f5f5f5;
  background-color: #191919;
  font-size: 2rem;
  padding-bottom: 25px;
  border-radius: 10px;
  box-shadow: 4px 4px 10px rgb(59, 59, 59);
  font-weight: bold;
}

#buttons > a:hover {
  box-shadow: 4px 4px 50px rgb(59, 59, 59);
}

#buttons > a > img {
  height: 200px;
  width: 300px;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
}

.backgroundImage {
  background-image: url(../images/car_dealer.avif);
  background-size: cover;
  background-position: center top;
  width: 100%;
  height: 100%; 
}


a:link {
  color: inherit;
  text-decoration: inherit;
}

a:visited {
  color: inherit;
  text-decoration: inherit;
}

a:hover {
  color: inherit;
  text-decoration: inherit;
}

a:active {
  color: inherit;
  text-decoration: inherit;
}

#header {
  width: 100vw;
  height: auto;
  background-color: #191919;
  color: white;
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  padding: 25px 10px;
}

#logoTitle {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  white-space: nowrap;
}

#menu {
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-items: flex-end;
}

.menuItem {
  font-size: 16px;
  margin: 20px;
}

.menuItem:hover {
  color: #6675ff;
}

.flag {
  margin: 10px;
  margin-right: 20px;
  height: 40px;
  width: 64px;
  border-radius: 10px;
  outline: 3px solid white;
}

#logo {
  width: 70px;
  margin-left: 25px;
}

#title {
  font-size: 32px;
  font-weight: bold;
  margin-left: 15px;
}

.main {
  width: 100vw;
  height: 80vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 64px;
  overflow: hidden;
}

.main > div {
  width: auto;
  height: auto;
}

.main > a {
  margin: auto;
}

.background {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  z-index: -1;
}

.backgroundCover {
  background-color: rgba(0, 0, 0, 0.2);
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

#sloganTitle {
  height: 35vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin: 5vh 0px 0px 5vw;
}

#slogan {
  margin: 5vh 0px 0px 5vw;
}

.sloganStyling {
  font-weight: bold;
  color: #7A87FF;
}

.contact {
  color: #000000;
}

#rentButton {
  border-radius: 25px;
  background-color: #7A87FF;
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin: auto;
  padding: 15px;
}

#rentButton:hover {
  cursor: pointer;
  background-color: #6675ff;
}

.locations {
    margin: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
}

#locationmenu {
    display: flex;
    flex-direction: row;
    justify-content: right;
    margin: auto;
}

.footer {
  min-height: 20vh;
  width: 100vw;
  background-color: #f5f5f5;
  color: black;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;
  font-size: 16px;
  padding: 15px 0px 15px 0px;
  line-height: 1.5em;
  position: absolute;
  top: 80vh;
}

#productsFooter {
  top: auto;
}

.footer > div {
  display: flex;
  flex-direction: column;
  line-height: 2em;
  margin: 20px;
}

.icons {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-top: 10px;
}

#twitter {
  width: 50px;
  margin-left: 20px;
}

#instagram {
  width: 50px;
  margin-left: 20px;
}

#facebook {
  width: 50px;
}

.productsMain {
  width: 100vw;
  min-height: 100vh;
  height: auto;
  position: relative;
}

.productsMainFlex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 15vh;
}

.productsMainFlexCard {
  width: 500px;
  height: 550px;
  margin: 50px;
  border-radius: 25px;
  box-shadow: 5px 5px 10px gray;
  display: flex;
  flex-direction: column;
}

.staffCard {
  width: 500px;
  height: 45%;
  margin: 50px;
  border-radius: 25px;
  box-shadow: 5px 5px 10px gray;
  display: flex;
  flex-direction: column;
}
.cardText {
  width: 100%;
  height: 25%;
  border-radius: 0px 0px 25px 25px;
  text-align: start;
  padding: 25px;
}

.carName {
  font-size: 32px;
}

.carType {
  font-size: 16px;
}

.carCost {
  font-size: 32px;
}

.productButton {
  border-radius: 15px;
  border: 2px solid #7A87FF;
  color: #7A87FF;
  text-align: center;
  padding: 10px;
}

.productButton:hover {
  background-color: #7A87FF;
  color: #ffffff;
}

.mailAdress {
  margin-bottom: 25px;
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cardImage {
  background-image: url(../images/svg/missingProduct.svg);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 50%;
  border-radius: 25px 25px 0px 0px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.cardImage img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.cardImage2 {
  width: 100%;
  height: 80%;
  border-radius: 25px 25px 0px 0px;
  background-repeat: no-repeat;
  background-position: center 0px;
}

.cardImage2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 25px 25px 0px 0px;
}

.cardText2 {
  width: 100%;
  height: 25%;
  border-radius: 0px 0px 25px 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: start;
}

#anna {
  background-image: url(../images/personal/anna_pettersson.jpg);
  background-size: cover;
}

#fredrik { 
  background-image: url(../images/personal/fredrik_ortqvist.jpg);
  background-size: cover;
}

#peter {
  background-image: url(../images/personal/peter_johansson.jpg);
  background-size: cover;
}

/* Stuff until @media are yoinked from https://codepen.io/alvarotrigo/pen/wvrzPWL, with changes */

nav {
  display: none;
}

.container {
  max-width: 1050px;
  width: 60px;
  margin: auto;
  position: absolute;
  left: 0;
}

.navbar {
  width: 100%;
}

.nav-container {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
}

.navbar .menu-items {
  display: flex;
}

.navbar .nav-container li {
  list-style: none;
}

.navbar .nav-container a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.7rem;
}

.navbar .nav-container a:hover{
  font-weight: bold;
  text-decoration: underline;
}

.nav-container .checkbox {
  position: absolute;
  display: block;
  height: 32px;
  width: 32px;
  top: 20px;
  left: 20px;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.nav-container .hamburger-lines {
  display: block;
  height: 26px;
  width: 32px;
  position: absolute;
  top: 17px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-container .hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #0e2431;
}

.nav-container .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.nav-container .hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.nav-container .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

.navbar .menu-items {
  position: absolute;
  top: 0;
  left: 0;
  padding-top: 64px;
  background-color: #7A87FF;
  width: 100vw;
  height: 100vh;
  transform: translate(-150%);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
  text-align: left;
}

.navbar .menu-items li {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translate(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.nav-container input[type="checkbox"]:checked ~ .logo{
  display: none;
}

@media(max-width: 700px){
  .footer {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: fit-content;
  }

  .main {
    font-size: xx-large;
  }
  
  .productsMainFlex {
    padding-top: 5vh;
  }

  #header {
    justify-content: flex-start;
  }

  #menu {
    display: none;
  }

  #title {
    font-size: medium;
  }

  #logo {
    margin-left: 0px;
    width: 42px;
  }

  #slogan {
    margin-top: 10px;
    
  }

  nav {
    display: inline-block;
  }

  .icons {
    justify-content: center;
  }

  #rentButton {
    font-size: x-large;
    border-radius: 15px;
    padding: 10px;
  }

  .flag {
    margin: 0px;
  }
  .carCost {
    font-size: 16px;
  }
}