body {
  margin-top: 40px;
  font-family: Arial, Helvetica, sans-serif;
}

.topnav {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  float: right;
  background-color: white;
}

.topnav a {
  float: right;
  color: black;
  text-align: center;
  padding: 10px 10px;
  text-decoration: none;
  font-size: 17px;
}

#logo {
  font-size: 30px;
  float: left;
  padding: 5px 0 0 15px;
  text-transform: uppercase;
}
#logo:hover {
  background-color: white;
}

.topnav a:hover {
  background-color: purple;
  color: #ddd;
}

.topnav a.active {
  background-color: #4caf50;
  color: white;
}

.grid {
  display: grid;
  transform: translateY(5vh);
  grid-template-columns: 50% 50%;
  grid-template-rows: repeat(4, 25%);
  justify-content: center;
  justify-items: center;
  align-items: center;
  text-align: left;
  height: 200vh;
  row-gap: 10vh;
}

.grid-item {
  width: 50%;
  height: 0px;
  position: relative;
}

.txt {
  justify-content: center;
  justify-items: center;
  align-items: center;
  background-color: #ddd;
  transform: translateY(-50%);
  padding: 10px 30px;
}

.first {
  justify-content: center;
  justify-items: center;
  align-items: center;
  transform: translateY(-200%);
}

h1 {
  transform: translateY(-100%);
  background-color: white;
  text-align: center;
  padding: 0;
  font-size: 5vh;
}
h2 {
  font-size: 2.5vh;
}

img {
  max-width: 100%;
  max-height: 100%;
  transform: translateY(-50%);
}

button {
  transform: translateY(-100%);
  border-radius: 10px;
  width: 40%;
  font: inherit;
  font-size: 3vh;
  background-color: #ddd;
  /* margin: 10px 0; */
  outline: none;
  border: none;
  line-height: 2.5;
  /* show a hand cursor on hover*/
  cursor: pointer;
}
.intro {
  text-align: center;
}

a {
  text-decoration: none;
  color: black;
}

.topnav #secret:hover {
  background-color: white;
  color: black;
}

.topnav .icon {
  display: none;
}

#spacing {
  height: 10vh;
}

/* Code credited to https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_topnav */
@media screen and (max-width: 1024px) {
  .topnav a:not(:last-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
  .grid {
    margin-top: 0;
    grid-template-columns: 100%;
    grid-template-rows: repeat(8, 50%);
  }
  .grid-item {
    width: 100%;
    height: auto;
  }
  img {
    max-width: 50%;
    max-height: 50%;
    display: block;
  }
}

@media screen and (max-width: 1024px) {
  .topnav.responsive a:last-child {
    display: none;
  }
  .topnav.responsive a:nth-child(3) {
    display: none;
  }
  .topnav.responsive {
    position: fixed;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
