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

html,
body {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(images/bg-2.png);
  background-size: cover;
  padding: 20px;
}

main {
  display: flex;
  flex-direction: column;
  height: 80vh;
  width: 80%;
  max-width: 1200px;
  border: 4px solid rgba(102, 126, 234, 0.5);
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20%;
}

.header h1 {
  font-size: 5rem;
  color: #00f5ff;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.6);
}

.container {
  display: flex;
  height: 80%;
  gap: 20px;
  padding: 20px;
}

.player {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 46, 0.4),
    rgba(42, 42, 62, 0.4)
  );
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  width: 100%;
}

.icon-player {
  border: 6px solid #00f5ff;
  border-radius: 50%;
  height: 171px;
  width: 171px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.player img {
  height: 160px;
  width: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.player input {
  height: 50px;
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  border: 2px solid #667eea;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  padding-left: 15px;
  outline: none;
  margin-top: 120px;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.player input::placeholder {
  color: rgba(224, 224, 224, 0.5);
}

.player input:focus {
  border-color: #00f5ff;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.player button {
  color: white;
  padding: 15px 40px;
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0px 6px 0px #302b63;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.player button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 0px #302b63, 0 10px 25px rgba(102, 126, 234, 0.5);
}

.player button:active {
  transform: translateY(2px);
  box-shadow: 0px 2px 0px #302b63;
}

.rules {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 46, 0.4),
    rgba(42, 42, 62, 0.4)
  );
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  gap: 20px;
  line-height: 1.2;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.rules h2 {
  font-size: 2.2rem;
  color: #00f5ff;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  margin: 0 auto;
}

.sub-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #667eea;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.paragraphe {
  font-size: 1.1rem;
  padding: 0px 15px;
  color: #e0e0e0;
}

.mods,
.tuto {
  background: rgba(102, 126, 234, 0.1);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

@media screen and (max-width: 1200px) {
  .header h1 {
    font-size: 3.5rem;
  }
}

@media screen and (max-width: 1024px) {
  main {
    width: 95%;
    height: auto;
    min-height: 80vh;
  }

  .container {
    flex-direction: column;
  }

  .player,
  .rules {
    width: 100%;
  }

  .header h1 {
    font-size: 3rem;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .player input {
    font-size: 1.2rem;
    margin-top: 50px;
  }

  .player button {
    font-size: 1.2rem;
    padding: 12px 30px;
  }

  .icon-player {
    height: 120px;
    width: 120px;
  }

  .player img {
    height: 110px;
    width: 110px;
  }
}
