* {
  padding: 0;
  margin: 0;
}

@font-face {
  font-family: "visitor";
  src: url('/assets/font/visitor1.ttf') format('truetype');
}


html, body {
  position: relative;
  padding: 0;
  margin: 0;
  font-family: "visitor", sans-serif;
  font-size: 20px;
  line-height: 30px;

  color: black;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}
input {
  font-family: "visitor", sans-serif;
  font-size: 20px;
  line-height: 30px;
}
textarea:focus, input:focus{
  outline: none;
}

:root {
  --gcg-red: 255, 0, 0;
  --app-height: 100vh;
}

body {
  padding: 0 0 0 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: var(--app-height);
}



p {
  margin-bottom: 1rem;
}

a, a:hover {
  font-weight: 600;
  text-decoration: underline;
  color: rgb(var(--gcg-red));
  cursor: pointer;
}


h3, .h3 {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  color: black;
  text-decoration: none;
}
h4, .h4 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 2rem;
  color: black;
  text-decoration: none;
}

.garden-header {
  position:absolute;
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 1rem;
  line-height: 1.1rem;
  top: 0px;
  left: 0px;
  width: 100%;
  user-select: none;
  pointer-events: none;
  text-transform: uppercase;
}
.garden-indicator {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position:absolute;
  bottom: 0px;
  right: 0px;
  width: 3rem;
  height: 3rem;
  user-select: none;
  pointer-events: none;
}
.garden-indicator #indi {
  width: 2rem;
  height: 2rem;
}
.garden-header .title {
  padding: 20px;
  font-size: 2rem;
  line-height: 1.5rem;
  color:#76FB4C;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px -1px 0 rgba(0, 0, 0, 0.5), -1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.garden-header .stats {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: end;
  font-size: 1.2rem;
  line-height: 0.9rem;
  overflow: hidden;
}
.garden-header .time {
  color:#00AA01;
}
.garden-header .carbon {
  color:#1973FF;
}
.garden-header .humans {
  color:#FF00AC;
}
.garden-header .time a {
  color:inherit;
  text-decoration: none;
  font-weight: unset;
  user-select: none;
  pointer-events: all;
}
.garden-header .info a {
  color: white;
  text-decoration: none;
  user-select: none;
  pointer-events: all;
}

.garden-header .sppos.hidemy {
  display: none;
}
.garden-header .sppos a {
  color: #00fbda;
  text-decoration: none;
  user-select: none;
  pointer-events: all;
}



.garden-info {
  width: 100vw;
  height: 100vh;
  height: var(--app-height);
  position: absolute;
  top: 0px;
  left: 0px;
  user-select: none;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  /* background-color: rgba(0, 0, 0, 0.2); */
}
.garden-info.show {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}
.garden-info #i-text {
  padding: 2rem;
  color: white;
  text-align: center;
  white-space: pre-line;
  text-decoration: none;
  font-size: 2.5rem;
  line-height: 2.2rem;
  /* margin-bottom: 2.5rem; */
}



.garden-action {
  width: 100vw;
  height: 100vh;
  height: var(--app-height);
  position: absolute;
  top: 0px;
  left: 0px;
  cursor: grab;
  /* background-color: rgb(0, 0, 255, 0.2); */
}
.garden-sky {
  width: 100vw;
  height: 100vh;
  height: var(--app-height);
  position: absolute;
  top: 0px;
  left: 0px;
  background-image: url('/assets/img/sky.jpg');
  background-repeat: repeat-x;
  background-size: auto 50%;
  /* animation: skymove 240s linear infinite; */

}


@keyframes skymove {
  from { background-position-x: 0px; }
  to { background-position-x: 7202px; }
}

.garden-container {
  user-select: none;
  pointer-events: none;
  border: 0px;
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: var(--app-height);
  background-image: url('/assets/img/garden.jpg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position-x: 0px;
  /* background-origin: content-box; */
  -webkit-mask-image: url('/assets/img/garden_mask.png');
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%;
  -webkit-mask-position-x: 0px;
  mask-image: url('/assets/img/garden_mask.png');
  mask-repeat: repeat-x;
  mask-size: auto 100%;
  mask-position: 0px;
}



.garden-field {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  position: absolute;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: var(--app-height);
  top: 0px;
  left: 0px;
  cursor: grab;
}



/* 
.garden-spargel {
  user-select: none;
  pointer-events: auto;
  position: absolute;
  cursor: pointer;
}
.garden-spargel img {
  user-select: none;
  pointer-events: auto;
}
.garden-spargel img.own {
  filter: sepia(100%) saturate(300%) brightness(90%) hue-rotate(120deg) drop-shadow(0 0 5px rgb(0, 255, 251));
} */




/** V2 **/

.garden-hover, .garden-hover-edit{
  user-select: none;
  pointer-events: none;
  position: absolute;
  width: auto;
  height: auto;
  background: none;
  border-radius: 10px;
  left: 50%;
  top: 50%;
}
.garden-hover {
  visibility: hidden;
}
.garden-hover-edit  {
  user-select: all;
  pointer-events: all;
  background-color: rgba(255, 255, 255, 0.7);
  display: none;
}
.garden-hover-edit .hover-edit {
  user-select: all;
  pointer-events: all;
  display: flex;
  flex-direction: column;
}
.garden-hover-edit .hover-edit #status-text {
  font-size: 0.7rem;
  color: red;
  padding: 0rem 1rem;
  line-height: 0.9rem;
}

.garden-hover-edit input {
  color: black;
  min-width: 300px;
  max-width: 12rem;
  user-select: all;
  pointer-events: all;
  background: none;
  border:none;
  text-align: center;
  font-size: 2rem;
  padding: 1rem 1rem 0rem 1rem;
}
.garden-hover-edit input:focus, .garden-hover-edit input:focus-visible {
  border: none;
}

#hover-text {
  padding: 1rem;
  color: white;
  text-shadow: 2px 2px 8px black;
  text-align: center;
  white-space: pre;
  text-decoration: none;
  font-size: 3.0rem;
  line-height: 3.2rem;
}

.editmode .spargel {
  user-select: none;
  pointer-events: all;
}

.spargel {
  user-select: none;
  pointer-events: auto;
  position: absolute;
  
  width: 600px;
  height: 1700px;
  visibility: hidden;
}
.spargel img {
  user-select: none;
  pointer-events: none;
}

.spargel.own {
  cursor: pointer;
}
.spargel.own img {
  filter: sepia(100%) saturate(300%) brightness(90%) hue-rotate(120deg) drop-shadow(0 0 5px rgb(0, 255, 251));
}

.spargel-top {
  position: absolute;
  bottom: 900px;
  left: 0px;
  width: inherit;
  height: 44.59%;
  -webkit-mask-image: url('/assets/img/sp/01/01-mask-top.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position-x: 0px;
  -webkit-mask-position-y: 0px;
  -webkit-mask-size: auto 100%;
  -webkit-mask-size: auto 100%;
  mask-image: url('/assets/img/sp/01/01-mask-top.png');
  mask-repeat: no-repeat;
  mask-size: auto 100%;
}
.spargel-top img {
  position: absolute;
  top: 0px;
}
.spargel-top img.top-b {
  opacity: 0;
}
.spargel-bot {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: inherit;
  height: 50.59%;
}

.spargel-mid {
  position: absolute;
  bottom: 640px;
  left: 0px;
  height: 37.05%;
  width: inherit;
  -webkit-mask-image: url('/assets/img/sp/01/01-mask-mid.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position-x: 0px;
  -webkit-mask-position-y: 0px;
  -webkit-mask-size: auto 100%;
  mask-image: url('/assets/img/sp/01/01-mask-mid.png');
  mask-repeat: no-repeat;
  mask-size: auto 100%;
}
.spargel-mid img {
  position: absolute;
  top: 0px;
}
.spargel img {
  width: inherit;
}


/******* Variants ********/

.spargel.variant-1 .spargel-top {
  -webkit-mask-image: url('/assets/img/sp/01/01-mask-top.png');
  mask-image: url('/assets/img/sp/01/01-mask-top.png');
}
.spargel.variant-1 .spargel-mid {
  -webkit-mask-image: url('/assets/img/sp/01/01-mask-mid.png');
  mask-image: url('/assets/img/sp/01/01-mask-mid.png');
}
.spargel.variant-2 .spargel-top {
  -webkit-mask-image: url('/assets/img/sp/02/02-mask-top.png');
  mask-image: url('/assets/img/sp/02/02-mask-top.png');
}
.spargel.variant-2 .spargel-mid {
  -webkit-mask-image: url('/assets/img/sp/02/02-mask-mid.png');
  mask-image: url('/assets/img/sp/02/02-mask-mid.png');
}
.spargel.variant-3 .spargel-top {
  -webkit-mask-image: url('/assets/img/sp/03/03-mask-top.png');
  mask-image: url('/assets/img/sp/03/03-mask-top.png');
}
.spargel.variant-3 .spargel-mid {
  -webkit-mask-image: url('/assets/img/sp/03/03-mask-mid.png');
  mask-image: url('/assets/img/sp/03/03-mask-mid.png');
}
.spargel.variant-4 .spargel-top {
  -webkit-mask-image: url('/assets/img/sp/04/04-mask-top.png');
  mask-image: url('/assets/img/sp/04/04-mask-top.png');
}
.spargel.variant-4 .spargel-mid {
  -webkit-mask-image: url('/assets/img/sp/04/04-mask-mid.png');
  mask-image: url('/assets/img/sp/04/04-mask-mid.png');
}









@media (max-width: 600px) {
  body, html {
    font-size: 12px;
  }
}




/**** EDITOR *****/

.editmode .garden-container {
  background-image: url('/assets/img/garden-edit.jpg');
}

.overlay-editor, .garden-test {
  display: flex;
  flex-direction: column;
  background-color: rgba(228, 105, 64, 0.787);
  position: absolute;
  overflow: hidden;
  bottom: 0px;
  right: 0px;
  padding: 10px;
  width: 300px;
}
.overlay-editor .slider {
  display: flex;
}
.overlay-editor input {
  width: 100%;
}
.overlay-editor input[type="checkbox"] {
  width: unset;
}
.overlay-editor label {
  padding: 3px;
  color: white;
  font-size: 0.8rem;
}

#ed-dump {
  padding: 6px;
  font-size: 0.6rem;
}

#ed-dump.dirty {
  font-weight: 600;
}

