html, body {
  margin:0;
  padding:0;
  height:100%;
  background-color: white;
 }

/*********************
* Navigation topbar: *
**********************/

 .topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  transition: 0.3s;
  z-index: 10;
}

.logo {
  font-size: 35px;
  margin-right: auto;
  margin-left: 2%;
  height: 100%;
  position: relative;
}

.logo a {
  display: flex;
  color: #f2f2f2;
  text-decoration: none;
  padding: 10px 14px;
  font-family: Impact, sans-serif;
  font-weight: 500;
  text-align: center;
  transition: 0.3s;
  text-shadow: 2px 2px #272323;
}

.links {
  margin-left: auto;
  margin-right: 2%;
}

.links a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 12px 25px;
  text-decoration: none;
  font-size: 21px;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  transition: 0.5s;
  text-shadow: 2px 2px #272323;
}

.links a.active {
  outline: 1px solid #f2f2f2;
}

.topnav .navIcon {
  display: none;
  color: white;
}

/******************************
* The banner wrap at the top: *
*******************************/

#wrap-construction {
  min-height: 20%;
  background-position: center 43%;
}

.banner-wrap {
  min-height: 80%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("imgs/banner_new.jpeg");
  display: flex;
}

.banner-wrap h1 {
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 4%;
  color: #cccaca;
  max-width: 30%;
  font-family: 'Courier New', monospace;
  font-weight: 400;
  font-size: x-large;
  background-color: #2d2929ac;
  border-radius: 25px;
  padding-left: 25px;
}

/**********
* Footer: *
***********/

.footer {
  height: 8%;
  background-color: #f5f5f5;
  display: flex;
}

.footer-content {
  width: 100%;
  display: flex;
  align-content: center;
  align-items: center;
  vertical-align: center;
}

.footer-content p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.copyright {
  margin-left: 10%;
  width: 50%;
  text-align: left;
}

.social-links {
  display: flex;
  width: 50%;
  margin-right: 10%;
  text-decoration: none;
}

.social-links a i {
  min-height: 5%;
  height: max-content;
  padding: 10px;
  font-size: x-large ;
}

.social-links a {
  color: black;
  :visited {
    text-decoration: none;
    color: black;
  }
}

.centered-links {
  display: flex;
  margin-left: auto;
}

/*****************
* Body sections: *
******************/

#construction {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6% 6%;
}

#introduction, #projects {
  background-color: #F5F3F1;
}

#introduction, #experience, #contact, #projects {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6% 6%;
}

.container {
  width: 100%;
  height: 100%;
  align-items : center;
  align-content: center;
  vertical-align: center;
  text-align: center;
}

.left1, .left2, .right1, .right2 {
  height: 100%;
  margin-left: 0.5%;
  margin-right: 0.5%;
  vertical-align: top;
}

#intro, #exp {
  border-radius: 25px;
}

.header1 {
  margin-top: 8%;
  padding-left: 2%;
  color: #a48f7a;
  font-family: Impact, sans-serif;
  font-size: medium;
  text-transform: uppercase;
  text-align: left;
}

.header2 {
  margin-top: 10%;
  padding-left: 2%;
  color: #272323;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: x-large;
  text-align: left;
}

.text {
  margin-top: 8%;
  padding-left: 2%;
  color: #393434;
  font-family: 'Birdseye', sans-serif;
  line-height: 1.25;
  font-weight: 500;
  text-align: left;
}

#exp-h2 {
  margin-top: 0;
}

/***********
* Buttons: *
************/

.button-wrapper {
  display: flex;
  justify-content: center;
  text-align: center;
}

.button {
  display: flex;
  justify-content: center;
  width: fit-content;
  height: fit-content;
}

.button a {
  display: inline-block;
  color: white;
  background-color: #393434;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: smaller;
  white-space: nowrap;
  padding: 10%;
}

#button-about {
  margin-top: 4%;
}

#button-exp {
  margin-top: 6%;
}

#button-projects {
  margin-top: 1%;
}

#button-home {
  padding-top: 5%;
}

/************
* Carousel: *
*************/

#projects * {
  box-sizing: border-box;
}

#carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'DM Sans', sans-serif;
  transition: background .4s ease-in;
  height: 100%;
  width: 100%;
}

#carousel .header2, #contact .header2 {
  margin: 0;
  margin-bottom: 2%;
  padding: 0;
}

input[type=radio] {
  display: none;
}

.card {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform .4s ease;
  cursor: pointer;
}

.projects-container {
  width: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.cards {
  width: 100%;
  height: 100%;
  margin-bottom: 20px;
}

.card-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

#item-1:checked ~ .cards #project-3, #item-2:checked ~ .cards #project-1, #item-3:checked ~ .cards #project-2 {
  transform: translatex(-40%) scale(.8);
  opacity: .4;
  z-index: 0;
}

#item-1:checked ~ .cards #project-2, #item-2:checked ~ .cards #project-3, #item-3:checked ~ .cards #project-1 {
  transform: translatex(40%) scale(.8);
  opacity: .4;
  z-index: 0;
}

#item-1:checked ~ .cards #project-1, #item-2:checked ~ .cards #project-2, #item-3:checked ~ .cards #project-3 {
  transform: translatex(0) scale(1);
  opacity: 1;
  z-index: 1;
  
  .card-img {
    box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
  }
}

#tda {
  background-image: url(imgs/top-down-adventurer.png);
}

#ms {
  background-image: url(imgs/minesweeper.jpg);
}

#pp {
  background-image: url(imgs/portal-platformer.png);
}

.info {
  z-index: 2;
  background-color: #393434d8;
  border-radius: 10px;
  padding: 5px 10px;
  text-align: center;
  color: white;
  right: 10px;
  bottom: 10px;
}

.header3 {
  font-size: large;
  font-weight: 800;
  color: #dea111;
  margin-bottom: 3px;
}

.description {
  font-size: small;
  font-style: oblique;
}

#h2-contact {
  display: flex;
  justify-content: center;
}

/*******************
* Contact section: *
********************/

.contacts {
  display: flex;
  flex-direction: row;
  justify-content: center;
  height: 80%;
}

.contacts a {
  margin: 0;
  width: 25%;
  text-decoration: none;
  margin: 0 2%;
  color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  vertical-align: middle;
  height: 100%;
  width: 100%;
  background-color: #393434;
  border-radius: 15px;
}

#contact .header2 {
  margin-bottom: 1%;
}

#contact .text {
  margin: 0;
  margin-bottom: 2%;
  padding: 0;
  text-align: center;
}

.icon {
  margin-top: 8%;
  display: flex;
}

.icon i {
  transition: transform 0.5s;
}

.icon-descr {
  margin-top: 7%;
  margin-left: 10%;
  margin-right: 10%;
  transition: transform 0.6s;
  font-family: 'Courier New', monospace;
  font-weight: 300;
  transform: scale(0);
}

.contact-item:hover {
  .icon-descr {
    transform: scale(1);
  }
  .icon i {
    transform: scale(1.3);
  }
}

/********************
* Phone resolution: *
*********************/

@media screen and (max-width: 850px) {
  /* Navigation topbar: */
  .topnav {
    flex-wrap: wrap;
  }
  .topnav a.navIcon {
    float: right;
    display: block;
  }
  .links {
    display: none;
    margin: 0 0;
  }
  .links a {
    width: 20%;
    margin-right: 40%;
    margin-left: 35%;
  }

  /* The banner wrap at the top: */
  .banner-wrap h1 {
    font-size: 20px;
    max-width: 70%;
    margin-top: auto;
    margin-bottom: 15%;
  }

  /* Body sections: */
  .left1, .left2, .right1, .right2 {
    width: 100%;
    display: block;
    max-height: 1%;
  }
  #intro {
    width: 45%;
    height: 45%;
    object-fit: cover;
  }

  /* Carousel: */
  .cards {
    position: relative;
  }
  .card {
    width: 100%;
    max-width: 70%;
    height: 100%;
  }
  .projects-container {
    height: 250px;
    margin-top: 20px;
  }

  /* Experience section: */
  #exp {
    width: 60%;
    height: 45%;
    object-fit: cover;
    margin-top: 3%;
  }

  /* Contact section: */
  .contacts a {
    height: 100%;
  }
  .icon i {
    font-size: 30pt;
  }
  .icon-descr {
    font-size: 0;
  }
  
}

@media screen and (min-width:850px) {
    /* Navigation topbar: */
  .logo a:hover {
      color: #b4b0b0;
  }
  .links a:hover {
    background-color: #b4b0b04c;
  }
  .links {
    display: block;
    margin-left: auto;
    margin-right: 2%;
  }

  /* Body sections: */
  .left1, .right2 {
    width: 38%;
    display: inline-block;
  }
  .left2, .right1 {
    width: 58%;
    display: inline-block;
  }
  #introduction, #experience, #projects, #contact {
    height: 60%;
  }
  #intro {
    height: auto;
    width: 62%;
    margin-left: 30%;
  }

  /* Carousel: */
  .cards {
    position: relative;
  }
  .info {
    position: absolute;
  }
  .card {
  width: 60%;
  max-width: 60%;
  height: 100%;
  }
  .projects-container {
    height: 100%;
  }

  /* Experience section: */
  #photo-exp {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    height: 100%;
    width: 100%;
  }
  #exp {
    height: auto;
    width: 100%;
  } 
  #exp-left {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Contact section: */
  .contacts a {
    height: 85%;
  }
  .icon i {
    font-size: 50pt;
  }
  .icon-descr {
    font-size: smaller;
  }
}