/* Modern VLSM Auto CSS - Dark Neon Tech Theme */

/* Base styling and typography */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@700;800&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  /* Main color palette - Neon Tech */
  --primary-color: #00e5ff;
  --primary-dark: #00b8d4;
  --primary-light: #18ffff;
  --secondary-color: #00e5ff;
  --secondary-dark: #00e5ff;
  --accent-color: #00e5ff;

  /* Neutrals - Dark Theme */
  --bg-color: #161d2a;
  --card-bg: #1a2030;
  --input-bg: #141a25;
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --text-light: #718096;
  --border-color: #283242;
  --border-glow: rgba(0, 229, 255, 0.2);

  /* Status colors */
  --success-color: #00ffa3;
  --warning-color: #00e5ff;
  --error-color: #ff5252;

  /* Shadow variables */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);

  /* Neon glow effects */
  --glow-primary: 0 0 10px rgba(0, 229, 255, 0.5);
  --glow-secondary: 0 0 10px rgba(0, 255, 157, 0.5);
  --glow-accent: 0 0 10px rgba(213, 0, 249, 0.5);

  --gradient-start: #007bff; /* Bleu éclatant */
  --gradient-1: #00a2ff; /* Bleu néon intense */
  --gradient-2: #00c3ff; /* Bleu turquoise */
  --gradient-3: #5dfdff; /* Cyan clair néon */
  --gradient-4: #aafaff; /* Bleu pastel lumineux */

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
img {
  width: 8%;
  height: auto;
  display: block;
  margin-top: 1rem;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 5px rgba(118, 212, 255, 0.8));
}
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(
    circle at 50% 0%,
    #1a2742 0%,
    var(--bg-color) 40%
  );
  color: var(--text-primary);
  line-height: 1.5;
  padding-bottom: 4rem;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
html,
body {
  overflow-y: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
#copyright {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-color);
}

h3,
#copyright {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

/* Layout Structure */

#body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-y: auto;
}

#boxadresses {
  background-color: var(--card-bg);
  background-image: linear-gradient(
    to bottom,
    rgba(0, 229, 255, 0.05),
    rgba(0, 0, 0, 0)
  );
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 229, 255, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 800px;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

#boxadresses::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  box-shadow: var(--glow-primary);
}

#inputs {
  max-height: 1000px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.inputligne {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .inputligne {
    flex-direction: row;
    align-items: center;
  }

  .inputligne p {
    width: 200px;
    text-align: right;
    padding-right: 1rem;
    margin: 0;
  }
}

/* Form Elements */

.inputligne p {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  text-shadow: 0 0 5px rgba(226, 232, 240, 0.3);
}

/* ======== CUSTOM TECH INPUT STYLING ======== */
input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--primary-light);
  background-color: var(--input-bg);
  transition: all var(--transition-fast);
  outline: none;
  font-family: "JetBrains Mono", monospace;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  letter-spacing: 0.5px;
}
.adress {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--primary-light);
  background-color: var(--input-bg);
  transition: all var(--transition-fast);
  outline: none;
  font-family: "JetBrains Mono", monospace;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  letter-spacing: 0.5px;
}

.adress:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--border-glow), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.adress::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.adress:hover {
  border-color: rgba(0, 229, 255, 0.5);
}
/* Styles pour l'accordéon - Dark Neon Tech Theme */
.accordion {
  background-color: var(--input-bg);
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-color);
  outline: none;
  transition: all var(--transition-fast);
  margin-top: 1rem;
  font-weight: 600;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.accordion:hover {
  background-color: rgba(0, 229, 255, 0.05);
  border-color: var(--primary-color);
  box-shadow: 0 0 5px var(--border-glow);
}

.accordion:after {
  content: "\002B"; /* Unicode pour le signe plus */
  color: var(--primary-color);
  font-weight: bold;
  float: right;
  margin-left: 5px;
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

.accordion.active {
  background: linear-gradient(
    to bottom,
    rgba(0, 229, 255, 0.1),
    rgba(0, 229, 255, 0.03)
  );
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--border-glow);
}

.accordion.active:after {
  content: "\2212"; /* Unicode pour le signe moins */
}
.panel {
  padding: 0;
  background-color: transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);

  border-radius: 0 0 8px 8px;
  margin-top: -1px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s ease forwards;
  overflow-y: auto; /* Permet le défilement vertical */
}

.panel input {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--primary-light);
  background-color: var(--input-bg);
  transition: all var(--transition-fast);
  outline: none;
  font-family: "JetBrains Mono", monospace;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.panel.active {
  padding: 1rem;
  border-top: none;
  background-color: rgba(20, 26, 37, 0.8);
  backdrop-filter: blur(5px);
  max-height: 500px; /* Hauteur maximum du panel */
  overflow-y: auto; /* Permet d'activer le défilement vertical si le contenu dépasse */
}

.panel:not(.active) {
  max-height: 0;
}

/* Animation lorsque le panneau s'ouvre */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Buttons */

/* Modified button styles to ensure consistent blue gradient */

/* Base button style with consistent blue gradient */
.mainbutton {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-1),
    var(--gradient-3),
    var(--gradient-1)
  );
  background-size: 300% 300%;
  animation: gradientAnimation 6s ease infinite;
  color: #0f1520;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 4px var(--primary-color),
    /* Halo principal */ 0 0 5px var(--primary-color),
    /* Effet néon doux */ 0 0 2px rgba(0, 162, 255, 0.8); /* Glow intense */
  margin: 1.5rem auto 0;
  display: block;
  min-width: 140px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

/* Consistent hover effect for all buttons */
.mainbutton:hover {
  box-shadow: 0 0 12px var(--primary-color), 0 0 30px var(--primary-color),
    0 0 60px rgba(0, 162, 255, 1); /* Glow plus fort */
  transform: scale(1.05); /* Légère mise en avant */
  background-position: 100% 50%;
}

.mainbutton:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm), 0 0 5px var(--primary-color);
  opacity: 0.9;
}

/* Ensure #envoyer has the same gradient but maintains its display property */
#envoyer {
  display: none; /* Keeping the original display property */
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-1),
    var(--gradient-3),
    var(--gradient-1)
  );
  background-size: 300% 300%;
  animation: gradientAnimation 6s ease infinite;
  box-shadow: var(--shadow-md), 0 0 5px var(--primary-color);
}

#envoyer:hover {
  box-shadow: 0 0 12px var(--primary-color), 0 0 12px var(--primary-color),
    0 0 10px rgba(0, 162, 255, 1);
  transform: scale(1.05);
}

/* #buttonadd with the same gradient */
#buttonadd {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-1),
    var(--gradient-3),
    var(--gradient-1)
  );
  background-size: 300% 300%;
  animation: gradientAnimation 6s ease infinite;
  box-shadow: var(--shadow-md), 0 0 5px var(--primary-color);
  margin: 1.5rem auto;
}

#buttonadd:hover {
  box-shadow: 0 0 12px var(--primary-color), 0 0 30px var(--primary-color),
    0 0 60px rgba(0, 162, 255, 1);
  transform: scale(1.05);
  animation: gradientAnimation 4.5s ease infinite;
}

/* Ensuring action buttons also have the same style */
#actionButtons .mainbutton {
  margin: 0 0.3rem;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-1),
    var(--gradient-3),
    var(--gradient-1)
  );
  background-size: 300% 300%;
  animation: gradientAnimation 6s ease infinite;
  box-shadow: 0 0 4px var(--primary-color), 0 0 5px var(--primary-color),
    0 0 2px rgba(0, 162, 255, 0.8);
  margin-bottom: 3rem;
}

#actionButtons .mainbutton:hover {
  box-shadow: 0 0 12px var(--primary-color), 0 0 30px var(--primary-color),
    0 0 60px rgba(0, 162, 255, 1);
  transform: scale(1.05);
}

#para {
  width: 100%;
  height: auto;
  max-width: 1000px;
  transition: height var(--transition-normal);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Retour Button - Neon Blue Style with Curved Undo Arrow - Fixed Position */
#retour {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-1),
    var(--gradient-3),
    var(--gradient-1)
  );
  background-size: 300% 300%;
  animation: gradientAnimation 6s ease infinite;
  color: #0f1520;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 4px var(--primary-color),
    0 0 5px var(--primary-color),
    0 0 2px rgba(0, 162, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  
  /* Fixed positioning at top left */
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000; /* Ensure it stays above other elements */
  
  margin: 0; /* Remove margin since we're using fixed positioning */
}

#retour::after {
  content: "↩";  /* Unicode curved arrow for undo */
  margin-left: 8px;
  font-size: 1.4rem;
  font-weight: bold;
  transition: transform var(--transition-fast);
}

#retour:hover {
  box-shadow: 0 0 8px var(--primary-color), 
              0 0 15px var(--primary-color);  /* Reduced light intensity */
  transform: scale(1.03);  /* Slightly reduced scale effect */
  background-position: 100% 50%;
}

#retour:hover::after {
  transform: scale(1.2);  /* Make the arrow slightly larger on hover */
}

#retour:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm), 0 0 5px var(--primary-color);
  opacity: 0.9;
}

/* For mobile responsiveness */
@media screen and (max-width: 480px) {
  #retour {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    top: 10px;
    left: 10px;
  }
  
  #retour::after {
    font-size: 1.2rem;
  }
}
#boxzone {
  width: 100%;
  background-color: var(--card-bg);
  background-image: linear-gradient(
    to bottom,
    rgba(0, 229, 255, 0.05),
    rgba(0, 0, 0, 0)
  );
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 229, 255, 0.1);
  padding: 2rem;
  margin-bottom: 1.5rem;
  /* Ces propriétés contrôlent la transition */
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease,
    margin 0.3s ease, border-width 0.3s ease;
  display: block;
  overflow-y: scroll;
  max-height: 55vh;
  border: 1px solid var(--border-color);
  position: relative;
  opacity: 1;
  padding-left: 2.4rem;
}

#boxzone.closing {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
  overflow: hidden;
}

#boxzone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  box-shadow: var(--glow-primary);
}
#content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Result Box Styling */

#boxconf {
  display: flex;
  gap: 1rem;
  background-color: rgba(20, 26, 37, 0.8);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-color);
  position: relative;
  backdrop-filter: blur(10px);
}

#boxconf:hover {
  box-shadow: var(--shadow-md), 0 0 5px rgba(0, 229, 255, 0.2);
}

#boxnh {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  #boxnh {
    flex-direction: row;
  }

  #boxnh > div {
    flex: 1;
  }
}

#boxconf #supprimer {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--error-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: center; /* Changed from flex-start to center */
  margin: auto 0; /* Added for vertical centering */
}

#boxconf #supprimer:hover {
  background-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Result Table */

#resultbox {
  background-color: rgba(20, 26, 37, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(10px);
}

#resultname {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.line p {
  flex: 1;
  min-width: 200px;
  background-color: var(--input-bg);
  padding: 0.75rem;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.5px;
}

#plusdereseauchar {
  color: var(--error-color);
  font-weight: 500;
  padding: 0.75rem;
  background-color: rgba(255, 82, 82, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 82, 82, 0.2);
  text-shadow: 0 0 5px rgba(255, 82, 82, 0.3);
}

/* VLSM Table */

.vlsm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.5rem;
  font-size: 14px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 229, 255, 0.1);
  background-color: rgba(20, 26, 37, 0.8);
  backdrop-filter: blur(5px);
}

.vlsm-table th,
.vlsm-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.vlsm-table th {
  background: linear-gradient(
    to bottom,
    rgba(0, 229, 255, 0.1),
    rgba(0, 229, 255, 0.03)
  );
  font-weight: 600;
  color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 var(--border-color);
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.5px;
}

.vlsm-table th:first-child {
  border-top-left-radius: 8px;
}

.vlsm-table th:last-child {
  border-top-right-radius: 8px;
}

.vlsm-table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.vlsm-table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.vlsm-table tr:hover {
  background-color: rgba(0, 229, 255, 0.05);
}

.vlsm-table td {
  border-right: 1px solid var(--border-color);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.vlsm-table td:last-child {
  border-right: none;
}

/* Action Buttons */
@media print {
  body,
  html {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
  }

  .vlsm-table,
  .vlsm-table th,
  .vlsm-table td,
  #resultbox,
  #boxconf {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    color: black !important;
    border-color: #ccc !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .vlsm-table th {
    color: black !important;
    text-shadow: none !important;
  }
}
/* Style pour le premier bouton avec plus de violet */
#actionButtons .mainbutton {
  margin: 0 0.3rem;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-1),
    var(--gradient-4),
    var(--gradient-1)
  );
  background-size: 300% 300%;
  animation: gradientAnimation 6s ease infinite;

  /* Ombre néon fine et subtile */
  box-shadow: 0 0 2px var(--gradient-start),
    /* Halo discret */ 0 0 4px var(--gradient-1),
    /* Glow léger */ 0 0 6px rgba(138, 43, 226, 0.4); /* Effet néon atténué */
  transition: box-shadow 0.2s ease-in-out;
}

/* Légère intensification au survol */
#actionButtons .mainbutton:hover {
  box-shadow: 0 0 6px var(--gradient-start), 0 0 12px var(--gradient-1),
    0 0 18px rgba(138, 43, 226, 0.5);
  transform: scale(1.03); /* Mise en avant subtile */
}

/* Style pour le bouton d'ajout - correction pour s'assurer que le dégradé s'applique */
#buttonadd {
  background: linear-gradient(
    45deg,
    var(--gradient-3),
    var(--gradient-4),
    var(--gradient-start),
    var(--gradient-3)
  );
  background-size: 300% 300%;
  animation: gradientAnimation 9s ease infinite;
  box-shadow: var(--shadow-md), 0 0 10px rgba(123, 31, 162, 0.5);
  margin: 1.5rem auto;
}

#buttonadd:hover {
  box-shadow: var(--shadow-lg), 0 0 15px rgba(123, 31, 162, 0.7);
  animation: gradientAnimation 4.5s ease infinite;
}

/* Responsiveness */

@media screen and (max-width: 768px) {
  .line {
    flex-direction: column;
    gap: 0.75rem;
  }

  .line p {
    min-width: 100%;
  }

  #boxconf {
    flex-direction: column;
  }

  #boxconf #supprimer {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .vlsm-table {
    font-size: 12px;
  }

  .vlsm-table th,
  .vlsm-table td {
    padding: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1rem;
  }

  #boxadresses,
  #boxzone {
    padding: 1.25rem;
  }

  .mainbutton {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
  }
}

.adress:focus {
  animation: pulseGlow 2s infinite;
}

#resultbox,
#boxconf {
  animation: fadeIn 0.3s ease forwards;
}

/* Custom scrollbar */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #141a25;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #2a3548;
  border-radius: 5px;
  border: 2px solid #141a25;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a4a66;
  box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

/* Selection */
::selection {
  background-color: rgba(0, 229, 255, 0.3);
  color: white;
}

#actionButtons {
  margin-bottom: 3rem;
}
