/* Polices */
@font-face {
  font-family: 'ArialRoundedBold';
  src: url('../fonts/ArialRoundedMT-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'ArialRoundedRegular';
  src: url('../fonts/ArialRoundedMT-Regular.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow: auto;
  font-family: 'ArialRoundedRegular', sans-serif;
  color: white;
  background: #080834;
  background: -webkit-linear-gradient(180deg, rgba(28, 30, 133, 1) 0%, rgba(8, 8, 52, 1) 100%);
  background: -moz-linear-gradient(180deg, rgba(28, 30, 133, 1) 0%, rgba(8, 8, 52, 1) 100%);
  background: linear-gradient(180deg, rgba(28, 30, 133, 1) 0%, rgba(8, 8, 52, 1) 100%);
  background-attachment: fixed;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1C1E85", endColorstr="#080834", GradientType=0);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Japonneige */
#snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

/* Texte principal */
.intro {
  position: relative;
  z-index: 1;
  padding-top: 8vh;
  margin-bottom: 3vh;
}

h1 {
  font-family: 'ArialRoundedBold', sans-serif;
  font-size: 8vh;
  margin: 0;
}

h2 {
  font-family: 'ArialRoundedRegular', sans-serif;
  font-size: 2.5vh;
  margin-top: 1vh;
  margin-bottom: 2vh;
  font-weight: normal;
}

a {
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

/* Aiko */
.aikochan {
  z-index: 1;
  position: relative;
  margin-top: 4vh;
}

.aikochan img {
  width: 20vh;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
}

.box {
  background-color: rgba(0, 0, 0, 0.50);
  padding: 20px;
  border-radius: 12px;
  margin: 30px;
  flex: 1 1 300px;
  max-width: 300px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.box-image {
  width: 150px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

input {
  padding: 0.5em;
  border-radius: 5px;
  border: none;
  margin: 0.5em;
}

button {
    background-color: black;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

button:hover {
    background-color: #666;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a2a2a;
    color: #aaa;
}

.btn-icon {
    height: 24px;
    width: auto;
    display: block;
}

table {
    margin: 40px auto;
    border-collapse: collapse;
    width: 80%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #72a4f2;
    color: white;
    text-transform: uppercase;
}
tr:hover {
    background-color: rgba(114,164,242,0.1);
}

footer {
  width: 100%;
  color: white;
  text-align: center;
  padding: 2vh 0;
  margin-top: auto;
  font-size: 1.8vh;
  font-family: 'ArialRoundedRegular', sans-serif;
  opacity: 0.5;
}

.logout-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  background-color: rgba(255, 77, 77, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: rgba(255, 77, 77, 1);
}