@import "https://www.w3schools.com/w3css/4/w3.css";

/* CSS declarations go here */
@charset "utf-8";

body {
  background-size: auto;
  background-repeat: no-repeat;
}

img {
  width: 40vw;
  height: auto;
  max-height: 900px;
}

video {
  width: 45%;
  height: auto;
  max-height: 900px;
}

#picture,
#video {
  display: none;
  margin: 0 auto;
  text-align: center;
  height: auto
}

#choices button {
  display: block;
  margin-top: 10px;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  filter: blur(10px);
  /* z-index: -2; */
}
#content {
  padding: 10px;
  position: absolute;
  top: 0;
  bottom: 0;
  left:  calc(5%);
  right: 0;
  width: calc(100% - 10%);
  /* z-index: -1; */
  overflow: scroll;
  overflow-x: hidden;
}

#stuff {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  background-color: #333;
  color: #fff;
  font-weight: bold;
}
tr:nth-child(even) {
  background-color: #ddd;
}
tr:nth-child(odd) {
  background-color: #ccc;
}
td:first-child,
th:first-child {
  width: 30%;
}

#code form {
  display: flex;
  width: 100%;
}
#code input[type="text"] {
  flex: 1;
}
#code input[type="submit"] {
  margin-left: auto;
}

a {
  text-transform: uppercase;
}
a:link {
  text-decoration: underline;
}
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:active {
  text-decoration: underline;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#github {
  align-self: flex-start;
}

#credits {
  align-self: flex-end;
}
.creditroll {
  display: block;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 25%;
  left: 15%;
  right: 15%;
  bottom: 25%;
  overflow: auto;
  text-align: center;
}

#credits2 {
  text-align: right;
}

.hex-container {
  position: relative;
  width: 600px; 
  height: 500px;
  margin-top: 50px;
}

.hexagon {
  position: relative;
  width: 100px; 
  height: 57.74px;
  background-color: #333333;
  color: white;
  margin: 28.87px 0;
  font-size: 8px;
}

.hexagon:before,
.hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
}

.hexagon:before {
  bottom: 100%;
  border-bottom: 28.87px solid #333333;
}

.hexagon:after {
  top: 100%;
  width: 0;
  border-top: 28.87px solid #333333;
}

/* Blue hexagon for unpublished stories (creator testing) */
.hexagon-blue {
  position: relative;
  width: 100px; 
  height: 57.74px;
  background-color: #007bff;
  color: white;
  margin: 28.87px 0;
  font-size: 8px;
}

.hexagon-blue:before,
.hexagon-blue:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
}

.hexagon-blue:before {
  bottom: 100%;
  border-bottom: 28.87px solid #007bff;
}

.hexagon-blue:after {
  top: 100%;
  width: 0;
  border-top: 28.87px solid #007bff;
}

.hex7 {
  position: absolute;
  top: 220px;
  left: 440px;
}
.hex3 {
  position:absolute;
  top: 0px;
  left: 110px;
}
.hex5 {
  position:absolute;
  top: 0px;
  left: 220px;
}
.hex10 {
  position:absolute;
  top: 0px;
  left: 330px;
}
.hex1 {
  position:absolute;
  top: 110px;
  left: 55px;
}
.hex2 {
  position:absolute;
  top: 110px;
  left: 165px;
}
.hex9 {
  position:absolute;
  top: 110px;
  left: 275px;
}
.hex12 {
  position:absolute;
  top: 110px;
  left: 385px;
}
.hex8 {
  position:absolute;
  top: 220px;
  left: 0px;
}
.hex4 {
  position:absolute;
  top: 220px;
  left: 110px;
}
.hex6 {
  position:absolute;
  top: 220px;
  left: 220px;
}
.hex11 {
  position:absolute;
  top: 220px;
  left: 330px;
}
.hex13 {
  position:absolute;
  top: 330px;
  left: 55px;
}
.hex14 {
  position:absolute;
  top: 330px;
  left: 165px;
}
.hex15 {
  position:absolute;
  top: 330px;
  left: 275px;
}
.hex16 {
  position:absolute;
  top: 330px;
  left: 385px;
}
.hex17 {
  position:absolute;
  top: 440px;
  left: 0px;
}
.hex18 {
  position:absolute;
  top: 440px;
  left: 110px;
}
.hex19 {
  position:absolute;
  top: 440px;
  left: 220px;
}
.hex20 {
  position:absolute;
  top: 440px;
  left: 330px;
}

