* {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

body {
  /* background: linear-gradient(#545454, #454545, #676767); */
  /* background-color: #ea7401  hsl(30,99%,46%)rgb(234,116,1)    ; */
  z-index: -1;
  position: relative;
}

.content-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
  width: 100%;
  flex-direction: column;
  align-content: stretch;
  justify-content: space-between;
  background-color: #dfdfdf;
  z-index: -1;
  position: relative;
}

.section-1 {
}

.section-2 {
  border-radius: 10px;
  height: 755px;
  margin: 20px 20px 20px 20px;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-content: stretch;
  justify-content: space-between;
  padding: 10px 0px 0px 0px;
}

.orange-bar {
  background-color: #ea7401;
  width: 100%;
  height: 20px;
  z-index: 0;
  position: relative;
}

.breadcrumbs {
  color: black;
  text-decoration: none;
  font-size: 18px;
  font-family: Bookman Old Style, serif;
  font-weight: 300;
  margin: 0px 0px 0px 20px;
}

a:link {
  text-decoration: none;
  color: grey;
}
a:visited {
  text-decoration: none;
}
a:active {
  text-decoration: none;
}

/* FLEX  */

.dice {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  perspective: 600px;
}

.die-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: 6rem;
  list-style-type: none;
  transform-style: preserve-3d;
  width: 6rem;
}
.even-roll {
  transition: transform 3.0s ease-out;
}
.odd-roll {
  transition: transform 2.75s ease-out;
}
.die-item {
  box-shadow: inset -0.35rem 0.35rem 0.75rem rgba(143, 142, 142, 0.3),
    inset 0.5rem -0.25rem 0.5rem rgba(176, 175, 175, 0.15);
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-areas:
    "one two three"
    "four five six"
    "seven eight nine";
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  padding: 1rem;
  width: 100%;
}

.die-item2 {
  box-shadow: inset -0.35rem 0.35rem 0.75rem rgba(0, 0, 0, 0.3),
    inset 0.5rem -0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-areas:
    "one two three"
    "four five six"
    "seven eight nine";
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  padding: 1rem;
  width: 100%;
}

.dot {
  align-self: center;
  background-color: white;
  border-radius: 50%;
  box-shadow: inset -0.15rem 0.15rem 0.25rem rgba(0, 0, 0, 0.5);
  display: block;
  height: 1.25rem;
  justify-self: center;
  width: 1.25rem;
}

/* Dice Colors */

.die-item[data-side="6"] {
  background-color: black;
}
.die-item[data-side="5"] {
  background-color: black;
}
.die-item[data-side="4"] {
  background-color: black;
}
.die-item[data-side="3"] {
  background-color: black;
}
.die-item[data-side="2"] {
  background-color: black;
}
.die-item[data-side="1"] {
  background-color: black;
}

/* Dice Colors 2  */

.die-item2[data-side="6"] {
  background-color: red;
}
.die-item2[data-side="5"] {
  background-color: red;
}
.die-item2[data-side="4"] {
  background-color: red;
}
.die-item2[data-side="3"] {
  background-color: red;
}
.die-item2[data-side="2"] {
  background-color: red;
}
.die-item2[data-side="1"] {
  background-color: red;
}

.even-roll[data-roll="1"] {
  transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
}
.even-roll[data-roll="2"] {
  transform: rotateX(450deg) rotateY(720deg) rotateZ(328deg);
}
.even-roll[data-roll="3"] {
  transform: rotateX(360deg) rotateY(630deg) rotateZ(360deg);
}
.even-roll[data-roll="4"] {
  transform: rotateX(360deg) rotateY(810deg) rotateZ(360deg);
}
.even-roll[data-roll="5"] {
  transform: rotateX(270deg) rotateY(720deg) rotateZ(360deg);
}
.even-roll[data-roll="6"] {
  transform: rotateX(360deg) rotateY(197deg) rotateZ(360deg);
}
.odd-roll[data-roll="1"] {
  transform: rotateX(-360deg) rotateY(18deg) rotateZ(-360deg);
}
.odd-roll[data-roll="2"] {
  transform: rotateX(-270deg) rotateY(-720deg) rotateZ(-360deg);
}
.odd-roll[data-roll="3"] {
  transform: rotateX(-360deg) rotateY(292deg) rotateZ(-360deg);
}
.odd-roll[data-roll="4"] {
  transform: rotateX(-360deg) rotateY(-630deg) rotateZ(-360deg);
}
.odd-roll[data-roll="5"] {
  transform: rotateX(-450deg) rotateY(-720deg) rotateZ(-360deg);
}
.odd-roll[data-roll="6"] {
  transform: rotateX(-360deg) rotateY(-900deg) rotateZ(-360deg);
}
[data-side="1"] {
  transform: rotate3d(0, 0, 0, 90deg) translateZ(4rem);
}
[data-side="2"] {
  transform: rotate3d(-1, 0, 0, 90deg) translateZ(4rem);
}
[data-side="3"] {
  transform: rotate3d(0, 1, 0, 90deg) translateZ(4rem);
}
[data-side="4"] {
  transform: rotate3d(0, -1, 0, 90deg) translateZ(4rem);
}
[data-side="5"] {
  transform: rotate3d(1, 0, 0, 90deg) translateZ(4rem);
}
[data-side="6"] {
  transform: rotate3d(1, 0, 0, 180deg) translateZ(4rem);
}
[data-side="1"] .dot:nth-of-type(1) {
  grid-area: five;
}
[data-side="2"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="2"] .dot:nth-of-type(2) {
  grid-area: nine;
}
[data-side="3"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="3"] .dot:nth-of-type(2) {
  grid-area: five;
}
[data-side="3"] .dot:nth-of-type(3) {
  grid-area: nine;
}
[data-side="4"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="4"] .dot:nth-of-type(2) {
  grid-area: three;
}
[data-side="4"] .dot:nth-of-type(3) {
  grid-area: seven;
}
[data-side="4"] .dot:nth-of-type(4) {
  grid-area: nine;
}
[data-side="5"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="5"] .dot:nth-of-type(2) {
  grid-area: three;
}
[data-side="5"] .dot:nth-of-type(3) {
  grid-area: five;
}
[data-side="5"] .dot:nth-of-type(4) {
  grid-area: seven;
}
[data-side="5"] .dot:nth-of-type(5) {
  grid-area: nine;
}
[data-side="6"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="6"] .dot:nth-of-type(2) {
  grid-area: three;
}
[data-side="6"] .dot:nth-of-type(3) {
  grid-area: four;
}
[data-side="6"] .dot:nth-of-type(4) {
  grid-area: six;
}
[data-side="6"] .dot:nth-of-type(5) {
  grid-area: seven;
}
[data-side="6"] .dot:nth-of-type(6) {
  grid-area: nine;
}

.results {
  align-self: center;
  background-color: #efefef;
  border: none;
  color: #333;
  font-size: 1.25rem;
  font-weight: 700;
  justify-self: center;
  padding: 0.5rem;
  border-radius: 5px;
}

.results-box {
  display: flex;
  flex-direction: row;
  align-content: space-around;
  overflow-y: auto;
  max-height: 80px;
  width: 140px;
  perspective: 600px;
}

#count {
  color: Black;
  font-weight: 300;
  padding: 0.5rem;
  font-size: 1.25rem;
}

#result1 {
  color: Black;
  font-weight: 900;
  padding: 0.5rem;
  font-size: 1.25rem;
}

#result2 {
  color: red;
  font-weight: 900;
  padding: 0.5rem;
  font-size: 1.25rem;
}

h3 {
  color: rgb(77, 76, 76);
  font-weight: 300;
  font-size: 1.25rem;
}

button {
  align-self: center;
  background-color: #a39a9a;
  border: none;
  color: #333;
  font-size: 1.25rem;
  font-weight: 300;
  justify-self: center;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

button:hover {
  cursor: pointer;
}

/*  NAV BAR */

/* Add a black background color to the top navigation */
.topnav {
  background-color: #ffffff;
  overflow: hidden;
  height: 50px;
  padding: 10px 7px 22px 6px;
}

/* Style the links inside the navigation bar */
.topnav a {
  margin-top: 10px;
  margin-left: 20px;
  float: right;
  display: inline-block;
  text-align: center;
  color: grey;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
}

.logo a {
  float: left;
  display: block;
  color: grey;
  text-align: left;
  padding: 4px 16px;
  text-decoration: none;
  font-size: 17px;
  flex-direction: row;
  flex-wrap: wrap;
}

.logo img {
  height: 43px;
  width: 253px;
}

/* FOOTER */

.footer {
  height: 100px;
  /* position: fixed; */
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #313437;
  color: white;
}

.footer-nav a {
  margin-top: 20px;
  margin-left: 20px;
  float: left;
  display: inline-block;
  text-align: center;
  color: #f2f2f2;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
}

/* MEDIA Queries */

/* Iphone 13 */
@media only screen and (min-device-width: 370px) and (max-device-width: 844px) and (orientation: landscape) {
  .breadcrumbs {
    margin: 0px 0px 13px 20px;
  }
  .section-2 {
    justify-content: normal;
    /* margin: 20px 20px 21px 20px; */

  }

  .footer {
    display: none;
  }

  .footer-nav {
    display: none;
  }

  .content-wrapper {
    overflow-y: scroll;
  }



}


@media (max-width: 390px) {

  .footer-nav a {
    display: none;
}

/* .section-2 {
 
  margin: 20px 20px 21px 20px;

} */
  

}

@media (min-width: 900px) {
  .dice {
    perspective: 1300px;
  }
}

@media (max-width: 583px) {
  .dice {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    perspective: 600px;
    align-content: stretch;
    flex-wrap: nowrap;
    align-items: center;
    height: 600px;
  }
}

@media (max-width: 670px) {
  .footer {
    width: 100%;
    height: 5%;
    background-color: white;
    color: white;
  }
}

@media (max-width: 375px) {


  .content-wrapper {
    height: 100vh;
    overflow: hidden;
    width: 100%;
    flex-direction: column;
    align-content: stretch;
    justify-content: space-between;
    background-color: #dfdfdf;
    z-index: -1;
    position: relative;
  }
 
  .section-2 {
    border-radius: 10px;
    height: 533px;
        margin: 5px 5px 82px 5px;    
        background-color: white;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    justify-content: space-between;
    padding: 5px 0px 0px 0px;
  }

  .dice {
    height: 559px;
  }
}

/* Mobile  Menu */

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #00baf0;
  background: white;
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: black;
  height: 50px;
  padding: 1em;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: black;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

@media (max-width: 900px) {
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #222;
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
}
