body {
  margin: 0;
  font-family: Verdana, sans-serif;
  font-size: 12px;
}

a {
  text-decoration: none;
}

#banner {
  background: url('http://graphics.pvrpg.net/banner.png') no-repeat left;
  background-color: #66c29a; 
  height: 140px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.form-box {
  padding: 12px 15px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.form-box form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-box input {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-box button,
.signup-button,
.link-button {
  background-color: #249e6f;
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.signup-button:hover,
.link-button:hover,
.form-box button:hover {
  background-color: #dfce62;
}

#layout {
  width: 100%;
  display: flex;
  box-sizing: border-box;
}

/* Default three-column layout */
#left-panel {
  width: 15%;
  border-right: 1px solid black;
  padding-top: 0;
  margin-top: 0;
  border-bottom: 1px solid black;
}

#main-content {
  width: 70%;
  background: #ffffff;
  padding: 15px;
  text-align: center;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

#right-panel {
  width: 15%;
  border-left: 1px solid black;
  border-bottom: 1px solid black;
  padding-top: 0;
  margin-top: 0;
}

/* Minimal layout: no side panels */
#layout.no-panels #left-panel,
#layout.no-panels #right-panel {
  display: none;
}

#layout.no-panels #main-content {
  width: 100%;
}

/* Menu styling */
.menu-section {
  margin-bottom: 20px;
}

.menu-header {
  background-color: #66c29a;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 10px;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.menu-link {
  padding: 3px 10px;
  border-bottom: 1px solid black;
}

.menu-link a {
  color: #4d9867;
  text-decoration: none;
  display: block;
}

.menu-link a:hover {
  text-decoration: underline;
}

/* Footer styling */
#footer {
  background-color: #66c29a;
  color: #333;
  padding: 20px 15px;
  font-family: Arial, sans-serif;
  border-top: 1px solid black;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-weight: bold;
  color: #dfce62;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-section ul li a {
  color: #333;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
  color: #b37400;
}

.footer-bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9em;
  color: #dfce62;
}

   h3 {
      margin-top: 0;
    }

form#register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 30%;
  margin: 0 auto; /* This centers the form horizontally */
}

    form#register-form input, select {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 16px;
    }

    form#register-form button {
      background-color: #ffcc00;
      border: none;
      padding: 10px;
      font-weight: bold;
      border-radius: 5px;
      cursor: pointer;
    }

    form#register-form button:hover {
      background-color: #e6b800;
    }

   #captcha-box {
      display: flex;
      align-items: center;
      margin-top: 10px;
    }
    #captcha-code {
      font-weight: bold;
      padding: 5px 10px;
      margin-right: 10px;
    }
    .status {
      font-size: 0.9em;
      display: block;
    }

.pokedex-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;

}

.pokedex-card {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.pokedex-card.owned {
  background-color: #d4edda !important;
  border: 2px solid green;
}



.pagination {
  text-align: center;
  margin: 25px 0;
}

.pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
}

.base-stats {
  font-size: 0.9em;
  margin-top: 6px;
  line-height: 1.4;
}

.base-stats .stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

  #active-pokemon-details {
    border: 1px solid #ccc;
    padding: 10px;
    background: #f9f9f9;
  }

.roster-container {
    display: flex;
    gap: 30px;
}

.left-roster, .right-box {
    flex: 1;
}

.pokedex-card-horizontal {
      display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 12px;
    margin-bottom: 16px;
    gap: 15px;
}
.pokedex-card-horizontal img {
    width: 96px;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
    padding: 4px;
}

.right-box .pokedex-card-horizontal {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    gap: 10px;
    font-size: 13px;
}
.right-box .pokedex-card-horizontal img {
      height: 30px;
  	  width: 40px;
}

.pokemon-info {
    line-height: 1.6;
    text-align:left;
}




.pagination a {
    padding: 4px 8px;
    margin: 0 2px;
    text-decoration: none;
    background-color: #e0e0e0;
    border-radius: 4px;
}
.pagination a.active {
    background-color: #66c29a;
    color: white;
}

table.messages-table thead tr {
    background-color: #f5f5f5;
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
}

tr.message-unread {
    background-color: #f0f8ff; /* Light blue */
    font-weight: bold;
}

tr.message-read {
    background-color: #fff;
    font-weight: normal;
}

table.messages-table tbody tr:hover {
    background-color: #f9f9f9;
}