body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #333;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 21px;
}

.logo-icon {
  margin-right: 5px;
}

.slogan {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.slogan-icon {
  margin-right: 10px;
}

.slogan-anim {
  font-size: 27px;
}

.slogan-text {
  font-size: 20px;
}

.buttons {
  margin-left: 20px;
  margin-top: 20px;
}

button {
  padding: 7px 12px;
  margin: 0 5px;
  border: none;
  background-color: #004BBD;
  color: white;
  cursor: pointer;
}

#share-button {
  float: right;
  margin-right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 28px;
}

#clear-button {
  background-color: #992800;
}

#json-input {
  width: calc(100% - 70px); 
  margin: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 350px;
}

.copy-button-top {
  position: absolute;
  top: 150px;
  right: 31px;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  padding: 0;
  font-size: 23px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  margin-top: 29px;
}

.footer-left {
  margin-right: auto; 
}

#about-button {
  background-color: #9FD6A1;
  border: none;
  color: black;
  padding: 5px 10px;
  cursor: pointer;
}

.json-textarea {
  border: 5px solid #ccc !important;
  border-radius: 4px;
  transition: border-color 0.3s;
  outline: none; 
}

.json-textarea.error {
  border-color: #fd8f6c !important;
}

.json-textarea.success {
  border-color: green !important;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.modal-content {
  top: 0;
  background-color: #fefefe;
  margin: 2% auto 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  cursor: pointer;
}

#dynamic-modal-message {
  font-size: 18px;
  margin: 20px;
}

.modal-error {
  color: red;
}

.modal-success {
  color: black;
}

@media (max-width: 600px) {
  .modal-content {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-bottom: 10px;
  }

  .slogan {
    margin-left: 0;
  }
  
  .copy-button-top {
    top: 183px;
    right: 28px;
  }
}