body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}

a:link {
    text-decoration: none;
color:#000000;
}

a:visited {
    text-decoration: none;
color:#000000;
}

a:hover {
    text-decoration: none;
color:#000000;
}

a:active {
    text-decoration: none;
color:#000000;
}

#cards img
{
width:300px;
}


#cards {
width:1800px;
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 5 equal-width columns */
    gap: 10px; /* Space between grid items */
    padding: 20px;
    min-height: 200px; /* Ensures the container is visible */
}

.draggable-item {
    cursor: grab; /* Changes the cursor to indicate it's draggable */

}

.draggable-item:active {
    cursor: grabbing;
}

.draggable-item img {
width:300px;
    height: auto;
    display: block;
}

.dragging {
    opacity: 0.9;
}

.placeholder {
    background-color: #e0e0e0;
    border: 2px dashed #999;
    /* Optional: Add a transition for a smoother visual effect */
    transition: all 0.2s ease-in-out; 
}

/* Hide the placeholder from other drag operations */
.dragging + .placeholder {
    display: none;
}





#title {

    text-align: center;
      font-family: "Arial Black", sans-serif;
    font-size: 40pt;
    color: white; /* This is the fill color */
    -webkit-text-stroke: 10px black;
    text-stroke: 10px black;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased; 	       
    -moz-osx-font-smoothing:
}
#title a:link {
    text-decoration: none;
-webkit-text-stroke: 10px black;
    text-stroke: 10px black;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased; 	       
    -moz-osx-font-smoothing:
}

#title a:visited {
    text-decoration: none;
color:white;
-webkit-text-stroke: 10px black;
    text-stroke: 10px black;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased; 	       
    -moz-osx-font-smoothing:
}

#title a:hover {
    text-decoration: none;
color:white;
-webkit-text-stroke: 10px black;
    text-stroke: 10px black;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased; 	       
    -moz-osx-font-smoothing:
}

#title a:active {
    text-decoration: none;
color:white;
-webkit-text-stroke: 10px black;
    text-stroke: 10px black;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased; 	       
    -moz-osx-font-smoothing:
}

#header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

#header img
{
width:100px;
height:100px;
}
#elemental-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#main
{
width:100%;
text-align:left;  
  display: flex; /* Use flexbox on the parent */
  justify-content: center; /* Center horizontally */
}
#grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 3 columns for the main images */
    gap: 20px;
}


#trainer-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height:450px;
}
#trainer-name-section {
    text-align: center;
    font-size: clamp(1.0rem, 1.3rem, 1.3rem);
    font-weight: bold;
    margin-bottom: 10px;
    width:130px;
}
.main-image {
    height: 400px;
    width: 400px;
    margin-bottom: 10px;
}

#details-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#name-section {
    font-size: clamp(1.0rem, 1.3rem, 1.3rem);
    font-weight: bold;
    margin-bottom: 10px;
    width:130px;
}

#evolution-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    margin-top:360px;
    width:100%;
}

#evolution-line img {
    width: 130px; /* Smaller size for evolution line images */
    height: 130px;
    object-fit: contain;
}

#typing-section {
    display: flex;
    justify-content: right;
    gap: 5px;
    width:100%;
    margin-top:-410px;
}

.typing-icon {
    width: 40px; /* Size for typing icons */
    height: 40px;
    object-fit: contain;
}

#elemental-panel {
    display: grid;
    /* Defines two main columns: one for images, one for text */
    grid-template-columns: 1fr 1.5fr; /* Image column is narrower (1fr), text column is wider (1.5fr) */
    gap: 20px; /* Space between the main columns */
    max-width: 1200px; /* Max width of the entire layout */
    margin: 0 auto; /* Center the container on the page */
    background-color: #fff; /* White background for the content area */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#image-column {
    display: grid;
    /* Defines two rows within the image column */
    grid-template-rows: auto auto; /* Rows will size based on content */
    gap: 20px; /* Space between the top and bottom image sections */
}

#main-image-section {
    /*background-color: #f8f8f8; /* Slightly darker background for this section */
    padding: 10px;
    /*border-radius: 6px;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-image-section img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
        border-radius: 4px;
}

#thumbnail-images-section {
    /*background-color: #f8f8f8; /* Slightly darker background for this section */
padding-top: -10px;
    /*border-radius: 6px;*/
    display: flex;
    justify-content: center; /* Center the thumbnails horizontally */
    gap: 10px; /* Space between individual thumbnails */
}

#thumbnail-images-section img {
    width: 160px; /* Allows two images to fit side-by-side with a gap */
    height:160px;
    display: block;
    border: 1px solid #eee; /* Light border around thumbnails */
    border-radius: 4px;

}



/* Style for the close button */
.close-button {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


#text-column {
    /*background-color: #f8f8f8; /* Slightly darker background for this section */
    padding: 20px;
    /*border-radius: 6px;*/
}



#right-panel {
  width: 800px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

#previewImage {
    display: grid;
    /* Defines two main columns: one for images, one for text */
    grid-template-columns: 1fr 1.5fr; /* Image column is narrower (1fr), text column is wider (1.5fr) */
    gap: 20px; /* Space between the main columns */
    max-width: 1200px; /* Max width of the entire layout */
    margin: 0 auto; /* Center the container on the page */
    padding: 20px;

  margin-top:-640px;
  display: none; 
}
#previewImageInterior
{
  width: 800px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}
#previewImageInterior img
{
  height:580px;
  width:580px;
  margin-left:340px;
}

.type-combo-icon1 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ccc;
}
.comboSelected1
{
 border: 4px solid #000;
}
.type-combo-icon2 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ccc;
}
.comboSelected2
{
 border: 4px solid #000;
}

#details #input-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

#details label {
  width: 120px;
  font-weight: bold;
  color: #555;
}

#details input, #details select {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#evolution-section {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

#evolution-section h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

#evolution-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

#evolution-row p {
  width: 120px;
  margin: 0;
  color: #555;
}

#evolution-row select {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.evolution-image {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#legendary-checkbox {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  color: #555;
}

#legendary-checkbox input {
  width: 18px;
  height: 18px;
}

input[type="submit"]  {
  margin-top: 30px;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"] :hover {
  background-color: #0056b3;
}

#elemental-cards {
    display: grid;
    /* Defines two main columns: one for images, one for text */
    grid-template-columns: repeat(4, 1fr); /* 5 equal-width columns */
    gap: 10px; /* Space between the main columns */
    max-width: 1200px; /* Max width of the entire layout */
    margin: 0 auto; /* Center the container on the page */
    background-color: #fff; /* White background for the content area */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top:20px;
}
#elementalCard img {
width:260px;
}