@import url('https://fonts.googleapis.com/css2?family=Cousine&display=swap');

body {
  background-color: black;
  color: white;
  font-family: "Cousine", monospace;
  font-size: 16px;
}

#grid {
  height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 0.5fr 0.5fr; 
  justify-items: center;
  align-items: center;
}

#helpgridnowork {
  grid-row: 1;
  grid-column: 2 / span 2;
}

#home {
  text-decoration: none;
  color: white;
  font-size: 3.12em;
  -webkit-transition: color 2s;
  transition: color 2s;
  background-color: black;
}
  
#home:hover {
  color: #f9c844
}

#potdiv {
  font-size: min(4vw, 2em);
  grid-row: 2;
  grid-column: 2 / span 2;
}

#pot {
  color: white;
  text-decoration: none;
  -webkit-transition: color 2s;
  transition: color 2s;
}

#pot:hover {
  color: green;
}

#clicktext {
  font-size: 1.13em;
  text-align: center;
  margin: 0;
  grid-row: 3;
  grid-column: 2 / span 2;
}

#buttonflex {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  column-gap: 25px;
  grid-row: 4;
  grid-column: 2 / span 2;
}

.myButton {
  border: solid 2px white; 
  padding: 10px; 
  max-width: 9.01em;
}

/* CODE SOURCE!! 
modal box code (with modifications) from Kasper Mikiewicz's "Pure CSS modal box"
https://codepen.io/Idered/pen/DdeoeW*/

/* [Object] Modal
 * =============================== */
.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: left;
  background: rgba(0,0,0, .9);
  transition: opacity .25s ease;
}

.modal__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
}

.modal-state {
  display: none;
}

.modal-state:checked + .modal {
  opacity: 1;
  visibility: visible;
}

.modal-state:checked + .modal .modal__inner {
  top: 0;
}

.modal__inner {
  transition: top .25s ease;
  position: absolute;
  top: -20%;
  right: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  height: 30%;
  margin: auto;
  overflow: auto;
  background: black;
  color: white;
  border: solid 2px white;
  padding: 4em;
  line-height: 2em;
}

.modal__close {
  position: absolute;
  right: 1em;
  top: 1em;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.modal__close:after,
.modal__close:before {
  content: '';
  position: absolute;
  width: 2px;
  height: 1.5em;
  background: #ccc;
  display: block;
  transform: rotate(45deg);
  left: 50%;
  margin: -3px 0 0 -1px;
  top: 0;
}

.modal__close:hover:after,
.modal__close:hover:before {
  background: #aaa;
}

.modal__close:before {
  transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
	
  .modal__inner {
    width: 90%;
    height: 90%;
    box-sizing: border-box;
  }
}

.btn {
  cursor: pointer;
  border: solid 2px white;
  padding: 10px;
}

/* end of modal box code */