@import url(main.css);

.rotating-text {
    position: relative;
    height: 1.5em;
    margin-bottom: 2em;
}

.rotating-text p {
    font-family: 'Press Start 2P', cursive !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    position: absolute;
    width: 100%;
    margin: 0 !important;
    text-align: center !important;
    opacity: 0;
    animation: rotateText 10s linear infinite;
}

.rotating-text .text-2 {
    animation-delay: 5s;
}

@keyframes rotateText {
    0%, 5% {
        opacity: 0;
        transform: translateY(5px);
    }
    10%, 45% {
        opacity: 1;
        transform: translateY(0);
    }
    50%, 100% {
        opacity: 0;
        transform: translateY(-5px);
    }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  margin: 10vh auto;
  padding: 2em 1.5em 0.2em 1.5em;
  border-radius: 8px;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  position: relative;
  animation: modalIn 0.2s;
}
.close-modal {
  position: absolute;
  top: 0.7em;
  right: 1em;
  font-size: 1.5em;
  color: #888;
  cursor: pointer;
}
#contactForm label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.3em;
  font-weight: 600;
}
#contactForm input, #contactForm select {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 0.5em;
  border-radius: 2px;
  border: 2px solid #8e44ad;
  font-size: 1em;
  transition: border-color 0.2s;
}
#contactForm input:focus, #contactForm select:focus {
  border-color: #6c3483;
  outline: none;
  box-shadow: 0 0 0 2px #e1bee7;
}
#contactForm button[type="submit"] {
  width: 100%;
  margin-top: 1em;
  background: #8e44ad !important;
  color: #fff !important;
  font-family: 'Press Start 2P', cursive !important;
  font-size: 1.2em !important;
  padding: 0.8em 0 !important;
  line-height: 1.2em !important;
  border-radius: 8px;
  border: none;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#contactForm button[type="submit"]:hover {
  background: #6c3483 !important;
}
@keyframes modalIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 480px) {
  .modal-content { padding: 1em 0.5em; }
}

/* Modal Title Pixel Font */
.modal-content h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1em;
  text-align: center;
  letter-spacing: 0.05em;
  color: #8e44ad;
  margin-bottom: 1.2em;
  text-shadow: 1px 1px 0 #eee;
}

/* Message container for form submission feedback */
#formMessage {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  padding: 0.5em;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  display: none;
  z-index: 1001;
}
#formMessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
#formMessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#contact .button.primary {
  background: #8e44ad !important;
}
#contact .button.primary:hover {
  background: #6c3483 !important;
}