body {
  background-image: url("../images/phone_book.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  height: 100%;
}

.dropdown {
  position: relative;
  }

.dropdown-toggle::after {
  content: none;
}
.dropdown-toggle::after {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.nav {
position: relative;
padding-right:3.2rem;
padding-left: 1.8rem;
display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 20%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: rgba(241, 242, 203, 0.5) ;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
   }

.nav:hover .dropdown-menu {
display: block ;
}

.button:hover{
background-color: #f8f9fa;
}

.custom-shadow {
  box-shadow: 5px 5px 25px 19px #000000;
}

.dropdown-item {
  display: block;
  width: 85%;
  padding: 0.15rem 0.5rem;
  clear: both;
  font-weight: 400;
  color: #000000;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  text-decoration: none;
  border-bottom: dotted 1px #333;
}

.dropdown-item:hover, .dropdown-item:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f9fa;
}

.badge.bg-warning.text-dark {
  position: absolute;
  top: 10px;
  right: 5px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 1rem;
  box-shadow: 2px 2px 15px 9px #000000;
}

.badge-banner {
  top: 80%;
  border-radius: 15px;
  font-size: 0.7rem;
}

.navbar {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 4px;
    background-color: rgba(241, 242, 203, 0.7) ;
    color: rgb(77, 42, 35);
    border: 3px solid ;
    text-decoration: none;
    }

.format {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 2px;
    background-color: rgba(241, 242, 203, 0.7) ;
    color: rgb(77, 42, 35);
    border: none ;
    text-decoration: none;
    }

.format:hover {
  background-color: #f8f9fa;
  color: ;
}

.a {
padding-left: 0.5em;
padding-right: 0.5em;
}

a:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

[data-bs-theme=dark] {
    color-scheme: dark;
    --bs-body-color: #adb5bd;
    --bs-body-color-rgb: 173, 181, 189;
    --bs-body-bg: #212529;
    --bs-body-bg-rgb: 33, 37, 41;
    --bs-emphasis-color: #fff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(173, 181, 189, 0.75);
    --bs-secondary-color-rgb: 173, 181, 189;
    --bs-secondary-bg: #343a40;
    --bs-secondary-bg-rgb: 52, 58, 64;
    --bs-tertiary-color: rgba(173, 181, 189, 0.5);
    --bs-tertiary-color-rgb: 173, 181, 189;
    --bs-tertiary-bg: #2b3035;
    --bs-tertiary-bg-rgb: 43, 48, 53;
    --bs-primary-text-emphasis: #6ea8fe;
    --bs-secondary-text-emphasis: #a7acb1;
    --bs-success-text-emphasis: #75b798;
    --bs-info-text-emphasis: #6edff6;
    --bs-warning-text-emphasis: #ffda6a;
    --bs-danger-text-emphasis: #ea868f;
    --bs-light-text-emphasis: #f8f9fa;
    --bs-dark-text-emphasis: #dee2e6;
    --bs-primary-bg-subtle: #031633;
    --bs-secondary-bg-subtle: #161719;
    --bs-success-bg-subtle: #051b11;
    --bs-info-bg-subtle: #032830;
    --bs-warning-bg-subtle: #332701;
    --bs-danger-bg-subtle: #2c0b0e;
    --bs-light-bg-subtle: #343a40;
    --bs-dark-bg-subtle: #1a1d20;
    --bs-primary-border-subtle: #084298;
    --bs-secondary-border-subtle: #41464b;
    --bs-success-border-subtle: #0f5132;
    --bs-info-border-subtle: #087990;
    --bs-warning-border-subtle: #997404;
    --bs-danger-border-subtle: #842029;
    --bs-light-border-subtle: #495057;
    --bs-dark-border-subtle: #343a40;
    --bs-heading-color: inherit;
    --bs-link-color: #6ea8fe;
    --bs-link-hover-color: #8bb9fe;
    --bs-link-color-rgb: 110, 168, 254;
    --bs-link-hover-color-rgb: 139, 185, 254;
    --bs-code-color: #e685b5;
    --bs-border-color: #495057;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
    --bs-form-valid-color: #75b798;
    --bs-form-valid-border-color: #75b798;
    --bs-form-invalid-color: #ea868f;
    --bs-form-invalid-border-color: #ea868f;
}

.bg-dark {
    background-color: rgba(241, 242, 203, 0.7) !important;
    color: #160501;
}

.container {
    position: relative;
    width: 95%;
    padding-right: 0.5rem;
    padding-bottom: 0.3125rem;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    border: none;
}
.container2 {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: 0.3125rem;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    border: none;

}
.btn {
  --bs-gutter-x: 1.5rem;
  display: inline-block;
  font-weight: 300;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding-right: calc(var(--bs-gutter-x)* .2);
  padding-left: calc(var(--bs-gutter-x)* .4);
  padding-bottom: 0.3125rem;
  font-size: 1.12rem;
  line-height: 0.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  background-color:  rgba(241, 252, 223, 0.6) ;
  border: 3px solid ;
}
.btnd{
    width: 177px;
    height: 40px;
    background-color: white;
    text-align: center;
    vertical-align: middle;
    border-style: ridge;
    border-radius: 3px;
}

.btn-link{
    background-color: rgba(241, 252, 223, 0.1);
    text-align: center;
    vertical-align: middle;
    border: none;
    font-size: 1.12rem;
    color: blue;
    text-decoration:solid;
    }

.btn1 {
  position: sticky;
  display: inline-block;
  direction: ltr;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  padding-bottom: 0.3125rem;
  font-size: 1.12rem;
  line-height: 0.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
  border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  background-color:  rgba(204, 255, 204, 0.4) ;
  border: 3px solid ;
  color: #33cc33;
  border-color: rgb(77, 42, 35);
}

.btn2 {
  display: flex;
  justify-content: space-between;
  font-weight: 300;
  text-align: left;
  white-space: nowrap;
  font-size: 1.12rem;
  line-height: 0.5;
  margin-left: 20px;
  margin-bottom: 10px;
  background-color: rgba(241, 242, 203, 0.7) ;
  width: 65%;
}

.btns {
  --bs-gutter-x: 0.5rem;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding-left: calc(var(--bs-gutter-x)* .4);
  padding-bottom: 0.3125rem;
  line-height: 0.9;
  font-weight: 200;
  font-size: 15px;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  border: 1px solid;
  width: 55%;
  text-decoration: none;
  color: #160501;
}

.comments {
  --bs-gutter-x: 1.0rem;
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  padding-left: calc(var(--bs-gutter-x)* .4);
  padding-top: 1ch;
  padding-bottom: 1ch;
  line-height: 0.9;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  background-color: rgba(241, 252, 223, 0.6);
  border: 1px solid;
  width: 100%;
  font-style: italic;
  font-size: 100%;
  color: #160501;
}

.btn1:hover, .btn-link:hover, .btn2:hover, .btns:hover{
  color: rgb(0, 204, 0);
  text-decoration: none;
  background-color: #f8f9fa;
}

.btn:hover{
  color: rgb(80, 10, 80);
  text-decoration: none;
  background-color: #f8f9fa;
}
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.navbar-expand-lg .navbar-nav {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

.d-flex {
  display: inline-flex !important;
  -webkit-box-flex: 1;
  padding-left: 0.5rem;
  width: 59%;
  }

.form-control {
  display: block;
  width: 40%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgb(77, 42, 35);
  background-color: rgba(241, 252, 223, 0.6) ; ;
  background-clip: padding-box;
  border: 3px solid rgb(77, 42, 35);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
}

.mt-1,
.my-1 {
  margin-top: 0.25rem !important;
}

.col-lg-10n{
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 10px;
  padding-left: 10px;
  background-color: rgba(241, 252, 223, 0.6) ;
  border: 3px solid rgb(77, 42, 35);
  border-radius: 0.25rem;
  margin: 0 auto;
}

.col-lg-10{
flex: 0 0 auto;
width: 90%;
background-color: rgba(241, 252, 223, 0.6) ;
border: 3px solid rgb(77, 42, 35);
border-radius: 0.25rem;
padding-right: 5px;
padding-left: 5px;
}

.col-lg-4 {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.p-4 {
  padding: 1.5rem !important;
}
.border-primary {
  border-color: #007bff !important;
}

.card-img-top {
  width: 30%;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.leftimg {
position:sticky;
width: 16%;
z-index:5;
float:left; /* Вирівнювання по лівому краю */
text-align: center;
margin: 0px 10px 0 5px; /* Відступи навколо картинки */
border-top-left-radius: calc(0.25rem - 1px);
border-top-right-radius: calc(0.25rem - 1px);
color: rgb(77, 42, 35);
}

.image-text-container {
  float:left;
  text-align: center;
  position: relative;
  display: inline-block;
}

.text-card {
position: absolute;
width: 70%;
top: 10%;
left: 18%;
}

.text-overlay1 {
  position: relative;
  width: 33%;
  top: -44%;
  left: 35%;
  transform: translate(-50%, -50%);
  color: red;
  font-size: x-large;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.text-overlay {
  position: absolute;
  width: 33%;
  top: 38%;
  left: 10%;
  transform: translate(-50%, -50%);
  color: red;
  font-size: 12px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.mt-5{
  text-align: center;
  margin-top: 1rem !important;
  margin-left: 1rem
}

.mt-5b {
    text-align: center;
    margin-top: 1rem !important;
    margin-left: 15rem;
    justify-content: space-between;
    padding-top: 0.3125rem;
    padding-left: 5rem;
    padding-right: 5rem;
    padding-bottom: 0.3125rem;
    background-color: rgba(241, 242, 203, 0.7) ;
    color: rgb(77, 42, 35);
    border: 3px solid ;
    text-decoration: none;
    position: relative;
    }

.pt-5 {
  text-align:justify;
  text-decoration-color: #ffffff;
  color: #000000 ;
  white-space: pre-line;
 }

.text-menu {
  color: var(--bs-light-border-subtle);
}

.me-2 {
    margin-left: 10rem !important;
}
.me-3 {
  color: #990000;
  text-align: left;
}

.me-4 {
  color: Red;
  text-align: inherit;
}

.me-5 {
  color: Green;
  text-align: left;
}

.me-6 {
  color: #999900;
  text-align: center;
}

.rounded {
  border-radius: 0.25rem !important;
}

.card {
 --bs-card-spacer-y: 1rem;
  --bs-card-spacer-x: 1rem;
  --bs-border-radius: 0.375rem;
  --bs-card-title-spacer-y: 0.5rem;
  --bs-card-title-color: ;
  --bs-card-subtitle-color: ;
  --bs-border-width: 1px;
  --bs-card-border-width: 1px;
  --bs-card-border-color: rgba(0, 0, 0, 0.175);
  --bs-card-border-radius: var(--bs-border-radius);
  --bs-card-box-shadow: ;
  --bs-card-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
  --bs-card-cap-padding-y: 0.5rem;
  --bs-card-cap-padding-x: 1rem;
  --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.03);
  --bs-card-cap-color: ;
  --bs-card-height: 280px ;
  --bs-card-color: ;
  --bs-card-bg: var(--bs-body-bg);
  --bs-card-img-overlay-padding: 1rem;
  --bs-card-group-margin: 0.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: rgb(77, 42, 35);
  word-wrap: break-word;
  background-color: var(--bs-card-bg);
  background-clip: border-box;
  border: var(--bs-card-border-width) solid var(--bs-card-border-color);
  border-radius: var(--bs-card-border-radius);
}

.card-body {
  width: 90%;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  }

.mb-2,
.my-2 {
  margin-bottom: 0.5rem !important;
}

.py-4{
       padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        position: relative;
        width: 92%;
        margin-left: 2rem;
      }

.m-0 {
  margin:0!important
}

.col-md-4 {
    display: block ;
    flex: 0 0 auto;
    width: 21%;
   }

.col-mid-4 {
    margin-left: 1rem !important;
    flex: 0 0 auto;
    width: 54%;
   }

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.img-thumbnail {
  padding: .25rem;
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  max-width: 100%;
  height: auto;
}

.card-title {
  margin-bottom: var(--bs-card-title-spacer-y);
  color: #330019;
  text-align: center;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
.justify-content-center {
  justify-content: center !important;
}
.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.page-link:hover {
  color: #0056b3;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-link:focus {
  z-index: 2;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.page-link:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
  z-index: 1;
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: #dee2e6;
}

.box-2, gpay-container{
display: flex;
justify-content: center;
min-height: 30vh;
margin-top: 20px;
margin-left: 30px;
}

.cube{
position: relative;
width: 100px;
height: 50px;
transform-style: preserve-3d;
transform: rotateX(30deg) ;
animation: animate 7s linear infinite;
}

@keyframes animate {
0%{
	transform: rotateX(-30deg) rotateY(0deg);
  }
100%{
	transform: rotateX(-30deg) rotateY(360deg);
    }
}

.cube div{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform-style: preserve-3d;
}

.bg1{
background: linear-gradient(#d9c082, #c27037);
flex-wrap: wrap;
color: #a6d982;
}

.bg2{
background: linear-gradient(#f0f1b0, #f5f6cc);
flex-wrap: wrap;
text-align: center;
top: 50%;
font-size: small;
text-decoration: none;
}

.bg3{
background: linear-gradient(#d9c082, #c27037);
flex-wrap: wrap;
}

.bg4{
background: linear-gradient(#ff6b6b, #68a7d4);
flex-wrap: wrap;
}

.cube:hover{
  background-color: #f8f9fa;
  background-image: url("../images/lib2.png");
  color: ;
}
.cube div span{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: rotateY(calc(90deg*var(--i))) translateZ(40px);
}

.top {
position: absolute;
top: 0;
left: 0;
background: #f5f6cc;
transform: rotateX(90deg) translateZ(-70px);
filter: blur(20px);
box-shadow: 0 0 80px rgb90255,107,107,0.2);
}
article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}

.book-container {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
  margin-right: 1.3rem;
}

@keyframes initAnimation {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(-30deg);
  }
}

.book {
  width: 100px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-30deg);
  transition: 1s ease;
  animation: 1s ease 0s 1 initAnimation;
 }

.book-container:hover .book,
.book-container:focus .book {
  transform: rotateY(0deg);
}

.book > :first-child {
  position: absolute;
  top: 0;
  left: 0;
  background-color: red;
  width: 100px;
  height: 150px;
  transform: translateZ(15px);
  background-color: #01060f;
  border-radius: 0 2px 2px 0;
  box-shadow: 5px 5px 20px #666;
  margin-right: 2rem;
}

.book::before {
  position: absolute;
  content: ' ';
  background-color: blue;
  left: 0;
  top: 1px;
  width: 28px;
  height: 148px;
  margin-right: 2rem;
  transform: translateX(84px) rotateY(90deg);
  background: linear-gradient(90deg,
    #fff 0%,
    #f9f9f9 5%,
    #fff 10%,
    #f9f9f9 15%,
    #fff 20%,
    #f9f9f9 25%,
    #fff 30%,
    #f9f9f9 35%,
    #fff 40%,
    #f9f9f9 45%,
    #fff 50%,
    #f9f9f9 55%,
    #fff 60%,
    #f9f9f9 65%,
    #fff 70%,
    #f9f9f9 75%,
    #fff 80%,
    #f9f9f9 85%,
    #fff 90%,
    #f9f9f9 95%,
    #fff 100%
    );
}

.book::after {
  position: absolute;
  top: 0;
  left: 0;
  content: ' ';
  width: 100px;
  height: 150px;
  margin-right: 2rem;
  transform: translateZ(-15px);
  background-color: #01060f;
  border-radius: 0 2px 2px 0;
  box-shadow: -10px 0 50px 10px #666;
}
input[type="number" i] {
   align-items: center;
    padding-block: 1px;
    padding-inline: 2px;
    width: 170px;
    height: 20px;
    margin-bottom: 10px;
}