html{
  height: 100%;
  overflow: hidden;
}

p, a {
 font-family: Kite One, Arial;
 color: white;
 font-weight: 550;
 font-size: 4vh;
 text-shadow: 1.5px 1px 2px black;
 text-decoration: none;
}

body {
  height: 100%;
  width: 100%;
  background-color: rgb(136, 191, 241);
  margin: 0%;
  opacity: 100%;
}
#box {
  height: 100%;
  width: 100%;
  display:grid;
  grid-template-columns: 10% 19% 40% 41%;
  grid-template-rows: 100px 40px 1fr 1fr;

}

#background-mobile {
  background-image: none;
  z-index: -3;
}

#pc-div {
  position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -2;
      overflow: hidden;
}

#background-pc {
  position: absolute;
      top: 50%;
      left: 50%;
      min-width: 100%;
      min-height: 100%;
      width: auto;
      height: auto;
      transform: translate(-50%, -50%);
      object-fit: cover;
}

.nav-bar {
  grid-row: 1;
  grid-column: 1/4;
  width: 100vw;
  height: 100px;
  background-color: rgba(18, 71, 131);
  display:flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
  opacity: 95%;
  position: fixed;
}

.projects {
  margin-right: 5vw;
  cursor: pointer;
}

.contacts {
  margin-right: 5vw;
  margin-left:5vw;
  cursor: pointer;
}

.about-me {
  margin-left: 5vw;
  cursor: pointer;
}

.projects, .contacts, .about-me {
padding-left: 20px;
padding-right: 20px;
transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
border-radius: 50px;
}


.projects:hover, .contacts:hover, .about-me:hover {
color:rgb(122, 122, 250);
background-color:rgb(255, 255, 255);
border-radius: 50px;
transform: scale(1.1);
}

.middle-text {
grid-row: 3/4;
grid-column: 3/4;
align-items: center;
z-index: 1;
user-select: none;
}

.my {
font-size: 6vh;
margin-left: 28px;
margin-bottom: -60px;
}

.portfolio-text {
font-size: 6vh;
margin-left: 30px;
}

.name {
font-size: 6vh;
margin-top: -6vh;
}

.surname {
font-size: 6vh;
margin-top: -7vh;
margin-left: -4px;
}

@media (max-width: 600px) {
body {
  
  #background-pc {

    opacity: 0%;
  }
  #background-mobile {
  grid-row: 1/3;
  grid-column: 1/5;
  margin: 0%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
 }

  #box{
  height: 100%;
  width: 100%;
  display:grid;
  grid-template-columns: 20% 6% 20% 54%;
  grid-template-rows: 100px 1fr 1fr 1fr 1fr;
}
.projects, .contacts, .about-me {
  margin: 0;
  font-size: 5vw;
}
  }
}
