body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
  }
  
  code {
    margin-left: 3px;
    margin-right: 10px;
    font-size: 15px;
    transition: font-size 0.2s ease;
  }

  code:hover {
    font-weight: bold;
    font-size: 17px;
  }

  .book-container {
    position: relative;
    width: 100%;
    height: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .book-container-project{
    overflow-y: scroll;
  }
  
  .arrow {
    width: 50px;
    height: 50px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    transition: color 0.3s ease;
    text-decoration: none;
    z-index: 2;
  }

  .left-arrow {
    left: calc((100% - 800px) / 2 + 10px);
  }
  
  .right-arrow {
    right: calc((100% - 800px) / 2 + 10px);
  }
  
  .arrow:hover {
    color: #555;
  }

.book-content {
    position: absolute;
    bottom: 150px;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
  }

  .book-content-project{
    display: grid;
  }

  .box-container {
    margin-bottom: 140px;
  }
  
  h1 {
    font-size: 50px;
    margin-bottom: 10px;
  }
  
  p {
    font-size: 16px;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
  }

  .social-icons {
    position: absolute;
    bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }

  .social-paragraph{
    position: absolute;
    bottom: 90px;
  }
  
  .social-icon {
    margin: 0 50px;
    width: 40px;
    height: 30px;
    transition: transform 0.3s ease;
  }

  .social-icon:hover {
    transform: scale(0.9);
  }
  
  .social-icon img {
    width: 80px;
    height: 80px;
  }

nav {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 999;
}

nav a.active{
  border: 0.1px solid #000;
  background-color: #000;
  color: #fff;
}

.cup-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.cup {
  width: 57px;
  height: 40px;
  border: 0;
  background-color: #fff;
  text-decoration: none;
  border-radius: 0 0 50% 50%;
  position: relative;
  margin: 0;
  top: -12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-size: 13px;
  font-family: "Open Sans", Arial;
}

.cup-bar a{
  font-family: 'Poppins', sans-serif;
}

.rectangle-box {
  width: 690px;
  height: 150px;
  background-color: #333;
  border-radius: 10px;
  margin: 11px auto;
  position: relative;
  transition: transform 0.3s ease;
  top: 167px;
  cursor: pointer;
}

.rectangle-box:hover {
  transform: scale(1.03);
}

.box-content {
  padding: 15px;
  color: #fff;
  text-align: left;
}

.box-title {
  font-size: 18px;
  font-weight: bold;
}

.box-subtitle,
.box-body {
  margin-top: 5px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.box-footer {
  font-size: 14px;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.view-icon {
  text-decoration: none;
  color: #fff;
}

.view-icon:hover{
  font-weight: bold;
}

.left-frame {
  width: 300px;
  height: 300px;
  margin-top: 280px;
  margin-left: 37px;
  border: 2px solid #000;
  border-radius: 50%;
  overflow: hidden;
}

.left-frame:hover img {
  filter: none;
}

.left-frame img {
  filter: grayscale(100%);
  position: relative;
  bottom: 20px;
  right: 10px;
  transition: filter 0.3s;
}

.right-box {
  width: 350px;
  height: 450px;
  padding: 10px;
  margin-top: 320px;
  margin-right: 30px;
  color: #000;
  border-radius: 10px;
  text-align: left;
}

.right-box h5 {
  font-family: 'Poppins', sans-serif;
}

.right-box h5 a {
  color: #000;
}

.badge-container {
  position: relative;
  display: table;
  width: 60%;
  left: 40px;
}

.badge-row {
  display: table-row;
}

.badge {
  display: table-cell;
  padding: 10px 44px;
  margin: 5px;
  background-color: #fff;
  color: #000;
  font-size: 12px;
  border: 1px solid #000;
  border-radius: 3px;
  text-align: center;
  font-weight: bold;
}

.foot-note {
  position: absolute;
  bottom: -150px;
  left: 20px;
  background: none;
  border: none;
  color: #000;
  z-index: 2;
}

.foot-note-project {
  position: relative;
  top: 15px;
  left: -37%;
  z-index: 2;
}

.foot-note p{
  font-size: 12px;
  font-style: script;
}

.foot-note a{
  text-decoration: none;
  color: #333;
}

.slide-right {
  transform: translateX(-100%);
}

.slide-left {
  transform: translateX(100%);
}

.mode-toggle-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    font-size: 24px;
    transition: color 0.3s ease;
    z-index: 2;
}
  
.mode-toggle-button:hover {
    color: #555;
}

.dark-mode {
    background-color: #333;
    color: #fff;
}

.dark-mode .fa-sun {
    color: #fff;
}

.dark-mode .cup {
    background-color: #333;
    color: #fff;
    border: 0;
}

.dark-mode nav a.active{
    background-color: #fff;
    color: #000;
}
  
.dark-mode .social-icon img,
.dark-mode .arrow i {
  filter: invert(100%);
}

.dark-mode .rectangle-box {
  background-color: #fff;
}

.dark-mode .box-content,
.dark-mode .view-icon {
  color: #000;
}

.dark-mode .right-box {
  color:#fff;
}

.dark-mode .left-frame{
  border: 2px solid #fff;
}

.dark-mode .foot-note{
  color: #fff;
}

.dark-mode .foot-note a{
  color: #999999;
}

  /* Media Query for Mobile View */
@media screen and (max-width: 768px) {
  body {
    align-items: flex-end;
  }

  .book-container {
    height: 100vh;
    border-radius: 0;
  }

  .social-icons {
    position: absolute;
    bottom: 10%;
  }
  
  .social-icon {
    margin: 0 2px;
    width: 10vw;
    height: 6vw;
  }

  .social-paragraph {
    position: absolute;
    bottom: 15%;
  }

  .social-icon img {
    width: 9vw;
    height: 9vw;
  }

  nav {
    left: 2vw;
  }

  .arrow {
    width: 8vw;
    height: 8vw;
    font-size: 4vw;
  }

  .left-arrow {
    left: 5px;
  }

  .right-arrow {
    right: 5px;
  }

  .left-frame {
    width: 40vw;
    height: 40vw;
    margin-top: 180px;
    margin-left: 3px;
  }

  .left-frame img {
    position: relative;
    bottom: -7vw;
    right: 0vw;
    width: auto;
    height: 50vw;
    transform: scale(1.4);
  }  
  
  .right-box {
    font-size: 1.6rem;
    margin-top: -300px;
    margin-right: -10px;
    width: 90%;
    height: 40vh;
    padding: 10px;
  }

  .right-box h2 {
    margin-top: 25px;
  }

  .right-box h5 {
    margin-bottom: -5px;
  }

  .rectangle-box {
    width: 90%;
    height: 170px;
  }

  .rectangle-box:hover {
    transform: none;
  }

  .box-subtitle,
  .box-body {
    font-size: 2.1vw;
  }

  .foot-note {
    left: 4vw;
  }

  .foot-note p {
    font-size: 2.3vw;
  }

  .foot-note-project {
    left: -10%;
  }
}

/* Smaller mobile views */
@media screen and (max-width: 480px) {
  .left-frame {
    width: 55vw;
    height: 55vw;
  }

  .left-frame img {
    bottom: -13vw;
    transform: scale(1.71);
  }  

  .right-box {
    font-size: 1.1rem;
  }

  .social-icon {
    width: 12vw;
    height: 7vw;
  }

  .social-icon img {
    width: 10vw;
    height: 10vw;
  }

  .arrow {
    width: 10vw;
    height: 10vw;
    font-size: 5vw;
  }

  .box-subtitle,
  .box-body {
    font-size: 3.5vw;
  }
}

@media screen and (max-width: 390px) {
  .left-frame {
    width: 50vw;
    height: 50vw;
  }

  .right-box {
    font-size: 1.02rem;
    margin-bottom: -20px;
  }
}

@media screen and (max-width: 360px) {
  .left-frame {
    width: 57vw;
    height: 57vw;
  }

  .right-box {
    font-size: 1.07rem;
  }
}

@media screen and (max-width: 320px) {
  .book-content {
    margin-bottom: 0px;
  }

  .left-frame {
    width: 35vw;
    height: 35vw;
  }

  .left-frame img {
    bottom: 0vw;
    transform: scale(1.1);
  }  

  .right-box {
    font-size: 0.75rem;
    margin-bottom: -50px;
  }
}

/* Landscape orientation for mobile devices */
@media screen and (max-width: 920px) and (orientation: landscape) {
  .book-container{
    overflow-y: scroll;
  }
  
  .book-content-mobile-landscape { 
      margin-bottom: -150px;
  }

  .social-icons {
    bottom: -15%;
  }

  .social-paragraph {
    bottom: -3%;
  }
}