body, html {
    height: 100%;
    margin: 0;
  }

  /* Pagination */
  #pagination {
    position: fixed;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    right: 30px;
    list-style: none;
  }

  @media (max-width: 640px) 
{
    #pagination
    {
        display: none;
    }
}

  #pagination li {
    position: relative;
    margin: 20px 0;
    background: rgba(150, 150, 150, 0.85);
    border-radius: 100%;
    width: 8px;
    height: 8px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }

  #pagination li:hover {
    -webkit-transform: scale(1.5);
            transform: scale(1.5);
  }

  #pagination a {
    position: absolute;
    text-decoration: none;
    left: 0;
    top: 0;
    color: inherit;
    width: 100%;
    height: 100%;
    color: white;
  }

  body.page-1 #pagination li:nth-of-type(1), body.page-2 #pagination li:nth-of-type(2), body.page-3 #pagination li:nth-of-type(3), body.page-4 #pagination li:nth-of-type(4), body.page-5 #pagination li:nth-of-type(5) {
    -webkit-transform: scale(2);
            transform: scale(2);
  }

  /* Socials */
  .socials{
    position: fixed;
    top: 5%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    right: 30px;
    list-style: none;
  }

  .socials i {
    font-size: 30px;
    margin-left: 20px;
  }

  .socials a {

    color: rgba(68, 68, 68, 0.75);
  }

  @media (max-width: 992px) 
{
    .socials
    {
        display: none;
    }
}

  /* Background images */
 
  .bgimg-1, .bgimg-2 {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  
  }
  
  .bgimg-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)), url("https://res.cloudinary.com/dcgy2ao4n/image/upload/v1618840424/KoljaW/Section%20images/2400-1600_frontpage_uc93e3.jpg");
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
  }
  
  .bgimg-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url("https://res.cloudinary.com/dcgy2ao4n/image/upload/c_scale,q_80,w_2500/v1623601989/KoljaW/Section%20images/Over_mij_desktop_zepsur.jpg");
    height: 40vh;
    max-width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: scroll;
  }

    /* Turn off parallax scrolling for tablets and phones */
    @media only screen and (max-device-width: 1024px) {
      .bgimg-1, .bgimg-2, .bgimg-3 {
        background-attachment: scroll;
      }
    }

  /* headers */

  h3 {
    letter-spacing: 5px;
    text-transform: uppercase;
    font: 20px "Lato", sans-serif;
    color: #111;
  }

  h6{
    font-weight: 200;
    font-size: 20px;
    color: white;
  }

  /* Section specific */
  /* Landing section */

  #homepageheader {
    margin: 5% 0 0 5%;
    
  }

  #logo {
    width: 30rem;
  }

  @media only screen and (min-width: 1200px) {
    #logo {
      max-width: 700px;
  }

}


  
  button.frontpage-btn {
    outline: 0;
    width: 150px;
    display: inline-block;
    padding: 10px 25px;
    color: white;
    background-color: transparent;
    text-align: left;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 5px;
    text-align: center;
  }

  button.frontpage-btn a {
    color: white;
  }
  
  button.frontpage-btn:hover {
    background-color: #555;
    color: white;
  }

  /* Porfolio section */

  .card{
    margin: 0;
  }

  #bottom-row{
  padding-bottom: 6vw;
  }

  #Portfolio img{
    display: block;
    width: 100%;
    height: auto;
  }
  
  .overlay {
    position: absolute;
    margin-left: 10px;
    margin-right: 10px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: auto;
    opacity: 0;
    transition: .5s ease;
    background-color: hsla(0, 0%, 0%, 0.4);
    
  }
  
  .text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 18px; font-weight: 600; font-family: 'Roboto Condensed', sans-serif
  }

  #Alfa, #V40, #Lancia, #S60, #XC40, #XC90, #S60-red, #V60, #Polestar2{
    display: inline-block;
    position: relative;
    margin-top: 10px;
  }

  #Polestar2:hover .overlay, #Alfa:hover .overlay, #V40:hover .overlay, #Lancia:hover .overlay, #S60:hover .overlay, #XC40:hover .overlay, #XC90:hover .overlay, #S60-red:hover .overlay, #V60:hover .overlay{ 
    opacity: 1;
  }

/* Main section slides*/

  .main section:nth-child(1) {
    background-color: #1b1b1b;
  }
  .main section:nth-child(2) {
    background-color: #fffef8;
    height: fit-content;
  }
  .main section:nth-child(3) {
    background-color: #798284;
  }
  .main section:nth-child(4) {
    background-color: #fffef8;
  } 
  
  
  .main section h1 {
    font-size: 38px;
    color: #fff;
    margin: 0;
    padding-top: 3vw !important;
  }
  
  /* Form section */

  #contactheader{
    color: white;
    font-size:xx-large;
  }

  @media only screen and (max-width: 1200px) {
    #contactheader {
      color: black;
    }
  }

  input[type=text], select{
    width: calc(100% - 12px) !important;
    padding-left: 12px !important;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
  }

  textarea{
    width: 100% ;
    padding: 12px;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
  }

input[type=submit] {
  background-color: transparent;
  border-color: white;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ccc;
}

.form{
  margin: 0;
  position: relative;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  margin-left: auto;
  margin-right: auto;
}

form label{
  color: white;
}

.contactinfo i {
  display: inline-block;
  color: white;
  margin-right: 10px;
  margin-bottom: 10px;
  
}

#nmbrtext{
  margin-left: 10px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: medium !important; 
  font-weight: 100;
  vertical-align:middle;
}

#emailtext{
  margin-left: 10px;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  font-size: medium !important; 
  vertical-align:middle;
}

#about{
  height: fit-content;
}

@media only screen and (max-width: 1200px) {
  input[type=submit] {
    
    border-color: grey;
    
  }

  form label{
    color: grey;
  }
}

/*About section*/

.about{
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 50px 0 50px
}

@media only screen and (max-width: 769px) {
  #homepageheader {
    margin: 10vh auto 0 auto;
    /*background-color: #79828479;*/
    border-radius: 5px;
    padding: 10px;
    width: fit-content;
    height: 100vh;
  }

  h6{
    margin: 0;
  }

  button.frontpage-btn {
    bottom: 100px;
    left: 10vw;
  }


  .logoOneline{
    background-color: rgba(85, 109, 112, 0.4);
    padding: 10px;
    border-radius: 4px;
  }

  .btns{
    position: absolute;
    bottom: 150px;
    margin: 0 auto;
    left: 10px;
    right: 10px;
  }

  .cheader{
    text-align: center;
    height: 100vh;
  }

  #logo{
    width: 15rem;
  }

  .vertcntr{
    margin: 0;
position: relative;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(35%);
margin-left: auto;
margin-right: auto;
  }

  .details{
    height: 400px;
    position: absolute;
  }

  #about{
    height: fit-content;
  }

  .form{
    transform: translateY(0);
  }

  #socialdetails{
    margin-bottom: 100px;
  }

}

#contactdetails{
  height: 500px;
}

h3{
  color: white;
  font-size: 30px; 
  padding-top: 15vh; 
  padding-left: 10%;
}

p{
  font-size: 16px;
}


@media only screen and (max-width: 1200px) {

  .bgimg-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)), url("https://res.cloudinary.com/dcgy2ao4n/image/upload/v1623755549/KoljaW/Section%20images/2400-1600_frontpage_gvsh5w.jpg");
    background-position: center;
  }

  .bgimg-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url("https://res.cloudinary.com/dcgy2ao4n/image/upload/c_scale,w_1200/v1623602190/KoljaW/Section%20images/Over_mij_Tel_hpcib0.jpg");
  }
  
  .main section h1 {
    padding-top: 5vw !important;
  }

  h3{
    padding-left: 0;
    text-align: center;
  }

  .details{
    height: 400px;
    position: absolute;
  }

  #about{
    margin-top: 80px;
    height: fit-content;
  }

  .form{
    transform: translateY(0);
  }

  #socialdetails {
    height: 200px;
    margin-bottom: 90px;
  }
  #contactdetails{
    height: 200px;
  }

  #contactform{
    height: fit-content;
    margin-bottom: 40px;
  }

  #contactcontainer{
    height: fit-content;
  }

}


 input[type=text]:focus {
  border-bottom: 1px solid rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.5) !important;
}
