html, body {
  font-size: 16px;
  line-height: auto;
  font-family: 'Roboto', sans-serif;
  margin-left: auto;
  margin-right: auto;
}

/* media sizing */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
body {
  font-size: 16px;
  width:auto;
  margin: 5px 20px 5px 20px;
}
    
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
body {
  font-size: 16px;
  width: 580px;
  margin-top: 5rem;
  margin-left:auto;
  margin-right: auto;

    }
    
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
body {
  font-size: 20px;
  width:700px;
  margin-top: 5rem;
}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
body {
  font-size: 20px;
  width:900px;
  margin-top: 5rem;
}   
}

/* XLarge devices (laptops/desktops, 1280px and up) */
@media only screen and (min-width: 1280px) {
body {
  font-size: 22px;
  width:1100px;
  margin-top: 5rem;

    }   
}

/* header definitions */

h1 {
    text-align: center
}
h2 {
    font-size: 150%;
    font-weight: 500; 
    text-align: center;
    padding-top: 3rem;
}

h3 {
    font-size:125%;
    font-weight:500;
    text-align: center;
}

h4 {
    font-size:125%;
    font-weight:500;
    text-align: center;
    padding-top: 4.5rem;
}

/* text styling */
.review {
    font-weight:400;
    margin-bottom: 0.5em;
}

.rattrib {
    font-weight:300;
    font-size: 90%;
    text-align: right;
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.trousseau {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.trot {
    text-align: center;
    font-size:120%;
}

.troa {
    text-align: center;
    font-size:90%;
}

ul {
    list-style-type: '— ';
}

img{
        max-width: 100%;
        align-items: center;
        display: block; /* remove extra space below image */
    }

/* flexbox */

* { box-sizing: border-box; } 

.wrapper {
  border-radius: 2px;
  margin-bottom: 2px;
}

.wrapper > div {
  border-radius: 2px;
  padding: 2px;
}

.flex {
display: flex;
  flex-wrap: wrap;
}


.flex > * {
  flex: 1 0 250px;
  margin: 2px;
}



/* This is all for the menu */

nav {
    position: fixed;
    top: 0;
    width: inherit;
    font-size: 100%;
    font-weight:500;
} 

 .menu {
  background: #ffcc66;
  height: 4rem;
}
.menu ol {
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
}
.menu > ol {
  max-width: 1000px;
  padding: 0 2rem;
  display: flex;
}
.menu > ol > .menu-item {
  flex: 1;
  padding: 0.75rem 0;
}
.menu > ol > .menu-item:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  bottom: 5px;
  left: calc(50% - 2px);
  background: #ff3300;
  will-change: transform;
  transform: scale(0);
  transition: transform 0.2s ease;
}
.menu > ol > .menu-item:hover:after {
  transform: scale(1);
}
.menu-item {
  position: relative;
  line-height: 2.5rem;
  text-align: center;
}
.menu-item a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  color: #332200;
}
.sub-menu .menu-item {
  padding: 0.75rem 0;
  background: #ffcc66;
  opacity: 0;
  transform-origin: bottom;
  animation: enter 0.2s ease forwards;
}
.sub-menu .menu-item:nth-child(1) {
  animation-duration: 0.2s;
  animation-delay: 0s;
}
.sub-menu .menu-item:nth-child(2) {
  animation-duration: 0.3s;
  animation-delay: 0.1s;
}
.sub-menu .menu-item:nth-child(3) {
  animation-duration: 0.4s;
  animation-delay: 0.2s;
}
.sub-menu .menu-item:hover {
  background: #ffaa00;
}
.sub-menu .menu-item a {
  padding: 0 0.75rem;
}
@media screen and (max-width: 600px) {
  .sub-menu .menu-item {
    background: #ffbb33;
  }
}
@media screen and (max-width: 600px) {
  .menu {
    position: sticky;
  }
  .menu:after {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 1rem;
    width: 30px;
    height: 4px;
    background: #332200;
    box-shadow: 0 10px #332200, 0 -10px #332200;
  }
  .menu > ol {
    display: none;
    background: #ffcc66;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    animation: fade 0.2s ease-out;
  }
  .menu > ol > .menu-item {
    flex: 0;
    opacity: 0;
    animation: enter 0.3s ease-out forwards;
  }
  .menu > ol > .menu-item:nth-child(1) {
    animation-delay: 0s;
  }
  .menu > ol > .menu-item:nth-child(2) {
    animation-delay: 0.1s;
  }
  .menu > ol > .menu-item:nth-child(3) {
    animation-delay: 0.2s;
  }
  .menu > ol > .menu-item:nth-child(4) {
    animation-delay: 0.3s;
  }
  .menu > ol > .menu-item:nth-child(5) {
    animation-delay: 0.4s;
  }
  .menu > ol > .menu-item + .menu-item {
    margin-top: 0.75rem;
  }
  .menu > ol > .menu-item:after {
    left: auto;
    right: 1rem;
    bottom: calc(50% - 2px);
  }
  .menu > ol > .menu-item:hover {
    z-index: 1;
  }
  .menu:hover > ol {
    display: flex;
  }
  .menu:hover:after {
    box-shadow: none;
  }
}

.sub-menu {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  display: none;
  z-index: 1;
}
.menu-item:hover > .sub-menu {
  display: block;
}
@media screen and (max-width: 600px) {
  .sub-menu {
    width: 100vw;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

* {
  box-sizing: border-box;
}
*:before, *:after {
  box-sizing: inherit;
}

a {
  text-decoration: none;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: scaleY(0.98) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
