/* =======================
   Import Google Font Orbitron
======================= */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* =======================
   Reset / Global
======================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Orbitron', sans-serif;
  background-image: url(/stylesheet/images/body_background.png);
  background-size: cover;
  background-attachment: fixed;
  color: #00f2ff;
  line-height: 1.5;
}

/* =======================
   Main Container
======================= */
#main-content {
  max-width: 720px;
  margin: 20px auto;
  padding: 20px;
}

/* =======================
   Headings
======================= */
h1, h2, h3, h4, h5, h6 {
  color: #00f2ff;
  margin-bottom: 15px;
}

h1 {
  font-size: 2em;
  text-align: center;
}

h2 {
  font-size: 1.4em;
  font-weight: normal;
  color: #aefeff;
  text-align: center;
  margin-bottom: 20px;
}

/* =======================
   Machine / Saturn Frame
======================= */
.machine-frame {
  padding: 20px;
  border: 2px solid #00f2ff;
  border-radius: 12px;
  background: linear-gradient(to bottom right, #1a1a1a, #2a2a2a);
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0,242,255,0.6), 0 0 25px rgba(0,242,255,0.3) inset;
}

/* =======================
   Table Style (Desktop)
======================= */
.emulator-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #0f1b26;
  border: 2px solid #00f2ff;
  border-radius: 8px;
  overflow: hidden;
  display: table; /* visible desktop */
}

.emulator-table thead {
  background-color: #1a2a3a;
}

.emulator-table thead th {
  padding: 12px 10px;
  text-align: center;
  color: #00f2ff;
  font-weight: bold;
  border-bottom: 2px solid #00f2ff;
}

.emulator-table tbody td {
  padding: 10px;
  color: #cce6ff;
  border-bottom: 1px solid #00f2ff;
}

.emulator-table tbody tr:last-child td {
  border-bottom: none;
}

.emulator-table a {
  color: #ffe0b3;
  text-decoration: none;
  transition: color 0.3s;
}

.emulator-table a:hover,
.emulator-table a:focus {
  color: #00f2ff;
}

/* =======================
   Mini-Cards Mobile
======================= */
.emulator-cards {
  display: none; /* caché desktop */
}

@media (max-width: 768px) {

  /* Desktop table hidden, show cards */
  .emulator-table {
    display: none;
  }

  .emulator-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  .emulator-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #00f2ff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 12px rgba(0,242,255,0.4), 0 0 20px rgba(0,242,255,0.2) inset;
    transition: transform 0.2s, box-shadow 0.3s;
  }

  .emulator-card:hover,
  .emulator-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0,242,255,0.6), 0 0 30px rgba(0,242,255,0.3) inset;
  }

  .emulator-card a {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffe0b3;
    text-decoration: none;
    margin-bottom: 8px;
  }

  .emulator-card a:hover,
  .emulator-card a:focus {
    color: #00f2ff;
  }

  .emulator-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95em;
  }

  .emulator-info span {
    display: flex;
    justify-content: space-between;
  }

  .emulator-info span strong {
    color: #00f2ff;
  }

  /* Adjust container and frame for mobile */
  #main-content {
    padding: 15px;
    margin: 10px;
  }

  h1, h2 {
    text-align: center;
  }

  .machine-frame {
    padding: 15px;
    margin: 10px 0;
  }
}

/* =======================
   Accessibility focus
======================= */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px dashed #00f2ff;
  outline-offset: 3px;
}

/* =======================
   Buttons / Inputs
======================= */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  background-color: #111;
  border: 1px solid #00f2ff;
  border-radius: 6px;
  color: #00f2ff;
}

button {
  padding: 10px 15px;
  background-color: #000;
  color: #00f2ff;
  border: 1px solid #00f2ff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

button:hover,
button:focus {
  background-color: #00f2ff;
  color: #000;
}

/* Centrer tout le contenu des cellules de la table desktop */
.emulator-table th,
.emulator-table td {
    text-align: center;
    vertical-align: middle; /* pour aligner verticalement au centre */
}

/* Optionnel : si tu veux que les liens soient aussi centrés */
.emulator-table td a {
    display: inline-block;
    text-align: center;
    width: 100%;
}

/* Pour les cartes mobile (si tu veux centrer le texte également) */
.emulator-cards .emulator-card {
    text-align: center;
}