html, body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}

/* Offest main content from header */
main {
  margin-top: 80px;

  flex: 1;
  padding: 30px 40px;

  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* HEADER ROW */
.create-genre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.create-genre h2 {
  font-size: 30px;
  color: rgb(119, 29, 29);
  margin: 0;
}

/* BUTTON */
.btn {
  text-decoration: none;
  background: rgb(119, 29, 29);
  color: azure;

  padding: 10px 18px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  border: 2px solid rgb(119, 29, 29);
  transition: 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: rgb(119, 29, 29);
}


/* FLEX LIST WRAPPER */
.game-genres {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 30px;

  justify-content: flex-start;
  align-items: stretch;
}

/* Flex item*/
.genre {
  flex: 1 1 380px;
  display: flex;
}

/* Wrapper positioning context */
.genre-card-wrapper {
  position: relative;
  width: 100%;
  height: 160px;

  display: flex;
}

/* Card flex fill */
.genre-card {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 3px solid rgb(119, 29, 29);
  border-radius: 14px;

  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 18px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

/* Actions: Overall inside card */
.genre-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;

  display: flex;
  gap: 8px;
}

/* Icons base */
.icon {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;

  font-size: 15px;
  text-decoration: none;
  cursor: pointer;

  transition: transform 0.15s ease, background 0.2s ease;
}

.icon:hover {
  transform: scale(1.1);
  background: white;
}

/* ICON COLORS */
.icon.view {
  color: #2c3e50;
}

.icon.edit {
  color: #2980b9;
}

.icon.delete {
  color: #c0392b;
  border: none;
}

/* Footer */
footer {
  background: rgb(119, 29, 29);
  color: azure;
  padding: 20px;
  text-align: center;
  margin-top: auto;
}

footer p {
  font-size: 14px;
  opacity: 0.9;
}