/* common.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
  --primary-color: #010101;
  --secondary-color: #38a169;
  --background-color: #e6ffed;
  --text-color: #2d3748;
  --error-color: #feb2b2;
  --success-color: #9ae6b4;
  --menu-color: #48bb78;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  width: 100%;
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

nav {
  background-color: var(--menu-color);
  padding: 0.5rem 0;
  width: 100%;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  width: 100%;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
}

h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
  min-height: 200px;
}

button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  display: block;
  margin: 1rem auto 0;
}

button:hover {
  background-color: #2f855a;
}

#result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.valid {
  background-color: var(--success-color);
  border: 1px solid #2f855a;
}

.invalid {
  background-color: var(--error-color);
  border: 1px solid #e53e3e;
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}

#passwordOutput {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
}

.gundam-background {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 600px;
    opacity: 0.5;
    z-index: -1;
    margin-top: 2rem; /* Aggiunge spazio sopra l'immagine */
}

.card {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(100vh - 120px); /* Adjust based on your header and nav height */
    padding-top: 2rem;
}
.welcome-text {
    text-align: center;
    color: var(--primary-color);
    margin-top: 2rem;
}
#domainInput {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.info-text, .simulation-note {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.simulation-note {
    margin-top: 15px;
    background-color: #fff7e6;
    border-color: #ffd591;
}

#result.valid, #result.invalid {
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

#result.valid {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
}

#result.invalid {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
}
   .palmux-link {
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        align-items: center;
        text-decoration: none;
        color: white;
        font-weight: bold;
    }
    .palmux-link img {
        width: 30px;
        height: 30px;
        margin-right: 5px;
    }
