body {
  font-family: arial, sans-serif;
}
.center {
  width: 650px;
  height: 400px;
  position: fixed;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
a:hover {
  text-decoration: underline;
}
nav {
  float: right;
  width: 280px;
  margin-top: 24px;
  margin-right: 20px;
  font-size: 0.8em;
}
nav a {
  color: #222;
  display: block;
  float: left;
  margin: 0px 8px;
}
.apps {
  text-indent: -9999px;
  height: 16px;
  width: 16px;
  background: url(../images/apps.png);
  margin-top: 5px;
}
.signin {
  font-weight: bold;
  color: #fff;
  background: #4485f4;
  padding: 8px 10px;
  border-style: none;
  border-radius: 2px;
}
.l {
  line-height: 25px;
}
.signin:hover {
  text-decoration: none;
}
.search {
  width: 80%;
  max-width: 500px;
  height: 40px;
  padding-left: 15px;
  border-top: 1px solid #c0c0c0;
  border-right: 1px solid #c0c0c0;
  border-bottom: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9;
  background: url(../images/micro.png) no-repeat 95% center;
  margin: 100px auto 15px auto;
  font-size: 0.9em;
  border-radius: 25px;
  display: block;
}
.button {
  font-size: 0.85em;
  color: #131313;
  background: #f2f2f2;
  height: 30px;
  padding: 6px 12px;
  margin: 0px 6px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.button:hover {
  background: #e8e8e8;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.replay-btn {
  background: #4285f4;
  color: white;
  font-weight: 500;
}

.replay-btn:hover {
  background: #3367d6;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
p {
  font-size: 0.8em;
  color: #222;
  margin-top: 35px;
}
a {
  text-decoration: none;
  margin-right: 4px;
  margin-left: 4px;
}

/* ---- mijn code ---- */
.google {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 16px;
}

.google img {
  width: 100px;
  margin-right: -20px;
}

.google .bottom {
  margin-top: 7px;
  margin-right: -8px;
}

.google .top {
  margin-top: 13px;
  margin-left: -5px;
}

.google .left {
  margin-left: -30px;
  margin-right: -25px;
}

.coin {
  height: 173px;
  width: 174px;
  transform: scale(0.6);
  position: absolute;
  left: 37.5%;
  background: url(../images/spritesheet.png) no-repeat;
  animation-timing-function: steps(10);
  animation-name: coin;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  margin-top: -24.45%;
}

@keyframes coin {
  100% {
    background-position: -1735px;
  }
}

.shroom {
  height: 173px;
  width: 174px;
  position: absolute;
  left: 26.5%;
  top: 3% ;
  animation-name: shroom, shroomtouch;
  animation-delay: 0s, 6.6s;
  animation-duration: 2s, 0.2s;
  animation-timing-function: steps(8), steps(2);
  animation-iteration-count: 1;
  z-index: 100;
}

.shroom img {
	width: 100px;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

@keyframes shroom {
  0% {
    transform: translateX(-300px);
  }
  25% {
    transform: translateX(-200px);
  }
  50% {
    transform: translateX(-100px);
  }
  75% {
    transform: translateX(-50px);
  }
  100% {
    transform: translateX(0);
  }
}

.G {
	margin-top: 6px;
	animation-name: G;
	animation-duration: 2s;
	animation-timing-function: steps(16);
	animation-iteration-count: 1;
	animation-delay: 3s;
	animation-fill-mode: both;
	transform: translateY(-1000px);
}

@keyframes G {
	0% {
		transform: translateY(-1000px);
	}
	20% {
		transform: translateY(-800px);
	}
	40% {
		transform: translateY(-400px);
	}
	60% {
		transform: translateY(-200px);
	}
	80% {
		transform: translateY(-50px);
	}
	90% {
		transform: translateY(-10px);
	}
	95% {
		transform: translateY(5px);
	}
	100% {
		transform: translateY(0);
	}
}

.pipe {
	height: 174px;
	width: 174px;
	position: absolute;
	left: 13.7%;
	top: -55%;
	animation-name: pipe;
	animation-duration: 2s;
	animation-iteration-count: 1;
	animation-delay: 3s;
	animation-timing-function: steps(12);
	z-index: 2;
}

.pipe img {
	width: 115px;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

@keyframes pipe {
	0% {
		transform: translateY(0);
	}
	25% {
		transform: translateY(20px);
	}
	50% {
		transform: translateY(80px);
	}
	60% {
		transform: translateY(90px);
	}
	75% {
		transform: translateY(40px);
	}
	90% {
		transform: translateY(10px);
	}
	100% {
		transform: translateY(0);
	}
}

.white {
	position: absolute;
	z-index: 5;
	top: -278px;
	left: 100px;
	width: 50px;
}

.egg {
	height: 174px;
	width: 174px;
	transform: scale(0.5);
	position: absolute;
	left: 48%;
	background: url(../images/eggsheet.png) no-repeat;
	image-rendering: pixelated;
	animation-timing-function: steps(6);
  	animation-name: egg;
  	animation-duration: 6s;
  	animation-iteration-count: 1;
	animation-fill-mode: forwards;
  	margin-top: -24.45%;
}

@keyframes egg {
	100% {
		background-position: -1050px;
	}
}

  .g2 {
	animation-name: g2;
	animation-duration: 1s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
	animation-timing-function: steps(8);
	transform: scale(0.5);
	animation-delay: 5.5s;
  }

  @keyframes g2 {
	0% {
		transform: scale(0.5);
	}
	25% {
		transform: scale(0.6);
	}
	50% {
		transform: scale(0.8);
	}
	75% {
		transform: scale(0.9);
	}
	90% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
  }

  .o1 {
	visibility: hidden;
  }

  .o2 {
	visibility: hidden;
  }

  .l1 {
	visibility: hidden;
  }

  .plant {
	width: 174px;
	height: 348px;
	animation-name: plant;
	animation-duration: 2s;
	animation-delay: 7s;
	animation-fill-mode: forwards;
	animation-timing-function: steps(10);
	position: absolute;
	left: 55.2%;
	top: 30%;
  }

  .plant img {
	width: 100px;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
  }

  @keyframes plant {
	0% {
		transform: translateY(0);
	}
	20% {
		transform: translateY(-40px);
	}
	40% {
		transform: translateY(-80px);
	}
	60% {
		transform: translateY(-120px);
	}
	80% {
		transform: translateY(-160px);
	}
	100% {
		transform: translateY(-200px);
	}
  }

  .white2 {
	position: absolute;
	left: 64.7%;
	top: 22%;
  }

  .white3 {
	position: absolute;
	left: 64.7%;
	top: -30%;
  }

  .zoekbalk {
	position: absolute;
	z-index: 2;
	background-color: white;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 584px;
	text-align: center;
  }


  .reddot {
	position: absolute;
	z-index: 9;
	top: 42%;
	left: 20%;
	animation-name: reddot, reddot2;
	animation-duration: 0.5s, 0.5s;
	animation-delay: 5s, 6s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
	animation-timing-function: steps(4), steps(4);
  }

  .reddot img {
	width: 100px;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
  }

  @keyframes reddot {
	0% {
		transform: translate(0);
	}
	25% {
		transform: translate(20px);
	}
	50% {
		transform: translate(40px);
	}
	75% {
		transform: translate(60px);
	}
	100% {
		transform: translate(80px);
	}
  }

  @keyframes reddot2 {
	0% {
		transform: translate(80px, 0);
	}
	25% {
		transform: translate(80px, -35px);
	}
	50% {
		transform: translate(80px, -70px);
	}
	75% {
		transform: translate(80px, -105px);
	}
	100% {
		transform: translate(80px, -140px);
	}
  }

  @keyframes shroomtouch {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1.1);
	}
  }

  .e {
	animation-name: e;
	animation-duration: 5s;
	animation-delay: 7s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
	visibility: hidden;
  }



  .e2 {
	position: absolute;
	left: 32.23076824%;
	top: 2%;
	animation-name: ehidden, emove1, emove2, emove3;
	animation-duration: 0s, 0.5s, 1s, 0.5s;
	animation-delay: 3s, 7s, 8s, 10s;
	animation-iteration-count: 1, 1, 1, 1;
	animation-fill-mode: forwards, forwards, forwards, forwards;
	animation-timing-function: linear, steps(6), steps(8), steps(6);
	visibility: hidden;
	z-index: 4;
}

.e2 img {
	width: 99px;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

@keyframes ehidden {
	to {
		visibility: visible;
	}
}

@keyframes emove1 {
	0% {
		transform: translateY(0);
	}
	33% {
		transform: translateY(48px);
	}
	66% {
		transform: translateY(96px);
	}
	100% {
		transform: translateY(143px);
	}
}

@keyframes emove2 {
	0% {
		transform: translate(0, 143px);
	}
	25% {
		transform: translate(60px, 143px);
	}
	50% {
		transform: translate(120px, 143px);
	}
	75% {
		transform: translate(180px, 143px);
	}
	100% {
		transform: translate(238px, 143px);
	}
}

@keyframes emove3 {
	0% {
		transform: translate(238px, 143px);
	}
	25% {
		transform: translate(238px, 107px);
	}
	50% {
		transform: translate(238px, 71px);
	}
	75% {
		transform: translate(238px, 36px);
	}
	100% {
		transform: translate(238px, 0px);
	}
}

/* ===== RESPONSIVE DESIGN ===== */
/* Ensure animation is always centered and fully visible */

/* Base responsive container */
.center {
  width: 650px;
  height: 400px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 0;
  text-align: center;
}

/* Default for large screens */
@media screen and (min-width: 1200px) {
  .center {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Medium laptops */
@media screen and (max-width: 1199px) and (min-width: 992px) {
  .center {
    transform: translate(-50%, -50%) scale(0.85);
  }
  
  nav {
    margin-right: 15px;
    width: 250px;
  }
}

/* Tablets */
@media screen and (max-width: 991px) and (min-width: 768px) {
  .center {
    transform: translate(-50%, -50%) scale(0.7);
  }
  
  nav {
    margin-right: 10px;
    width: 220px;
    font-size: 0.7em;
  }
  
  .apps {
    transform: scale(0.8);
  }
  
  .signin {
    padding: 6px 8px;
    font-size: 0.9em;
  }
}

/* Mobile landscape and small tablets */
@media screen and (max-width: 767px) and (min-width: 576px) {
  .center {
    transform: translate(-50%, -50%) scale(0.55);
  }
  
  nav {
    margin-right: 5px;
    width: 180px;
    font-size: 0.65em;
    margin-top: 15px;
  }
  
  .apps {
    transform: scale(0.7);
    margin-top: 3px;
  }
  
  .signin {
    padding: 4px 6px;
    font-size: 0.8em;
  }
  
  .l {
    line-height: 20px;
  }
}

/* Mobile portrait */
@media screen and (max-width: 575px) and (min-width: 400px) {
  .center {
    transform: translate(-50%, -50%) scale(0.45);
  }
  
  nav {
    margin-right: 5px;
    width: 150px;
    font-size: 0.6em;
    margin-top: 10px;
  }
  
  .apps {
    transform: scale(0.6);
    margin-top: 2px;
  }
  
  .signin {
    padding: 3px 5px;
    font-size: 0.7em;
  }
  
  .l {
    line-height: 18px;
  }
}

/* Small mobile devices */
@media screen and (max-width: 399px) and (min-width: 350px) {
  .center {
    transform: translate(-50%, -50%) scale(0.38);
  }
  
  nav {
    margin-right: 3px;
    width: 130px;
    font-size: 0.55em;
    margin-top: 8px;
  }
  
  .apps {
    transform: scale(0.5);
    margin-top: 1px;
  }
  
  .signin {
    padding: 2px 4px;
    font-size: 0.65em;
  }
  
  .l {
    line-height: 16px;
  }
}

/* Very small mobile devices */
@media screen and (max-width: 349px) {
  .center {
    transform: translate(-50%, -50%) scale(0.32);
  }
  
  nav {
    margin-right: 2px;
    width: 110px;
    font-size: 0.5em;
    margin-top: 5px;
  }
  
  .apps {
    transform: scale(0.4);
    margin-top: 1px;
  }
  
  .signin {
    padding: 2px 3px;
    font-size: 0.6em;
  }
  
  .l {
    line-height: 14px;
  }
}

/* Height-based adjustments for short screens */
@media screen and (max-height: 600px) {
  .center {
    top: 45%;
  }
}

@media screen and (max-height: 500px) {
  .center {
    top: 40%;
  }
  
  nav {
    margin-top: 5px;
  }
}

@media screen and (max-height: 400px) {
  .center {
    top: 35%;
  }
  
  nav {
    margin-top: 3px;
  }
}

/* Landscape orientation specific adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .center {
    top: 50%;
  }
}

/* Ultra-wide screens */
@media screen and (min-width: 1600px) {
  .center {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Ensure body doesn't cause overflow */
body {
  overflow-x: hidden;
  min-height: 100vh;
}

