/* General Styles */
body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgba(255, 245, 230, 0.95);
    color: #333;
  }
  
  main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
  }
  
  section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
  }
  
  label {
    display: block;
    margin-top: 1.2rem;
    font-weight: bold;
    color: #4d382d;
    font-size: 1.1rem;
  }
  
  select,
  input[type="text"] {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.5rem;
    border: 2px solid #d3a588;
    border-radius: 12px;
    background: #fdf6ec;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  input[type="text"]:focus,
  select:focus {
    outline: none;
    border-color: #8b5e3c;
  }
  
  /* Buttons Styles */
  .button-row {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
  }
  
  button {
    background: #a3d9a5;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 15px;
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  button:hover {
    background: #89c98c;
    transform: scale(1.05);
  }
  
  a button {
    background: #e5a9a9;
  }
  
  a button:hover {
    background: #d49393;
  }
  
  /* Converted value box */
  #to-value {
    margin-top: 1.2rem;
    background: #e5e5e5;
    color: #333;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.7rem;
    border: 2px solid #d3a588;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* Description Result */
  div p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    text-align: center;
  }
  
  div p em {
    font-style: italic;
    color: #8b5e3c;
  }

  /* Result and Error Messages */
  #result-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e8f5e9;
    border-radius: 4px;
    display: none;
    position: relative;
  }

  #result-message p {
    margin: 0;
    padding-right: 2.5rem;
  }

  .copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  .copy-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .copy-btn svg {
    width: 20px;
    height: 20px;
    fill: #5d3a00;
  }

  .copy-btn:active {
    transform: scale(0.95);
  }

  #error-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 4px;
    display: none;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    main {
      padding: 2rem;
    }
  
    section {
      padding: 1.5rem;
    }
  
    label {
      font-size: 1rem;
    }
  
    button {
      padding: 0.6rem 1.2rem;
      font-size: 0.95rem;
    }
  
    #to-value {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    main {
      padding: 1.5rem;
    }
  
    section {
      padding: 1rem;
    }
  
    label {
      font-size: 0.95rem;
    }
  
    input[type="text"],
    select {
      padding: 0.6rem;
      font-size: 1rem;
    }
  
    button {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }
  
    #to-value {
      font-size: 1rem;
      padding: 0.6rem;
    }
  }
  
  /* Page Title Styling */
.page-title {
    font-size: 2rem; /* Adjust as necessary */
    color: #5d3a00;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
    text-transform: capitalize; /* Capitalizes the first letter of each word */
  }

/* URL Encode/Decode specific styles */
.mode-btn {
  flex: 1;
  margin: 0 0.5rem;
  background: #f6d6ad;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 15px;
  font-weight: bold;
  color: #5d3a00;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.mode-btn:hover {
  background: #eec49a;
  transform: scale(1.05);
}

.mode-btn.active {
  background: #5d3a00;
  color: #fff;
}

.mode-btn.active:hover {
  background: #4a2e00;
  transform: scale(1.05);
}

.url-textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  border: 2px solid #d3a588;
  border-radius: 12px;
  background: #fdf6ec;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  color: #333;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  resize: vertical;
}

.url-textarea:focus {
  outline: none;
  border-color: #8b5e3c;
}

.url-textarea-output {
  background: #e5e5e5;
  border-color: #8b5e3c;
}
  