body, html {
  overflow-x: hidden;
  margin: 0px;
  padding: 0px;
}

* {
  box-sizing: border-box;
}

.mode-toggle {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 7vh;
  height: 7vh;


  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M6 .278a.77.77 0 0 1 .08.858 7.2 7.2 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277q.792-.001 1.533-.16a.79.79 0 0 1 .81.316.73.73 0 0 1-.031.893A8.35 8.35 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.75.75 0 0 1 6 .278M4.858 1.311A7.27 7.27 0 0 0 1.025 7.71c0 4.02 3.279 7.276 7.319 7.276a7.32 7.32 0 0 0 5.205-2.162q-.506.063-1.029.063c-4.61 0-8.343-3.714-8.343-8.29 0-1.167.242-2.278.681-3.286'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.mode-toggle.dark {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 7vh;
  height: 7vh;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0m9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}


.light {
  background-color: #ffffff;
  color: #000000;
}

.dark {
  background-color: #120631;
  color: #ffffff;
}

.designs-div {
  height:100px;
  background-color:rgb(255, 255, 255);
  font-size:36px;
}

.designs {
  font-family: Pixelify Sans, Arial;
  font-weight: 400;
  font-size: 7.5vw;
  text-align: right;

  margin: 20vh 5vh 5vh 0;
}


.designs-div.dark {
  height:100px;
  background-color:#120631;
  color: white;
  font-size:36px;
}

.welcome-text {
  position: absolute;

  text-align: left;
  font-family: pixelify sans, Arial;
  font-weight: 550;
  font-size: 6vw;

  max-width: 45vw;
  top: 30%;
  right: 7%; 
}

.home {
  position: relative;

  background-image: url('home images/background.gif');
  height: 100vh;
  margin-top: -15vh;

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home.dark {
  background-image: url('home images/dark home.gif');
}


.typewriter {
  position: absolute;

  text-align: left;
  font-family: Pixelify Sans, Arial;
  font-weight: 400;
  font-size: 3vw;

  max-width: calc(100vw);
  top: 50%;
  right: 7%; 
}



.grass {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1150 / 287; 
  
  background-image: url('home images/grass.png');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;

  

  transform: translateY(50%);
}



.grass.dark {
  background-color: transparent;
  background-image: url('home images/dark grass.png');
}


.sprite {
  position: absolute;

  width: auto;
  height: 60vh;
  bottom: 0px;
  left: 80px;
}


.development {
  font-family: Pixelify Sans, Arial;
  font-weight: 400;
  font-size: 7.5vw;
  text-align: left;

  margin: 5vw 0 5vh 5vw;
}


.design-item, .development-item {
  font-family: Arial, Helvetica, sans-serif;

  width: 100%;

  border-radius: 20px;
  object-fit: cover;

  transition: transform 0.3s ease;
}

.design-box, .development-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  
  margin: 0 60px;
  gap: 60px;
}

.design-item:hover, .development-item:hover {
  transform: scale(1.05);
}

.popup {
  position: fixed;
  display: flex;
  justify-content: center;

  top: 0;
  left: 0;
  height: 100%;
  width: 100%;

  background-color: rgba(0,0,0,.5);
  align-items: center;

  z-index: 100;
}

.project-window {
  position: relative;

  border-radius: 20px;
  padding: 0;

  width: 75vw;
  height: 75vh;

  overflow: auto;

  background-color: rgb(255, 255, 255);

}

.project-window.dark {
  background-color: rgb(20, 15, 69);
}

.project-window-close {
  position: absolute;
  width: 30px;
  top: 5px;
  right: 5px;

  z-index: 1000;
}

.popup:not(:target) {
  visibility: hidden;
  opacity: 0;
}


.project-title{
  position: absolute;

  font-family: Pixelify Sans, Arial;
  font-weight: 500;
  font-size: 7vw;

  top: 15%;
  right: 5%;
}

.project-desc {
  position: absolute;

  font-family: Pixelify Sans, Arial;
  font-weight: 400;
  font-size: 2.8vw;

  top: 40%;
  right: 5%;

  margin-top: 10%;
}

.project-header{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;

  height: 75%;
  top: 0;
  left: 0;
  margin:0;
}

.project-logo {
  position: absolute;
  height: 70%;
  left: 3%;
  top: 22%;
}

.preview{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
}

.project-preview {
  display: inline-block;

  font-family: Pixelify Sans, Arial;
  font-size: 3vw;
  font-weight: 400;

  margin: 2% 0 0 3%;
}

.project-preview-text{
  display: inline-block;

  font-family: Tahoma;
  font-size: 2vw;
  font-weight: 100;
}

.project-image-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;

  justify-content: space-around;
  gap: 1vw;

  margin: 0 1vw;
}


.project-image {
  object-fit: contain;

  height: 60vh;
  max-width: 90%;
  margin-bottom: 2vw;
}


.project-sub {
  position: relative;
  display: block;

  font-family: Pixelify Sans, Arial;
  font-weight: 400;
  font-size: 4.9vw;

  padding: 0;
  line-height: 0.2;

  margin: 8% 0 0 3%;
}

.project-body {
  position: relative;
  display: block;

  font-family: Tahoma;
  font-size: 2.1vw;
  line-height: 1.25;

  margin: 5% 3%;
}