h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", Times, serif;
}

body {
    font-family: "Times New Roman", Times, serif;
    background-color: #e6efe8;
    color: #393939;
    position: relative;
    min-height: 100vh;
    padding-bottom: 2.5rem;
    text-align: center;
}

footer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2.5rem;
    width: 100%;
    text-align: center;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
}

input[type="text"] {
  padding: 10px;
  font-size: 1em;
  width: 50%;
  transition: background-color 0.3s;
}

@media(max-width: 768px) {
  input[type="text"] {
    width: 90%;
  }
}

input[disabled] {
  background-color: #ccc;
  color: #666;
}

small {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: #666;
}

.navbar {
    min-height: 100px;
    font-size: 25px;
}

.navbar-brand {
    font-size: 25px;
    float: left;
}

.navbar-brand > img {
    height: 60px;
}

.toggle-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.toggle {
  width: 4cm;
  height: 2cm;
  background-color: gray;
  border-radius: 1cm;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none; 
  touch-action: manipulation; 
}

.toggle::before {
  content: "";
  position: absolute;
  top: 0.25cm;
  left: 0.25cm;
  width: 1.5cm;
  height: 1.5cm;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: left 0.3s ease, background-color 0.3s ease;
}

.toggle.active {
  background-color: green;
}

.toggle.active::before {
  left: 2.25cm;
}

.input-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

@media(max-width: 768px) {
  .input-container label {
    font-size: 1em;
  }

  .input-container small {
    font-size: 0.7em;
  }
}

.full-width-input {
  width: 100%;
  box-sizing: border-box;
}

label, small {
  margin-bottom: 0.5em;
}

.inline-group {
  display: block;
}

.inline-group label,
.inline-group span,
.inline-group a {
  font-size: 1em;
  font-family: inherit;
  display: inline;
}

.inline-group label {
  margin-right: 4px;
}

.buttons-container {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
  color: white;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  color: #fff;
  text-align: center;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.5rem; 
  font-size: min(1rem, 3vw); 
  line-height: 1.2;
  border-radius: 0.25rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  flex: 1 0 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

#vk-share { background-color: #4c75a3; border-color: #4c75a3; }
#tg-share { background-color: #0088cc; border-color: #0088cc; }
#copy-share { background-color: #555; border-color: #555; }

.share-button:hover {
  filter: brightness(90%);
  text-decoration: none;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .buttons-container {
    width: 100%;
    margin-top: 10px;
    gap: 6px; 
  }

  .share-button {
    padding: 0.25rem 0.4rem; 
    font-size: min(0.875rem, 3.5vw); 
  }
}

@media (max-width: 400px) {
  .share-button {
    font-size: min(0.75rem, 3.2vw); 
    padding: 0.2rem 0.3rem;
  }
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; 
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#scrollToTopBtn.show {
  display: flex; 
}

.email-subscription-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.email-checkbox-container {
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

.email-checkbox-form-container {
  display: flex; 
  align-items: center; 
  gap: 10px; 
  justify-content: center; 
  width: 100%; 
  margin-bottom: 10px;
}

.email-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}

#createSubscriptionButton {
  white-space: nowrap;
  width: 20%;
}

#cancelSubscriptionButton {
  white-space: nowrap;
  width: 20%;
}

input[type="email"] {
  padding: 10px;
  font-size: 1em;
  width: 30%;
  transition: background-color 0.3s;
  margin-bottom: 10px;
}

@media(max-width: 768px) {
  .email-checkbox-form-container label {
    font-size: 1em;
  }

  .email-input-container {
    width: 100%;
  }

  input[type="email"] {
    width: 90%;
  }

  .email-checkbox-form-container {
    width: 90%;
  }

  #createSubscriptionButton {
    width: 90%;
  }

  #cancelSubscriptionButton {
    width: 90%;
  }
}

#custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

#custom-alert {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fefefe;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  padding: 24px 28px;
  width: 70%;
  max-width: 700px;
  font-family: inherit;
  font-size: 1.2em;
  z-index: 10000;
  text-align: left;
}

@media (max-width: 600px) {
  #custom-alert {
    width: 90%;
    font-size: 1.1em;
    padding: 20px 20px;
  }
}
