/* -------------------------
   BODY
--------------------------*/
body {
  min-width: 800px;
  background: #ff00cc;
  background: -webkit-linear-gradient(to right, #333399, #ff00cc);
  background: linear-gradient(to right, #333399, #ff00cc);
  margin: 0;
}

/* -------------------------
   TRAPEZOID NAV AREA
--------------------------*/
#trapezoid {
  box-sizing: content-box;
  height: 0;
  border: 80px solid rgba(0, 0, 0, 0);
  border-top: 0;
  border-bottom: 100px solid rgba(1, 1, 1, .4);
  border-radius: 20px 20px 0 0;
  font: normal 100% Arial, Helvetica, sans-serif;
  color: rgba(0, 0, 0, 0.7);
  text-overflow: clip;
  transform: rotateX(180deg);
  margin-top: -53px;
  width: 700px;
  position: relative;
  transition: all 0.7s ease;
  padding-left: 7%;
}

#trapezoid a,
.subnavbtn {
  transform: rotateX(180deg);
}

.sub-home {
  display: none;
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  transform: perspective(-10px);
}

#trapezoid:hover .sub-home {
  justify-content: center;
  margin-top: 53px;
}

/* -------------------------
   NAVBAR
--------------------------*/
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  overflow: hidden;
  justify-content: center;
  height: 100px;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 25px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: all 0.5s ease;
}

/* -------------------------
   SUBNAV WITH RAINBOW 🌈
--------------------------*/
.subnav {
  float: left;
  overflow: hidden;

  /* 🌈 RAINBOW BACKGROUND APPLIED HERE */
  background: linear-gradient(
    90deg,
    red, orange, yellow, green, blue, indigo, violet,
    indigo, blue, green, yellow, orange, red, red
  );
  background-size: 1000% 100%;
  animation: create-rainbow-gradient-shift 30s ease infinite;
}

.subnav .subnavbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 25px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: all 0.5s ease;
}

/* Hover behavior for nav */
.navbar a:hover,
.subnav:hover .subnavbtn {
  background: #8CA6DB;
  color: black;
  border-radius: 5px;
}

/* -------------------------
   RAINBOW ANIMATION
--------------------------*/
@keyframes create-rainbow-gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 100%; }
}

/* -------------------------
   HEADER TEXT
--------------------------*/
.transparent-h1 {
  padding-top: 40vh;
  margin: 0;
  letter-spacing: 4px;
  font-size: 3em;
  text-transform: uppercase;
  font-weight: bold;
  font-family: "Arial Black";
  opacity: 0.7;
  color: white;
  text-shadow: 0 0 15px black;
}

/* -------------------------
   SUBNAV DROPDOWN CONTENT
--------------------------*/
.subnav-content {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1;
  transform: perspective(-10px);
}

.subnav-content a {
  float: left;
  color: white;
  text-decoration: none;
}

.subnav-content a:hover {
  background: #B993D6;
  color: black;
}

.subnav:hover .subnav-content {
  display: flex;
  justify-content: center;
}

/* -------------------------
   SECTIONS
--------------------------*/
section {
  margin: 0em 10em 10em 10em;
  padding: 3em 10em;
}

/* -------------------------
   TYPOGRAPHY
--------------------------*/
h1 {
  color: #111;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 200px;
  font-weight: bold;
  letter-spacing: -1px;
  text-align: center;
  margin: 0;
  padding: 0;
}

p {
  color: #111;
  font-family: 'Calibri', sans-serif;
  font-size: 25px;
  line-height: 1.5;
}

hr {
  background-color: #000;
}
