main {
  font-family: Verdana;
  color: white;
  font-size: 12px;
}

.header {
  border: 6px ridge black;
  padding: 10px;
  margin: 10px;
  margin-top: 20px;
  border-radius: 6px;
  background: black;
  text-align: center;
}

.leftsite {
  border: 6px ridge black;
  padding: 10px;
  padding-top: 4px;
  margin: 10px;
  margin-top: 20px;
  border-radius: 6px;
  background: black;
  text-align: center;
  flex: 1 0.5 1000px;
  overflow: auto;
  height: 450px;
}

.rightsite {
  overflow: auto;
  white-space: nowrap;
  border: 6px ridge black;
  padding: 10px;
  padding-top: 4px;
  margin: 10px;
  margin-top: 20px;
  border-radius: 6px;
  height: 450px;
  background: black;
  text-align: center;
  flex: 1 0.1 200px;
}

.all {
  border: 6px ridge black;
  padding: 10px;
  margin: 10px;
  margin-top: 30px;
  border-radius: 6px;
  background: gray;
  text-align: center;
  overflow: auto;
}

.topsite {
  display: flex;
  flex-direction: row;
  border: 6px ridge black;
  border-bottom: 0;
  padding: 10px;
  margin: 10px;
  margin-top: 20px;
  margin-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: white;
  text-align: center;
  overflow: auto;
}

.bottomsite {
  display: flex;
  flex-direction: row;
  border: 6px ridge black;
  border-top: 0;
  padding: 10px;
  margin: 10px;
  margin-top: 0px;
  margin-bottom: 20px;
  border-radius: 0 0 6px 6px;
  background: white;
  text-align: center;
  overflow: auto;
}

.subbox {
  overflow-y: auto;
  overflow-x: hidden;
  white-space: wrap;
  background: gray;
  border: 3px ridge black;
  border-radius: 4px;
  height: 60%;
  flex: 1 0 150px;
}

.subboxnoscroll {
  background: gray;
  white-space: wrap;
  border: 3px ridge black;
  border-radius: 4px;
  padding: 10px;
  padding-top: 5px;
  height: 100px;
  color: white;
  flex: 1 0 200px;
  overflow-x: hidden;
  overflow-y: auto;
}

.subboxlarge {
  display: flex;
  flex-direction: row;
  overflow: auto;
  white-space: nowrap;
  background: gray;
  border: 3px ridge black;
  border-radius: 4px;
  height: 400px;
  flex: 1 0 100%;
}

.subboxmain {
  overflow: auto;
  white-space: nowrap;
  background: white;
  color: black;
  padding-left: 10px;
  padding-right: 10px;
  border: 6px ridge black;
  margin: 10px;
  border-radius: 4px;
  flex: 1 0 150px;
}

.heading {
  background: white;
  border: 3px ridge black;
  border-radius: 4px;
  margin-bottom: 6px;
  margin-top: 15px;
  color: black;
  flex: 1 0 150px;
  overflow: auto;
}

.link {
  display: block;
  background: white;
  border: 3px ridge black;
  border-radius: 8px;
  margin: 5px;
  padding: 5px;
  margin-left: 10px;
  margin-right: 10px;
  color: black;
  flex: 1 0 150px;
  overflow: auto;
}

a {
  text-shadow: 0 0 2px gray;
  color: black;
  display: block;
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 2px black;
  color: white;
  transition: color 0.2s, text-shadow 0.2s;
}

@media (max-width: 600px) {
  .topsite {
    flex-direction: column-reverse;
  }
  .bottomsite {
    flex-direction: column;
  }
  .leftsite {
    height: 70%;
  }
  .rightsite {
    height: 30%;
  }
  .subboxlarge {
    flex-direction: column;
    height: 100%;
  }
  .subbox {
    height: 100%;
  }
  .subboxnoscroll {
    height: auto;
  }
}
