* {
  box-sizing: border-box;
}

@font-face {
  font-family: slencoBlk;
  src: url(slencoBlk.otf)
}

.bodyy {
  background-image: url("reeeeed.jpg");
  background-color: #240205;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #261618;
  font-family: slencoBlk, Verdana;
  letter-spacing: 1.5px;
  cursor: url('IMG_0630.png'), auto;
}

body.bodyy::selection {
  color: #261618;
  background: #635d5e98;
}

body.bodyy::-webkit-scrollbar {
  width: 10px;
}

body.bodyy::-webkit-scrollbar-track {
  background: #635d5e98;
}

body.bodyy::-webkit-scrollbar-thumb {
  background: #261618;
  border-radius: 20px;
}

body.bodyy::-webkit-scrollbar-thumb:hover {
  background: #785b5d;
}

ul {
  list-style-type: none;
  margin: 1em;
  padding: 0;
  text-align: left;
}

.webtitle {
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
  margin-top: 0.5em;
  text-align: center;
  padding: 1em;
  background-color: #635d5e90;
  border-color: gray;
  border-radius: 2.5em;
}

.mainn {
  display: grid;
  justify-content: center;
  grid-template:
        "header header sidetwo"
        "sidebar main sidetwo"
        "footer footer sidetwo" / 200px 1fr 200px;
  margin: auto;
  padding: 10px;
  width: 80%;
  border-color: #261618;
  border-style: solid;
  border-width: 0.3em;
  border-radius: 1.7em;
}

.menu {
  grid-area: sidebar;
  justify-content: center;
  text-align: center;
  padding: 1em;
  background-color: #261f2088;
  border-color: gray;
  border-radius: 1em;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  margin-left: 0.5em;
  margin-right: 0.2em;
}

.sidee {
  grid-area: sidetwo;
  justify-content: center;
  text-align: center;
  padding: 1em;
  background-color: #261f2088;
  border-color: gray;
  border-radius: 1em;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  margin-left: 0.2em;
  margin-right: 0.5em;
}

h3.contents {
  text-align: center;
}

.contents {
  grid-area: main;
  justify-content: center;
  text-align: left;
  padding: 1em;
  background-color: #261f2088;
  border-color: gray;
  border-radius: 1em;
  margin: 0.2em;;
}

h3.alignh3 {
  text-align: center;
}

.mainhead {
  grid-area: header;
  text-align: center;
  padding: 1em;
  background-color: #261f2088;
  border-color: gray;
  border-radius: 1em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  overflow: hidden;
  display: flex;
  &:hover .csel {
      animation-play-state: paused;
    }
}

.csel {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  will-change: transform;
  animation: scrolling 40s linear infinite;
}

@keyframes scrolling {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
}

/*.csel:hover {
  animation-play-state: paused;

}*/

.carimg:hover {
    animation: shake 3s;
    animation-iteration-count: infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg) scale(1.1); }
  10% { transform: translate(-1px, -2px) rotate(-0.5deg) scale(1.1); }
  20% { transform: translate(-3px, 0px) rotate(0.5deg) scale(1.1);; }
  30% { transform: translate(3px, 2px) rotate(0deg) scale(1.1);; }
  40% { transform: translate(1px, -1px) rotate(0.5deg) scale(1.1);; }
  50% { transform: translate(-1px, 2px) rotate(-0.5deg) scale(1.1);; }
  60% { transform: translate(-3px, 1px) rotate(0deg) scale(1.1);; }
  70% { transform: translate(3px, 1px) rotate(-0.5deg) scale(1.1);; }
  80% { transform: translate(-1px, -1px) rotate(0.5deg) scale(1.1);; }
  90% { transform: translate(1px, 2px) rotate(0deg) scale(1.1);; }
  100% { transform: translate(1px, -2px) rotate(-0.5deg) scale(1.1);; }
}

.foot {
  grid-area: footer;
  text-align: center;
  padding: 1em;
  background-color: #635d5e88;
  border-color: gray;
  border-radius: 1em;
  margin-left: 0.5em;
  margin-right: 0.2em;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

@font-face {
  font-family: blkChcry;
  src: url(BLKCHCRY.TTF)
}

@font-face {
  font-family: Canterbury;
  src: url(Canterbury.ttf);
}

.bodyl {
  background-image: url("better.png");
  background-color: #f0eae1;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #26201A;
  font-family: blkChcry, "Times New Roman";
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.bodyl::selection {
  color: #453729;
  background: #B5987870;
}

.libh {
  font-family: Canterbury, Georgia;
  font-size: 7em;
  text-align: center;
  margin-top:-0.1em;
  color: #26201A;
}

.linkm {
  cursor: url('IMG_0631.png'), auto;
}

a.linkm:link {
  color: #1a241a; 
  text-decoration: none;
}

a.linkm:visited {
  color: #1a241a;
  text-decoration: none;
}

a.linkm:hover {
  color: #465c46;
  text-decoration: none;
}

.libcont {
  background-image: url("parchment3.jpg");
  background-color: #D5C5B3;
  background-size: cover;
  /*background-repeat: repeat-y;*/
  width: 65%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -3em;
  margin-bottom: 2em;
  padding-left: 3em;
  padding-right: 3em;
  padding-top: 3em;
  padding-bottom: 3em;
  overflow-x: hidden;
  border: 30px solid;
  border-image-source: url("med-border2.png");
  border-image-slice: 100;
  border-image-repeat: round;
}

.scrollglry {
  display: flex;
  align-items: center;
}

.gallery1 {
  width: 540px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  height: 200px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery2::-webkit-scrollbar {
    display: none;
}

.gallery2 {
  width: 540px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  height: 200px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery1::-webkit-scrollbar {
    display: none;
}

.books {
  background-color: #AB9B8A60;
  border: solid;
  border-color: #261E15;
  border-radius: 12px;
  width: 500px;
  height: 200px;
  display: grid;
  padding: 10px;
  flex: none;
  margin-left: 20px;
  margin-right: 20px;
}

