@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #970790, #0957b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  padding: 50px 20px;
}

.add-teams {
  position: relative;
  width: 90%;
  max-width: 1000px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.add-teams:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.vector-1, .vector-2 {
  position: absolute;
  width: 50px;
  height: 50px;
}

.vector-1 {
  top: 20px;
  left: 20px;
}

.vector-2 {
  top: 20px;
  right: 20px;
}

h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  color: #2C3E50;
  margin-bottom: 30px;
}

.search-box {
  width: 100%;
  max-width: 400px;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #0072ff;
  border-radius: 8px;
  font-size: 18px;
  transition: border-color 0.3s ease;
}

.search-box:focus {
  border-color: #0c657e;
}

.fencers-list-container {
  width: 100%;
}

.fencers-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  border-radius: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.fencer-header-name, .fencer-header-nationality {
  width: 48%;
  text-align: center;
}

.fencers-list {
  max-height: 500px;
  overflow-y: auto;
  border-radius: 10px;
}

.fencer-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
  transition: background-color 0.3s, transform 0.3s;
}

.fencer-item:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.fencer-name, .fencer-nationality {
  width: 48%;
  text-align: center;
}

.fencer-name a {
  text-decoration: none;
  color: #0072ff;
  transition: color 0.3s ease;
}

.fencer-name a:hover {
  color: #af0994;
}

@media (max-width: 600px) {
  body {
    padding-top: 40px;
  }

  .add-teams {
    padding: 20px;
  }

  .vector-1, .vector-2 {
    width: 35px;
    height: 35px;
  }

  .fencers-header {
    flex-direction: column;
    align-items: center;
    font-size: 20px;
  }

  .fencer-header-name, .fencer-header-nationality {
    width: 100%;
  }

  .fencer-item {
    flex-direction: column;
    align-items: center;
  }

  .fencer-name, .fencer-nationality {
    width: 100%;
  }
}
