/* Grundläggande stil för tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

thead {
  background-color: #34775a;
  color: white;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

tbody tr:hover {
  background-color: #ddd;
}

td {
  color: #2c3e50;
}

.results h2 {
  color: #34775a;
  text-align: center;
}
#main-header h1 {
  color: #34775a;
  text-align: center;
  font-size: 38px;
  margin-top: 20px;
}

.results {
  width: 100%;
}


.content {
  display: flex;
  justify-content: space-evenly;
  margin: 1.5rem;
}


#upcoming-events h2 {
  text-align: center;
  color: #34614d;
  text-transform: uppercase;
  font-size: 24px;
  margin-top: 50px;
}

#past-competitions h2 {
  text-align: center;
  color: #34614d;
  text-transform: uppercase;
  font-size: 24px;
  margin-top: 50px;
}
/* Event */

.event-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.item-container {
  position: relative;
  margin: 24px;
  width: 320px;
  height: 570px;
  overflow: hidden;
  background-color: #f7f7f7;
  box-shadow: 0 0 30 5px rgba(0, 0, 0, 0.30);
  cursor: pointer;
}

.img-container,
.body-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.img-container img {
  width: 100%;
}

.body-container a {
  text-align: center;
}

.body.container {
  position: relative;
}

.overlay {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: rgba(27, 26, 26, 0.671);
  opacity: 0;
  transition: height linear 0.4s, opacity linear 0.2s;
}

.item-container:hover .overlay {
  opacity: 1;
  height: 150px;
}



.info-event {
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.name,
.pris {
  color: #34775a;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 12px;
  text-transform: uppercase;
}
.finished {
  color: #e90000;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 12px;
  text-transform: uppercase;
  padding-top: 10px;
}

.info {
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.separator {
  width: 50%;
  height: 5px;
  border-radius: 50px;
  background-color: #000000;
  margin-bottom: 16px;
}

.extra-info {
  border-top: 1px solid #bbb;
  margin-top: 12px;
  padding: 10px;
  padding-bottom: 0;
}

.extra-info info {
  font-size: 0.9em;
  margin-bottom: 20px;
  text-align: center;

}

.info i {
  color: #34775a;
  font-size: 1.1em;
  margin-right: 4px;
}

.info span {
  color: rgb(11, 54, 196);
}

.action {
  color: #f7f7f7;
  border: 3px solid #34775a;
  background-color: transparent;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  outline: none;
  cursor: pointer;
  padding: 12px;
  text-transform: uppercase;
  font-size: 1.3em;
  font-weight: bold;
  letter-spacing: 2px;
  transition: background-color 0.4s, top 0.4s;
}

.item-container:hover .action {
  top: 50px;
}

.action:hover {
  background-color: rgba(0, 0, 0, 0.30);
}

/* Styling för formulär på anmälningssidan */

.formbody {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.68), rgba(87, 87, 87, 0.7)), url(Images/Events/login_bg.jpg);
  background-size: cover;
  background-position: center;
}

.loginbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 420px;
  box-sizing: border-box;
  background: #34775a;
}


.loginbox h2 {
  margin: 0;
  padding: 0 0 20px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.loginbox p {
  margin: 0;
  padding: 0;
  font-weight: bold;
  color: #ffffff;
}

.loginbox input {
  width: 100%;
  margin-bottom: 20px;
}

.loginbox input[type="text"],
.loginbox input[type="password"] {
  border: none;
  border-bottom: 1px solid #34775a;
  background: #ffffff;
  outline: none;
  color: #000000;
  
}


::placeholder {
  color: #fff;
}

.registerbtn {
  border-radius: 10px;
  outline:#000000;
  height: 50px;
  color: #ffffff;
  font-size: 18px;
  background: #34614d;
}


.previous-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #34614d;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
}

.previous-btn:hover {
  background-color: rgba(0, 165, 33, 0.885);
}