/* General Styles */
body {
    font-family: "Kanit", sans-serif;
    margin: 0;
    padding: 0;
    color: #653728;
  }
  body::selection {
    background-color: #653728;
    color:#ece5d2;
  }
  a{
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  
  /* Header */
  header {
    background:#ece5d2;
    color: #653728;
    text-align: center;
    box-shadow: #000000 0px 2px 5px 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
  }
  header h1{
    color: #653728;
    font-family: "Lilita One", "Kanit";
    font-weight: 400;
  }
  
  /* Navigation */
  nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 50px;
    text-decoration: none;
  }
  nav a{
    text-decoration: none;
  }
  nav li a {
    color:#653728 ;
    text-decoration: none;
    margin: 10px;
  }
  h3
  nav a:hover {
    text-decoration: underline;
  }
  h1:hover, h2:hover {
  color: #965a46;
  }
  /* Basic Navbar Styles */
  nav {
    padding: 10px;
  }
  nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
  }
  nav ul li {
      position: relative;
      padding: 10px 20px;
  }
  nav a {
      text-decoration: none;
      color:#653728;
      font-size: 16px;
  }

  /* Dropdown Styles */
  .dropdown {
      position: relative;
      list-style: none;
      margin-left: 20px;
  }
  .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      right: 10px;
      min-width: 210px;
      background:#ece5d2;
      box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
      border-radius: 20px;
  }
  .dropdown-menu a {
      display: block;
      padding: 0;
  }
  .dropdown:hover .dropdown-menu {
      display: block;
  }
  #welcome-msg{
    font-size: 40px;
    color: #653728;
    margin: 20px;
    padding: 0;
    font-weight: 500;
  }

  /* story Section */
    main {
    padding: 40px 5%;
    text-align: center;
  }
  .story-content {
    font-size: 90px;
  }
  .story-content .author-name{
    font-weight: 400;
    padding-bottom: 20px;
  }
  
  /* Story Content */
  .story-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #653728;
    margin: 20px 0;
  }
  .story-content hr{
    border: none;
    background: #653728;
    height: 1.5px;
  }
  .pt{
    font-size: 18px;
    font-weight: bold;
  }
  .story-content .story-name {
    line-height: 46px;
    font-size: 90px;
  }
  .story {
    display: grid;
    place-items: center;
  } 
  .story-p{
    width: 50%;
  }
  

  /* Login Form */
  /* Login section wrapper (instead of body) */
.login-wrapper {
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #fff;
}

/* Login card box */
.login-card {
  background-color: #ece5d2;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

/* Heading */
.login-card h2 {
  margin-bottom: 30px;
  font-size: 24px;
  color: #653728;
}

/* Input fields */
#login-form input {
  width: 91%;
  padding: 12px;
  margin-bottom: 20px;
  background: #ece5d2;
  border: 1px solid #444;
  border-radius: 8px;
  color: #653728;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

#login-form input:focus {
  border-color: #653728;
}

/* Submit button */
#login-form button {
  width: 100%;
  padding: 12px;
  background: #653728;
  color: #ece5d2;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#login-form button:hover {
  background: #ece5d2;
  color: #653728;
  border: #653728 1px solid;
  transition: ease-in-out 0.5s;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

  /* Story Submission Form*/
.story-submission{
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #fff;
}

/* Login card box */
.story-container {
  background-color: #ece5d2;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

/* Heading */
.story-container h3 {
  margin: 0;
  font-size: 49px;
  color: #653728;
}
.story-container p {
  color: #653728;
  position: relative;
  bottom: 20px;
}

/* Input fields */
.story-container input {
  width: 91%;
  padding: 12px;
  margin-bottom: 20px;
  background: #ece5d2;
  border: 1px solid #444;
  border-radius: 8px;
  color: #653728;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.story-container textarea {
  width: 91%;
  padding: 12px;
  margin-bottom: 20px;
  background: #ece5d2;
  border: 1px solid #444;
  border-radius: 8px;
  color: #653728;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.story-container input:focus {
  border-color: #653728;
}

/* Submit button */
#button {
  width: 100%;
  padding: 12px;
  background: #653728;
  color: #ece5d2;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.story-container #button:hover {
  background: #ece5d2;
  color: #653728;
  border: #653728 1px solid;
  transition: ease-in-out 0.5s;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* <a> Buttons */
.btn{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #653728;
  color: #ece5d2;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.btn:hover{
  background-color: #965a46;
}
/* Submit button */
#logout {
  width: 100%;
  padding: 10px;
  background: #653728;
  color: #ece5d2;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#logout:hover {
  background: #ece5d2;
  color: #653728;
  border: #653728 1px solid;
  transition: ease-in-out 0.5s;
}

/* From font Awsome */
.arrows {
  display: inline-block;
  text-decoration: none;
  color: #ece5d2;
}
.arrows i{
  font-size: 15px;
  margin: 5px;
}
.go{
  display: inline;
  width: 190px;
  height: 40px;
  padding: 12px 8px;
  background-color: #653728;
  border-radius: 100%;
  margin: 0 0 10px 0;
}
.go h5{
  display: inline-block;
  margin: 10px;
}
.go:hover{
  color: #653728;
  background:transparent;
  border: 1px solid #653728;
  transition: ease-in-out 0.5s;
}

.delete-link{
  width: 86%;
  margin-top: 10px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #653728;
  color: #ece5d2;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.delete-link:hover {
  background: #ece5d2;
  color: #653728;
  border: #653728 1px solid;
  transition: ease-in-out 0.5s;
}
#story-feed{
  margin: 20px 30px 40px;
  background-color: #ece5d2;
  padding: 40px 30px;
  border-radius: 16px;  
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 250px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}
#story-feed p,h4 {
  overflow-wrap: anywhere;
}
.view-link{
  width: 86%;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #653728;
  color: #ece5d2;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.view-link:hover {
  background: #ece5d2;
  color: #653728;
  border: #653728 1px solid;
  transition: ease-in-out 0.5s;
}
.ss-h2{
  font-size: 30px;
  font-weight: bolder;
  color: #653728;
  margin: 20px 20px 40px;
  padding: 0;
}
  /* Privacy-Policy and Terms And Conditions */
  .main-PP-TC .container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: #ece5d2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .main-PP-TC .container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .main-PP-TC .container h1, h2 {
    color: #653728;
    transition: color 0.3s;
}


.main-PP-TC .container p, ul {
  color: #653728;
  line-height: 1.8;
}

.main-PP-TC .container ul {
  padding-left: 20px;
}

.main-PP-TC .container li {
  margin-bottom: 10px;
}


    /* Footer */
    
  footer {
    background:#ece5d2;
    color:#653728;
    padding: 40px 0;
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-section {
    flex: 1;
    margin: 20px;
    min-width: 250px;
  }
  
  .footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
  }
  
  .footer-section p, .footer-section ul, .footer-section li {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .footer-section ul {
    padding-left: 0;
  }
  
  .footer-section a {
    color: #653728;
    text-decoration: none;
  }
  
  .footer-section a:hover {
    text-decoration: underline;
  }
  
  .footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 20px;
  }
  
  .footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
  }

  /* Footer : Social icons */
  .social-icons {
    display: relative;
    padding: 10px;
    
}

.social-icons a {
  background-color: #653728;
  padding: 4px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin: 10px;
  font-size: 20px;
  color: #ece5d2; 
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.social-icons a:hover {
    color: #653728;
    background:transparent;
    border: 1px solid #653728;
    transition: ease-in-out 0.5s;
}
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    header {
      padding: 1px 15px;
    }
    header{
      font-size:10px ;
    }
  
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px 5px;
    }
  
    nav a {
        color: #653728;
        text-decoration: none;
        font-size: 1rem;
        transition: 0.3s;
    }
  
    .genre-cards {
      flex-direction: column;
      align-items: center;
    }
  
    .card {
      width: 90%;
    }
    /* Story section */
    .story-content .story-name{
      font-size: 60px;
    }
    .story-p{
      width: 90%;
    }
    
    /* Contact Us */
    .c-aw-options {
      display: inline;  
    }
    .c-aw-box{
      margin: auto;
      margin-bottom: 30px;
      width: 250px;
    }
    .c-aw p{
      padding-bottom: 30px;
    }

    /* Aidson Writer */
    .aidson-writer p{
      padding-bottom: 30px;
    }
    .aidson-writer-options {
      display: inline;
      
    }
    .aidson-writer-box{
      margin: auto;
      margin-bottom: 30px;
      width: 250px;
    }
    .apply-container{
      margin-top: 0;
    }
    .social-icons {
      display: relative;
      border: none;
      
    }
    .social-icons a {
      font-size: 20px; /* Adjust size */
      margin: 10px;
      border: none;
      padding: 5px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
      }
    
      .footer-section {
        margin: 10px 0;
      }
      .footer-section.about{
        width: 90%;
      }
  }
  