/* -------------BASIC STYLE --------------- */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* ------------- BASIC HTML ELEMENTS ----------- */
.container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

h1 {
  text-align: center;
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

p {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
}

a {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  background-color: #3498db;
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.button {
  display: inline-block;
  background-color: #2ecc71;
  color: white;
  padding: 10px 20px;
  font-size: 1.1rem;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: background-color 0.3s;
  text-align: center;
}

.back-button-container {
  position: sticky;
  top: 0;         
  right: 0;         
  width: 100%;      
  background-color: rgba(255, 255, 255, 1);
  padding: 10px;         
  text-align: right;  
}

.back-button {
  position: absolute;
  right: 10px; 
  padding: 8px 16px;       
  background-color: #4CAF50; 
  color: white;            
  text-decoration: none;   
  border-radius: 4px;    
}

a:hover {
  background-color: #2980b9;
}

.button:hover {
  background-color: #27ae60;
}

/* ------------- FORM ----------------- */

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: #2c3e50;
  gap: 6px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fdfdfd;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: #3498db;
}

input[type="checkbox"] {
  margin-top: 8px;
  width: auto;
}

form button[type="submit"],
form input[type="submit"] {
  background-color: #3498db;
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover,
form input[type="submit"]:hover {
  background-color: #2980b9;
}

/* ---------------- MESSAGES ------------- */
.msg {
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-family: sans-serif;
    font-size: 1rem;
  }

  .msg.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
  }

  .msg.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
  }

  .msg.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
  }

  .msg.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
  }