body {
  margin:0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  font-family: monospace;
}

}
div.notcentered{
  font-size: 55%;
  text-align: left;
}
section.backhead {
  background-image: url('../img/header.png');
  background-repeat:no-repeat;
  background-size: auto;
  border-bottom: 12px black;
  border-style: double;
}
nav {
  background-color: lightgrey; 
  padding-left: 16px;
  padding-right: 16px;
}
nav .menuItems {
  list-style: none;
  display: flex;
}
nav .menuItems li {
  margin-left: 50px;
  margin-right: 50px;
}
nav .menuItems li a {
  text-decoration: none;
  color: black;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.5s ease-in-out;
  position: relative;

}
nav .menuItems li a::before {
  content: attr(data-item);
  transition: 0.5s;
  color: #99cccc;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 0;
  overflow: hidden;
}
nav .menuItems li a:hover::before {
  width: 100%;
  transition: all 0.5s ease-in-out;
}
div.small {
  overflow: hidden; 
  border-right: .15em solid black; 
  white-space: nowrap; 
  margin: 0 auto;
  letter-spacing: .15em;
  animation: 
    smalltype 2.5s steps(40, end),
    flash 1s step-end infinite;
}


@keyframes smalltype {
  from { width: 0 }
  to { width: 100% }
}

@keyframes flash {
  from, to { border-color: transparent }
  50% { border-color: black; }
}
div.background {
        text-align: center;
       margin-left:20%;
       margin-top: 2%; 
       margin-right:20%;
       font-size: 150%;
       font-family: monospace;
       color: black;
       text-shadow: 0.06rem 0 0.06rem #ea36af, -0.125rem 0 0.06rem #75fa69;
       letter-spacing: 0.125em;
       animation-duration: 0.01s;
       animation-name: textflicker;
       animation-iteration-count: infinite;
       animation-direction: alternate;
}
@keyframes textflicker {
  from {
    text-shadow: 1px 0 0 #ea36af, -2px 0 0 #75fa69;
  }
  to {
    text-shadow: 2px 0.5px 2px #ea36af, -1px -0.5px 2px #75fa69;
  }
}


div.titleback{
      font-size: 5rem;
      text-align: center;
      color: #fcedd8;
      font-family: monospace;
      font-weight: 700;
      text-shadow: 5px 5px 0px black, 
                  10px 10px 0px #87e1c7, 
                  15px 15px 0px #5b828f, 
                  20px 20px 0px #98d9d9, 
                  25px 25px 0px #ffc985;
}

.text {
  width: 30%;
  float: right;
  padding-top: 6%;
  padding-right: 17%;
  padding-left: 3%;
}

img.hov {border: 4px dotted black;  width: 28%; float: left;}
img.hov:hover {
  border: 6px solid black;
}
section.desins {
  width: 100%;


}

.book {
  transform-style: preserve-3d;
  position: relative;
  height: 300px;
  cursor: pointer;
  backface-visibility: visible;
}

.front, .back, .leftpage, .rightpage {
  transform-style: preserve-3d;
  position: absolute;
  width: 300px;
  height: 150%;
  top: 0; left: 0;
  transform-origin: left center;
  transition: transform .5s ease-in-out, box-shadow .35s ease-in-out;
}

.front, .back {
  background-color: black;
}

.leftpage { 
  background: #efefef;
}

.rightpage {
  background: #efefef;
}

.book:hover .front {
  transform: rotateY(-160deg) scale(1.1);
  box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.book:hover .leftpage {
  transform: rotateY(-150deg) scale(1.1);
  box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}
.book:hover .rightpage {
  transform: rotateY(-30deg) scale(1.1);
  box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}
.book:hover .back {
  transform: rotateY(-20deg) scale(1.1);
}
.bookint {
  padding-top: 8%;
  text-align: center;
}
p.bottle {

  padding-left: 50%;
  padding-right: 50%;
  width: 65;
  background-image: url('../img/botbroke.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;  }
p.bottle:hover {
  background-image: url('../img/bot.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}