*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background-color: #FFFFF4;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.base-container{
  width: 85%;
  margin: 1.5rem auto;
}

nav {
  position: fixed;
  top: 0;
  left: 5%;
  width: 90%;
  background-color: #FFFFF4;
  padding: 15px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.nav-brand{
  color:#000;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Lato", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: #000;
  font-size:1.2rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.nav-list .left-link a:hover{
  color: #F08B34;
}

.left-link{
  display: flex;
  gap: 25px;
} 

.right-link{
  display: flex;
  gap: 20px;
  margin-left: 30px;
}

.user-avatar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu {
  display: none;
  position: absolute;
  top: 100%; 
  right: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  min-width: 150px;
  z-index: 1000;
  text-align: center; 
}

.user-menu p {
  font-weight: 500;
  margin: 0.5rem;
}

.logout-btn {
  all: unset;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  padding: 0.5rem 0;
  background-color: #000;
  color: #fff;
}

.logout-btn:hover {
  background-color: #333;
  color: #fff;
}

.user-avatar:hover .user-menu {
  display: block;
}

.right-link .login{
  background-color: transparent;
  border: 2px solid #000;
  padding: 3px 10px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.right-link .sign-up{
  background-color: #000;
  color: white;
  font-size: 1.1rem;
  padding: 7px 10px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.right-link .logout {
  background-color: #000;
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  padding: 8px 10px;
  border-radius: 5px;
}

.logout-text{
  display: none;
}

.right-link .login:hover, .right-link .sign-up:hover, .right-link .logout:hover{
  transform: scale(1.05);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #000;
  font-size: 1.5rem;
  cursor: pointer;
}

/* footer */
footer{
  width: 100%;
  /* position: fixed; */
  bottom: 1rem;
  left: 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

footer .social-links{
  display: flex;
  gap: 1.3rem;
}

footer .social-links a{
  text-decoration: none;
  color: #333;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

footer .social-links a:hover{
  color: #F08B34;
}

/* Home Page */
.home-container{
  position: relative;
}

.hero{
  display: flex;
  flex-direction: column;
  align-items:center;
  text-align: center;
  gap: 1.2rem;
  margin: 6rem auto 2.7rem;
}

.big-title h1{
  font-size: 6vw;
  font-weight: 600;
  line-height: 1.2;
}

.big-title span{
  position: relative;
}

.big-title span::before {
  content: '';
  position: absolute;
  left: 0.06em;
  right: 0;
  bottom: 0.1em;
  height: 0.1em; 
  background-color: #FAD955;
  border-radius: 4px; 
  z-index: -1;
}

.call-link{
  display: flex;
  gap: 3rem;
}

.call-link a{
  text-decoration: none;
  color:#000;
  font-size: 1.2rem;
  padding: 10px 22px;
  border: 2px solid #000;
  border-radius: 28px;
  box-shadow: 2px 4px 0 0 #000;
  font-weight: 500;
  transition: all 0.3s ease;
}

.call-link .demo-btn{
  background-color: #CDEE2E;
  padding: 10px 24px 10px 28px;
}

.call-link a:hover{
  transform: scale(1.05);
}

.polls-list{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.polls-list li{
  list-style: none;
}

.polls-list li a{
  text-decoration: none;
  color: #000;
}

.poll-title{
  font-size: 1.2rem;
  font-weight: 600;
}

.poll-card{
  width: 49%;
  padding: 2rem 2.6rem 1.3rem;
  font-size: 1.1rem;
  gap: 0.9rem;
  display: flex;
  flex-direction: column;
  border: 2px solid #000;
  border-radius: 15px;
}

.poll-card.poll-card-one {
  background-color: #FAD955; 
  box-shadow: 7px 8px 0 0 #F08B34;
}

.poll-card.poll-card-two {
  background-color: #5c4ff4;
  color: #fff;
  box-shadow: 7px 8px 0 0 #431B9A;
}

.poll-card.poll-card-two label{
  color: #fff;
}

.poll-choice input[type="radio"] {
  display: none;
}

.poll-choice label {
  position: relative;
  padding-left: 2rem;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  margin-bottom: 10px;
}

.poll-choice label::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid #000;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: border-color 0.3s, background-color 0.3s;
}

.poll-card:nth-child(even) .poll-choice label::before{
  border: 2px solid #fff;   
}

.poll-choice input[type="radio"]:checked + label::before {
  background-color: #000;
}

.poll-card:nth-child(even) .poll-choice input[type="radio"]:checked + label::before {
  background-color: #fff;
}

.poll-card:nth-child(even) a{
  color: #fff;
}

.vote-link{
  text-align: right;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  display: inline-block;
  transition: all 0.3s ease;
}

.vote-link:hover{
  text-decoration: underline;
}

/* Login and Register Page */
.login-container, .register-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 8rem auto 4.4rem;
}

.login-container{
  margin: 9rem auto 7.8rem;
}

.login-card, .register-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 450px;
  background-color: #fff;
  padding: 2rem;
  box-shadow: 6px 7px 0 0 #222;
  border: 2px solid #000;
  border-radius: 10px;
  text-align: center;
  gap:1.6rem;

}

.login-card h1, .register-card h1{
  text-align: center;
  font-weight: 600;
}

.login-card p, .register-card p{
  font-size: 1rem;
  color: #333;
}

.login-card form, .register-card form, .register-form{
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap:0.4rem;
}

.login-card form input, .register-form .input-group input{
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: inherit;
  font-size: 1rem;
  margin: 5px 0;
  border: 2px solid #c8c8c8;
  border-radius: 7px;
}

.login-card form input:focus, .register-card .input-group input:focus {
  border: none;
  outline: none;  
  border: 2px solid #000;
}

.login-card form button, .register-card form button{
  padding: 0.9rem 0;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  background-color: #CDEE2E;
  border-radius: 7px;
  border: none;
  margin-top: 1.3rem;
}

.login-card p:nth-of-type(even), .register-card p:nth-of-type(even){
  font-size: 0.9rem;
}

/* Register Page */
.register-link, .register-link {
  color: #026fe3;
  text-decoration: none;
  font-weight: 500;
}

.register-link:hover {
  text-decoration: underline;
}

.input-group {
  position: relative;
}

.input-group label {
  position: absolute;
  top: 21px;
  left: 12px;
  color: #757575;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.3s;
  padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -3px;
  font-size: 12px;
  background-color: #fff;
  color: #333;
}

/* Create Poll Page */
.create-poll-container {
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 6px 7px 0 0 #222;
  max-width: 600px;
  margin: 6rem auto;
}

.create-card{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
}

.create-card h1{
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #333;
  margin-bottom: 1.5rem;
}

.create-card form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.create-card p {
  font-size: 1rem;
  margin-top: 1rem;
}

.choice-option{
  margin-bottom: 0.4rem;
}

.create-card input[type="text"],
.create-card input[type="datetime-local"] {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #c8c8c8;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.3s;
  margin: 5px 0;
}

.create-poll-container input[type="text"]:focus,
.create-poll-container input[type="datetime-local"]:focus {
  border: 2px solid #000;
}

.end-date{
  margin-top: 1.5rem;
}

.error-message { 
  background-color: #ffe6e6; 
  border:  none;
  border: 1px solid #ff0000;
  border-radius: 5px;
  padding: 5px 2px;
  margin-top: 5px;
}

.error-message p{
  color: #ff0000;
  font-size: 0.9rem;
}

.success-message {
  background-color: #d4edda;
  border:  none;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  padding: 5px 0;
  margin-top: 5px;
}

.success-message p {
  color: #155724; 
  font-size: 0.9rem;
}

.create-card button[type="submit"], #add-option-btn{
  width: 100%;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.1rem;
  margin-top: 1rem;
  border-radius: 7px;
  margin-top: 0.7rem;
  padding: 0.8rem;
  background-color: #5c4ff4;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

#add-option-btn{
  background-color: #FAD955;
  color: #000;
}

#add-option-btn:hover{
  background-color: #f3c300;
} 

.create-card button[type="submit"]:hover{
  background-color: #431B9A;
} 

#add-option-btn:disabled {
  background-color: #ccc; 
  color: #666;
  cursor:default;
}

#option-limit-message {
  background-color: #ffe6e6;
  border:  none;
  border: 1px solid #ff0000;
  border-radius: 5px;
  padding: 5px 0;
  margin-top: 5px;
  color: #ff0000;
  font-size: 0.9rem;
  text-align: center;
}

.input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.choice-input {
  width: 100%;
  padding-right: 25px;
}

.delete-option {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: gray;
  font-weight: bold;
}

.polls-list-container{
  margin: 6rem auto;
}

.polls-list-container h1{
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
}

.poll-list{
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.poll-list h2{
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;
}

.search-bar {
  display: flex;
  align-items: center;
  border-radius: 50px;
  background-color: #fffff4;
  padding: 6px 20px;
  border: 2px solid #444;
  max-width: 530px;
  margin: 2rem auto;
  position: relative;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background-color: transparent;
  padding: 10px;
  color: #333;
  font-family: inherit;
}

.clear-btn {
  position: absolute;
  right: 90px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
  display: none;
}

.clear-btn:hover {
  color: #333;
}

.search-bar .search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F08B34;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  padding: 10px;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.search-bar .search-btn:hover {
  transform: scale(1.05);
  background-color: #e87713;;
}

.search-bar input::placeholder {
  color: #888;
}

.poll-item{
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  width: 70%;
  margin: 0 auto;
  padding: 3rem 3.7rem;
  background-color: #fcf6e2;
  border: 2px solid #222;
  color: #000;
  border-radius: 10px;
}

.poll-item a{
  text-decoration: none;
}

.poll-item ul li{
  list-style: none;
}

.poll-choice label{
  font-size: 1.1rem;
  color: #000;
}

.poll-info{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poll-info a{
  text-decoration: none;
  background-color: #222;
  color:#fff;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 7px;
  font-weight: 500;
}

.poll-info p{
  font-weight: 500;
  color: #666;
}

.empty-message{
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  font-size: 1.2rem;
}

.pagination-form {
  display: flex;
  align-items: center;
}

.pagination a {
  text-decoration: none;
  color: black;
  font-size: 1.2em;
  margin: 0 10px;
}

.pagination .disabled {
  color: lightgray;
  font-size: 1.2em;
  margin: 0 10px;
}

.pagination input[type="number"] {
  width: 40px;
  text-align: center;
  font-size: 1em;
  padding: 3px 0 3px 5px;
  margin: 0 5px;
  border: 2px solid #666;
  border-radius: 3px;
}

.pagination input[type="number"]:focus{
  outline: none;
  border: 2px solid #000;
}

/* Poll Detail Page */
.poll-detail-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.poll-detail-card{
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  width: 70%;
  margin: 0 auto;
  padding: 2.5rem 3.5rem;
  background-color: #fcf6e2;
  border: 2px solid #222;
  color: #000;
  border-radius: 10px;
}

.poll-detail-card .detail-info{
  color:#777;
  font-size: 0.9rem;
}

.poll-detail-card h1{
  font-size: 1.7rem;
  font-weight: 600;
}

.poll-detail-card form{
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.poll-detail-card form li{
  list-style: none;
}

.btn-group .vote-btn, .btn-group .result-btn{
  width: 49%;
  text-decoration: none;
  color:#000;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  border-radius: 28px;
}

.btn-group .vote-btn{
  background-color: #CDEE2E;
  padding: 0.5rem 1.8rem;
  border: 2px solid #000;
  transition: all 0.3s ease;
}

.btn-group .result-btn{
  background-color: transparent;
  border:2px solid #000;
  padding: 0.3rem 1.8rem;
  transition: all 0.3s ease;
}

.btn-group .vote-btn:hover, .btn-group .result-btn:hover{
  cursor: pointer;
  transform: scale(1.05);
}

.delete-btn {
  all: unset;
  font-weight: 500;
  font-size: 1.1em;
  color: #000;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 2rem;
}

.delete-btn:hover {
  transform: scale(1.05);
  text-decoration: underline;
}

/* Poll Result Page */
.poll-result-container{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 7rem;
}

.result-card{
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 70%;
  border: 2px solid #000;
  border-radius: 10px;
  gap: 2rem;
  padding: 2rem;
  box-shadow: 6px 7px 0 0 #222;
}

.result-card h1{
  font-weight: 600;
  font-size: 1.8rem;
  text-align: center;
}

.result-chart{
  width: 100%;
  max-width: 540px;
  margin: auto;
}

#doughnutChart {
  width: 100%;
  height: auto;
}

.result-card li{
  list-style: none;
}

.result-card p{
  color: #666;
  text-align: center;
}


.btn-group{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.7rem;
}

.btn-group .back-btn, .btn-group .share-btn{
  width: 45%;
  text-decoration: none;
  color:#000;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  border-radius: 28px;
  padding: 0.5rem 1.8rem;
}

.btn-group .back-btn{
  border:2px solid #000;
}

.btn-group .share-btn{
  font-family: inherit;
  font-weight: 500;
  background-color: #000;
  border:2px solid #000;
  color:#fff;
}

.share-modal {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-top: 2px solid #000;
  position: relative;
}

.share-modal .close-btn {
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  color: #000;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.share-modal .close-btn:hover {
  color: #F08B34;
}

.share-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem; 
}

.share-left {
  width: 40%;
}

.share-left h3{
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.share-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2rem;
}

.share-link {
  display: flex;
  align-items: center;
}

.share-link input {
  width: calc(100% - 2rem);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #000;
  background-color: #FFFFF4;
  border: 2px solid #000;
  border-radius: 7px;
}

.share-link input:focus {
  outline: none;  
  border-color: #000;
}

.share-link button {
  all: unset;
  font-size: 1.2rem;
  margin-left: 0.6rem;
  color: #000;
  cursor: pointer;
}

.share-link button:hover {
  color: #F08B34;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-icons a i {
  color: #000;
  font-size: 1.5rem;
}

.social-icons a i:hover {
  color: #F08B34;
}

#shareModal {
  display: none;
}

#option-limit-message {
  color: red;
  display: none;
}

.add-option-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  /* Base Page */
  .nav-list {
    display: none; 
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: calc(100% + 15px); 
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav-list.show {
    display: flex;
    
  }

  .left-link{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .right-link{
    gap:0;
  }

  .right-link .user-avatar img{
    display: none;
  }

  .right-link, .right-link .user-avatar, .right-link .user-avatar .user-menu{
    width: 100%;
    margin-left: 0;
  }

  .right-link .login, .right-link .sign-up{
    border: none;
    padding: 10px 0;
    border-radius: 0;
    transition: all 0.3s ease-in-out;
  }

  .nav-list a, .logout-btn {
    width: 100%; 
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 0;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
    border-radius: 0;
    transition: none;
  }

  .logout-btn {
    font-family: inherit;
    background-color: transparent;
    font-weight: 500;
    color: #fff;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
    text-align: center;
  }

  .right-link .login:hover, .right-link .sign-up:hover{
    background-color: #fffff4;
    color: #000;
    font-weight: 600;
    transform: scale(1);
  }

  .nav-list .left-link a:hover, .logout-btn:hover {
    background-color: #fffff4;
    color: #000;
    font-weight: 600;
  }

  .menu-toggle {
    display: block;
  }

  .user-avatar {
    margin: 0 auto;
  }

  .user-menu {
    position: static;
    display: flex;
    flex-direction: column;
    background: none;
    box-shadow: none;
    text-align: center;
    padding: 0;
  }

  .user-menu p{
    display: none;
    color: #fff;
  }

  /* Home Page */
  .hero{
    margin: 5rem auto 2rem;
  }

  .big-title h1{
    font-size: 7vw;
    line-height: 1.1;
  }

  .call-link{
    gap: 2rem;
  }
  
  .call-link a{
    font-size: 1.1rem;
  }
  
  .call-link .create-btn, .call-link .demo-btn{
    padding: 5px 15px;
  }
  
  .poll-title{
    font-size: 1rem;
    font-weight: 600;
  }
  
  .poll-card{
    padding: 1.5rem;
  }
  
  .poll-choice label {
    font-size: 14px;
    margin-bottom: 5px;
    padding-left: 1.5rem;
  }
  
  .poll-choice label::before {
    width: 12px;
    height: 12px;
  }
  
  .vote-link{
    font-size: 0.9rem;
  }

  /* Poll List Page */
  .polls-list-container{
    margin: 4rem auto;
  }
  
  .poll-list{
    gap: 1rem;
  }
  
  .poll-list h2{
    font-size: 1.2rem;
  }
  
  .poll-item{
    width: 85%;
    padding: 2rem 3rem;
  }

  .poll-item .poll-choice label {
    font-size: 16px;
    margin-bottom: 7px;
  }
  
  .poll-info a{
    font-size: 0.9rem;
    padding: 6px 18px;
  }

  .poll-info p{
    font-size: 0.9rem;
  }
  
  .pagination {
    margin-top: 2.5rem;
    font-size: 1rem;
  }
  
  .pagination a {
    font-size: 1rem;
  }
  
  .pagination .disabled {
    font-size: 1rem;
  }

  /* Poll Detail Page */
  .poll-detail-card{
    gap: 0.8rem;
    padding: 2rem 2.5rem;
  }

  .poll-detail-card .detail-info{
    font-size: 0.8rem;
  }

  .poll-detail-card h1{
    font-size: 1.4rem;
  }

  .btn-group{
    flex-direction: column;
  }

  .btn-group .vote-btn, .btn-group .result-btn{
    width: 100%;
    font-size: 1.1rem;
  }
  
  /* Poll Result Page */
  .btn-group{
    justify-content: center;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0;
  }

  .btn-group .back-btn, .btn-group .share-btn{
    font-size: 1rem;
    width: 100%;
  }

  .share-left{
   width: calc(100% - 1.5rem);
  }

  .share-left h3{
    font-size: 1rem;
  }

  .result-chart{
    max-width:300px;
  }
}

@media (max-width: 768px) {
  /* Base Page */
  footer{
    width: 100%;
    position: static;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 3rem;
  }

  /* Home Page */
  .hero{
    margin: 4rem auto 2rem;
  }

  .polls-list{
    flex-direction: column;
    gap: 1.3rem;
  }

  .poll-title{
    font-size: 1.2rem;
  }

  .poll-card{
    width: 100%;
    padding: 1.8rem;
  }
  
  .poll-choice label {
    font-size: 16px;
  }
  
  .vote-link{
    font-size: 1rem;
  }

  /* Poll List Page */
  .polls-list-container{
    margin: 3.5rem auto;
  }
  
  .polls-list-container h1{
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .poll-list{
    gap: 0.8rem;
  }
  
  .poll-info p{
    font-size: 0.7rem;
  }

  .poll-info a{
    font-size: 0.7rem;
  }
  
  /* Poll Result Page */
  .result-card{
    width: 80%;
    padding: 1.8rem 1.5rem;
  }

  .result-card h1{
    font-size: 1.5rem;
  }

  .result-chart{
    max-width: 250px;
  }

  .result-card p{
    font-size: 0.8rem;
  }

  .btn-group .back-btn, .btn-group .share-btn{
    font-size: 0.9rem;
  }

  .share-card{
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }

  .share-section{
    width: 100%;
  }

  .share-right{
    align-items: center;
  }
}

@media (max-width: 700px) {
  /* Base Page */
  footer{
    flex-direction: column;
    gap: 0.8rem;
  }

  /* Home Page */
  .hero{
    margin: 4rem auto 1.5rem;
  }

  .poll-title{
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  .poll-choice label {
    font-size: 14px;
  }
  
  .vote-link{
    font-size: 0.9rem;
  }

  .call-link{
    gap: 1.5rem;
  }

  .call-link a{
    font-size: 0.9rem;
  }

  /* Login Page */
  .login-card, .register-card{
    min-width: 350px;
    padding: 1.5rem;
    gap:1.3rem;
  }
  
  .login-card h1, .register-card h1{
    font-size: 1.6rem;
  }
  
  .login-card p, .register-card p{
    font-size: 0.8rem;
  }
  
  .login-card form, .register-card form, .register-form{
    max-width: 300px;
    gap:0.2rem;
  }

  /* Poll List Page */
  .polls-list-container h1{
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }
  
  .poll-list h2{
    font-size: 1.1rem;
  }
  
  .poll-item{
    width: 100%;
    padding: 1.5rem 2.2rem;
  }
  
  .poll-item .poll-choice label{
    font-size: 14px;
    margin-bottom: 0;
  }
  
  .poll-info p{
    font-size: 0.6rem;
  }
  
  .pagination {
    margin-top: 2.3rem;
    font-size: 0.8rem;
  }
  
  .pagination a {
    font-size: 0.8rem;
  }
  
  .pagination .disabled {
    font-size: 0.8rem;
  }

  .pagination input[type="number"] {
    padding: 3px 0 3px 0;
  }

  /* Poll Detail Page */
  .poll-detail-card{
    width: 90%;
    gap: 0.7rem;
    padding: 2rem;
  }

  .poll-detail-card .detail-info{
    font-size: 0.7rem;
  }

  .poll-detail-card h1{
    font-size: 1.2rem;
  }

  .btn-group {
    gap: 0.5rem;
  }

  .btn-group .vote-btn, .btn-group .result-btn{
    font-size: 0.9rem;
  }

  /* Result Page */
  .result-chart{
    max-width: 230px;
  }

  .result-card h1{
    font-size: 1.3rem;
  }

}

@media (max-width: 480px) {
  /* Base Page */
  footer{
    gap: 0.4rem;
  }

  footer p{
    font-size: 0.7rem;
  }

  /* Home Page */
  .poll-title {
    font-size: 1rem;
  }

  /* Login Page */
  .login-card, .register-card{
    min-width: 300px;
    padding: 1.3rem;
    gap:1rem;
  }
  
  /* Poll List Page */
  .polls-list-container{
    margin: 3.5rem auto;
  }
  
  .polls-list-container h1{
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .search-bar .search-btn{
    margin-left: -60px;
  }

  .clear-btn {
    right: 75px;
  }
  
  .poll-list{
    gap: 0.8rem;
  }
  
  .poll-list h2{
    font-size: 1rem;
  }

  .poll-item .poll-choice label{
    font-size: 13px;
  }

  .poll-info {
    flex-direction: column;
    gap: 0.6rem
  }

  .poll-info p{
    font-size: 0.6rem;
  }

  .poll-info a{
    font-size: 0.7rem;
    width: 100%;
    text-align: center;
  }
  
  /* Poll Detail Page */
  .poll-detail-card{
    width: 100%;
  }

  .poll-detail-card .detail-info{
    font-size: 0.6rem;
  }

  .poll-detail-card h1{
    font-size: 1rem;
  }

  .poll-choice label {
    font-size: 12px;
  }

  .btn-group {
    gap: 0.4rem;
  }

  .btn-group .vote-btn, .btn-group .result-btn{
    font-size: 0.8rem;
  }

  /* Poll Result Page */
  .result-card{
    padding: 1.5rem;
    gap:0.6rem;
  }

  .result-card h1{
    font-size: 0.9rem;
    font-weight: 600;
  }

  .result-chart{
    max-width: 200px;
  }

  .result-card p{
    font-size: 0.6rem;
  }

  .btn-group .back-btn, .btn-group .share-btn{
    font-size: 0.7rem;
    padding: 0.2rem 1rem;
  }
  
  .share-left h3{
    text-align: center;
  }

  .share-link input{
    padding: 0.3rem 0.8rem;
    font-size: 0.6rem;
  }
}