:root {
  /* Global variables */
  --doddle-gray: #444444;
  --doddle-font: "Roboto", sans-serif;
  --doddle-orange: #ff6600;
  --doddle-white: #ffffff;
}

body {
  color: var(--doddle-gray);
  font-family: var(--doddle-font);
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

.main {
  background-color: var(--doddle-gray);
  border-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 20px 0;
  min-height: 100vh;
}

.content {
  text-align: center;
  position: relative;
  padding: 10px;
}

.interface button i {
  font-size: 2.5rem;
  font-weight: bold;
}

.interface button {
  background-color: var(--doddle-orange);
  border-radius: 10px;
  border-style: none;
  color: var(--doddle-white);
  font-size: 1.5rem;
  font-weight: bold;
  width: 80px;
  height: 50px;
  margin-left: 10px;
  margin-top: 10px;
  transition: 0.1s;
  box-shadow: 3px 3px 3px 3px black;
}

.interface button:hover {
  background-color: var(--doddle-gray);
  cursor: pointer;
  box-shadow: 0px 0px 0px 0px;
  border: 1px solid black;
}

.interface {
  display: flex;
  justify-content: space-between;
}

/* Help text */
.tooltip {
  position: relative;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 40vw;
  background-color: var(--doddle-white);
  border: 2px solid var(--doddle-gray);
  color: var(--doddle-orange);
  text-align: left;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 15%;
  margin-right: -55px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 5px 5px 5px 5px black;
  font-size: 1.3rem;
  font-weight: 500;
  font-family: var(--doddle-font);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 15%;
  margin-right: -3px;
  border-width: 15px;
  border-style: solid;
  border-color: var(--doddle-white) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.screen {
  background-color: var(--doddle-white);
  border-radius: 10px;
  padding: 50px 50px 25px 50px;
  margin: 5px auto;
}

.startPanel {
  background-color: var(--doddle-white);
  border-radius: 5px;
  border-color: var(--doddle-gray);
  border-width: 3px;
  border-style: solid;
  font-size: 1.5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 100px;
  min-width: 40%;
  box-shadow: 10px 10px 10px 0px black;
}

.startPanel p {
  margin: 100px;
}

.intro img {
  width: 600px;
}

.heading {
  color: var(--doddle-gray);
  text-align: center;
  font-size: 1.8rem;
  text-transform: capitalize;
}

.intro,
.startPanel {
  position: absolute;
}

/* Content_________________________________________________________________ */
.farm {
  background-color: #FFECAE;
  width: 100%;
  height: 80vh;
  position: relative;
  border: 8px solid navy;
  border-radius: 8px;
}

.fence {
  background-image: url(images/fence.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 100%;
  height: 10%;
  position: absolute;
}

.tree {
  background-image: url(images/tree.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 25%;
  height: 25%;
  position: absolute;
  top: 30%;
  left: 15%;
}

.turtle {
  background-image: url(images/turtle.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 10%;
  height: 15%;
  position: absolute;
  top: 10%;
  left: 5%;
}

.plant {
  background-image: url(images/plant.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 25%;
  height: 25%;
  position: absolute;
  top: 40%;
  left: 60%;
}

.buttons {
  position: absolute;
  bottom: 0;
  width: 60%;
  background-color: #999999;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  left: 50%;
  translate: -50% 0;
  padding: 10px;
}

.buttons button {
  background-color: whitesmoke;
  color: navy;
  font-size: 1.5rem;
  border-radius: 8px;
  padding: 3px;
  width: 30%;
  height: 70%;
}

.buttons button:hover {
  background-color: var(--doddle-orange);
  color: var(--doddle-white);
  cursor: pointer;
}

.color-change{
  background-color: var(--doddle-orange);
}

.rotate-around-tree {
  animation: startmoving 20s linear 0s infinite forwards normal;
  transform-origin: 100%;
  position: relative;
}

.stay-equally {
  animation: moveUp 5s linear 0s infinite forwards normal;
  rotate: -90deg;
  top: 30%;
  left: 45%;
}

.move-along {
  animation: moveLeft 30s linear 0s infinite forwards normal;
  top: 10%;
  left: 5%;
  rotate: initial;
}

@keyframes startmoving {
  0% {
    rotate: 0deg;
    top: 15%;
  }

  25% {
    top: 20%;
    left: 20%;
  }

  50% {
    top: 30%;
    left: 25%;
    transform-origin: 110%;
  }
  
  75% {
    top: 50%;
    left: 15%;
  }
  
  100% {
    top: 15%;
    left: 10%;
    rotate: 360deg;
    transform-origin: 100%;
  }
}

@keyframes moveUp {
  0% {
    top: 60%;
  }

  100% {
    top: 10%;
  }
}

@keyframes moveLeft {
  0% {
    left: 5%;
  }

  100% {
    left: 90%;
  }
}

@media screen and (width < 975px) {
  .buttons {
    flex-direction: column;
  }

  .buttons button {
    width: 100%;
  }
}