@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Bitcount+Ink:wght@100..900&family=Syne:wght@400..800&family=VT323&display=swap');

* {
  font-family: "VT323", system-ui;
}

:root {
  --creamy: #C0C0C0;
  --worldSize : 5500px;
}

body {
  background: #694023;
  padding: 0;
  margin: 0;

}

.bgold {
  background: #313D4D;
  width: 100%;
  height: 60dvh;
  position: fixed;
  overflow: hidden;
}
.instructions{
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: #fbfbfb;
  font-size: 1.3rem;
  gap: 1rem;
  margin-inline: .2rem;
  z-index: 1;
}



.carInfo{
  display: flex;
  margin-top: 1rem;
}

.ProjectsBanner{
  width: 100px;
  height: 100px;
  /* background-color: #000; */
  background-image: url(img/markers/projectsSign.png);
  background-position: center;
  background-size: cover;
  
  position: fixed;
  top: 70%;
  left: 3%;
}

.ContactsBanner{
  width: 100px;
  height: 100px;
  background-image: url(img/markers/contactSign.png);
  background-position: center;
  background-size: cover;
  
  position: fixed;
  top: 70%;
  right: 15%;
}

.carPic {
  width: 60px;
  height: 60px;
  background-color: #053967;
  border-radius: 50%;
  background-image: url(img/me.png);
  background-position: center;
  background-size: cover;
}

.floor{
  position: fixed;
  background: #efebe8;
  bottom: 0;
  width: 100%;
  height: 38dvh;
  background :linear-gradient(to bottom, #8a5a36 30%, #e17019);
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.touchMove{
  width: max-content;
}

.Mbutton{
  margin: 1rem;
  font-size: 1rem;
  width: 4rem;
  height: 4rem;
  box-shadow: 4px 7px 0 0 black;
  border: 3px solid black;
  touch-action: manipulation;
  user-select: none; 
  -webkit-user-select: none;
}

.touchMove button {
  font-size: 2rem;
}

.pannel p{
padding: 0;
margin: 0;
font-size: 1rem;
margin-left: 1rem;

}

.controlsInfo{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1rem;
}

.world {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--worldSize);
  height: 100%;
  background-image: url(img/bg62.jpg) , linear-gradient(to top ,  rgb(251, 80, 64) 80% ,  rgb(251, 117, 64) 95%);
  background-position: 0px 0px ;
  background-repeat: repeat-x;
}

.car {

  position: absolute;
  bottom: 0;
  left: 10px;
  z-index: 100;
}

.carDial{
  background: var(--creamy);
  padding: .5rem;
  border: 3px solid black;
  box-shadow: 2px 3px 0 0 black;
    animation: bouncing 1s infinite;
  display: none;
}

.sprite {
  --h: 130px;      

  height: var(--h);
  width: calc(var(--h) / 2);
  image-rendering: pixelated;
  background: url(img/me-walk.png) 0 20px / calc(var(--h) * 3) var(--h) no-repeat;
  animation: walk 0.6s steps(6) infinite;
  animation-play-state: paused;
  transition: transform .10s;
}

.sprite.walking {
   animation-play-state: running;
}

@keyframes walk {
  to { background-position-x: calc(var(--h) * -3); }
}

.marker {
  position: absolute;
  bottom: 0;
  width: 350px;
  height: 220px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #111;
  display: grid;
  transition: transform .3s;
  font-family: sans-serif;
  font-size: 13px;
}

@keyframes bouncing {
  0% {
    transform: translateY(0px);
  }

  70% {
    transform: translateY(-1px);
  }

  100% {
    transform: translateY(0px);
  }
}

.marker.near {
  animation: bouncing 1s infinite;
  
}
.contactHouse{
  position: absolute;
  bottom: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* place-items: center; */
  font-family: sans-serif;
  /* font-size: 13px; */
  width: 150px;
  height: 300px;
  background-size: contain;
  top: 40%;
  right: 2%;
  background-image: url(img/markers/contact.png);
}
.screen_bg {
  background: rgba(23, 22, 22, 0.27);
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  perspective: 800px;
}

.screen {
  width: min(520px, 92vw);
  height: max-content;
  background: var(--creamy);
  display: flex;
  flex-direction: column;
  border: 1px solid white;
  box-shadow: 8px 6px 0 0 rgba(5, 4, 4, 0.713);
  padding: 0 0 1rem 0;
  animation: openWin .35s ease-out;

}

@keyframes openWin {
  from { transform: rotateX(-70deg) translateZ(-200px); opacity: 0; }
}

.WinBar {
  width: 100%;
  height: 40px;
  background: linear-gradient(45deg, #053967 30%, #1c74c1 70%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.WinBar button {
  width: 30px;
  height: 80%;
  margin-right: 5px;
  /* padding: 4px; */
  font-size: large;
  background: var(--creamy);
}

.title {
  font-size: 1.6rem;
  padding-inline: 1rem;
  color: var(--creamy);

}

.WinContent {
  padding-inline: 1rem;
  font-size: 1.5rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
}

.skills li {
  border: 1px solid black;
  box-shadow: 2px 4px 0 0 black;
  padding: 4px;
  border-radius: 2px;
  background: #fcfcfcf7;

}

#proLink {
  font-size: 1.3rem;
  padding: 4px 1rem;
  border: 1px solid black;
  box-shadow: 2px 4px 0 0 black;
  margin: 20px;
  text-decoration: none;
  color: #111;
}

#proLink:hover {
  animation: bounce 1s infinite ease-in-out;
}

@keyframes bounce {
  from {
    box-shadow: 2px 4px 0 0 black;
  }

  to {
    box-shadow: 2px 0px 0 0 rgba(231, 224, 224, 0.557);
  }
}


@media (width < 700px) {
  .controlsInfo {
    display: none;
  }

  .world{
    background-position: 0px 98% ;
  }
  .contactHouse{
    top: 50%;
  }
  .ContactsBanner{
    top: 75%;
  }
  .carPic{
    width: 45px;
    height: 45px;
  }
  .pannel p{
    font-size: .8rem;
  }
  .title{
    font-size: 1.2rem;
  }
  .WinContent{
    font-size: 1.1rem;
  }

  .ProjectsBanner{
    top: 76%;
  }
}