body {
  background-image: url('img/elem/bg.png'); 
  background-size: cover; 
  background-repeat: no-repeat; 
}

#main {
  width: 35%;
  margin: auto; 
}

#notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); 
  width: 250px;
  height: auto;
  max-width: 90%;
  padding: 20px;
  text-align: center;
  z-index: 10;

  background: rgba(0, 0, 0, 0.8); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);

  animation: zoomIn 0.6s ease-out forwards;
}

@keyframes zoomIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}


@keyframes zoomOut {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  40% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

#notice.closing {
  animation: zoomOut 0.4s ease-in forwards;
}

#notice img {
  
 
  border-radius: 10px;
  width: 94%;
  height: auto;
  display: block;
  margin: 0 auto;
}

#notice p {
  margin-top: 10px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

#close-btn {
  position: absolute;
  top: 1px;
  right: 8px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: white;
}

#close-btn:hover {
  color: red;
}

#comiccont{
    
    margin-top: 20px;
    height: 600px;
}

footer{
    
    margin-top: 630px;
}

#ciit{
    
  float: right;
  margin-top: 70px;
  max-width: 100%;  
}

#logo{
    
    float: left;
      display: block; 
  margin: 0 auto;
  
  max-width: 100%;  
}



.lang {
  background-color: black;
  color: white;
  padding: 10px;
  padding-right: 75px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
}

.lang:hover {
  opacity: 80%;
}

.chaps {
  background-color: black;
  color: white;
  padding: 10px;
  padding-right: 29px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
}

.lang:hover {
  opacity: 80%;
}



#head{
margin-top: 20px;
    
}

.about{
    
width: 70%;
    
margin: 0 auto;
margin-top: 0px;max-width: 100%; 
font-size: 15px;
font-family: 'Helvetica', sans-serif;  
    
    
}

#settings{
    
   float: right; 
}

#settings .dropdown-content {
  right: 0;
  left: auto;
}

body.dark-mode {
  background-color: #121212;
  background-image: none;    
  color: #ffffff; 
}

.dark {
    color: white;
}

#cog {
  
  width: 26px;   
  height: 26px;
  padding: 6px;
  border-radius: 30px;
  background: black;
transition: transform 0.3s ease;
}

@keyframes spinEaseOut {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(330deg);
    animation-timing-function: ease-out;
  }
  60% {
    transform: rotate(100deg);
    animation-timing-function: ease-out;
  }
  100% {
    transform: rotate(90deg);
  }
}

#cog:hover {
  animation: spinEaseOut 1.2s forwards;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
    
 font-family: 'Helvetica', sans-serif;
  position: absolute;
  background: rgba(0, 0, 0, 0.8); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 152px;
  

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  transform-origin: center;
  background-color: #ddd;
  color: black;
  transform: scale(1.05);
}

.dropdown-content2 {
    
 font-family: 'Helvetica', sans-serif;
  position: absolute;
  background: rgba(0, 0, 0, 0.8); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 160px;
  

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1;
}

.dropdown-content2 a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.dropdown-content2 a:hover {
  transform-origin: center;
  background-color: #ddd;
  color: black;
  transform: scale(1.05);
}

.dropdown:hover .dropdown-content {
  max-height: 500px; 
  opacity: 1;
  transform: translateY(0);
}

.dropdown:hover .dropdown-content2 {
  max-height: 500px; 
  opacity: 1;
  transform: translateY(0);
}

.comic-reader {
  position: relative;  

  display: flex;
}

.comic-reader img {
    
  height: 200%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.comic-reader button {
  background: black;
  height: auto;
  opacity: 5%;
  color: white;
  border: none;
  width: 5%;

  cursor: pointer;
  font-size: 18px;
}

.comic-reader button:hover {
}



@media (max-width: 768px) {
    
  body {
    background: #FEC806;  
  } 
    
  #main {
    width: 100%;
  }
  .comic-reader button {
    width: 50%;
  
   #cog {
         
      }
      
 
}
  }
