 /* Fonts */
@font-face {
  font-family: 'PvZ2Regular';
  src: url('Font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
#snackbar {
  visibility: hidden;
  /* Hidden by default. Visible on click */
  min-width: 250px;
  /* Set a default minimum width */
  margin-left: -125px;
  /* Divide value of min-width by 2 */
  background-color: #333;
  /* Black background color */
  color: #fff;
  /* White text color */
  text-align: center;
  /* Centered text */
  border-radius: 2px;
  /* Rounded borders */
  padding: 16px;
  /* Padding */
  position: fixed;
  /* Sit on top of the screen */
  z-index: 1;
  /* Add a z-index if needed */
  left: 50%;
  /* Center the snackbar */
  top: 30px;
  /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
.show {
  visibility: visible !important;
  /* Show the snackbar */

  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }

  to {
    top: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }

  to {
    top: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    top: 30px;
    opacity: 1;
  }

  to {
    top: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    top: 30px;
    opacity: 1;
  }

  to {
    top: 0;
    opacity: 0;
  }
}
/* Body */
body {
  background: url('bgA.png') no-repeat center center fixed;
  background-size: cover;
  color: white;
  font-family: 'PvZ2Regular', sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

/* General Styles */
input, textarea, select, pre {
  padding: 10px;
  margin-bottom: 20px;
  border: 2px solid #5a4100;
  border-radius: 5px;
  font-size: 16px;
  font-family: 'PvZ2Regular', sans-serif;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus::placeholder {
  color: transparent;
}

select option {
  background-color: #282c34;
  color: #5bd8fa;
}
/* CSS file or <style> block */
#Texte {
  display: table;
  width: 100%;
  border-collapse: collapse;
  padding: 10px;
}

#Texte > * {
  display: table-cell;
  padding: 5px;
  vertical-align: middle;
}



/* Input Fields */
input[type="text"]:focus, textarea:focus, select:focus {
  border-color: #312300;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  outline: none;
}

/* Buttons */
button {
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'PvZ2Regular', sans-serif;
  color: whitesmoke;
  background: linear-gradient(to top, #493464, #7453c5);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  text-shadow: 1px 1px #000000;
  border: 3px solid white;
  margin: 10px 10px 10px 10px;
}

button:hover {
  background: linear-gradient(to top, #6a00f5, #361f71);
    /* Darker green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fakeButton {
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'PvZ2Regular', sans-serif;
  color: whitesmoke;
  background: linear-gradient(to top, #493464, #7453c5);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  text-shadow: 1px 1px #000000;
  border: 3px solid white;
  margin: 10px 10px 10px 10px;
}

.fakeButton:hover {
  background: linear-gradient(to top, #6a00f5, #361f71);
  /* Darker green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.red {
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'PvZ2Regular', sans-serif;
  color: whitesmoke;
  background: linear-gradient(to top,  #cd0f0f,#a70000);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  text-shadow: 1px 1px #000000;
  border: none;
  margin: 10px 10px 10px 10px;
}

.red:hover {
  background: linear-gradient(to top, #920b0b, #410000);
    /* Darker green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1600px; /* Set maximum width to limit the number of columns */
  margin: 0 auto; /* Center the grid */
}

/* Box and Info Box */
.box::before, .info-box::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  z-index: -1;
}

.box::after, .info-box::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  background: linear-gradient(225deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
  border-radius: 15px;
  z-index: -1;
}

/* Labels */
label {
  font-family: 'PvZ2Regular', sans-serif;
  color: #312300;
  margin-bottom: 5px;
  display: block;
}

/* Textareas */
textarea {
  resize: vertical;
}
/* Outer Div */
.outer-div {
  background-color: #a86e42;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  color: #ffffff;
  text-align: center;
  border: 10px solid rgba(0, 0, 0, 0.7);
}

/* Inner Container */
.inner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Inner Div */
.inner-div {
  background-color: #d8a872;
  padding: 15px;
  border-radius: 10px;
  width: 45%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #333333;
  text-align: center;
  border: 5px solid rgba(0, 0, 0, 0.5);
}

/* Source Link */
#source {
  display: inline-block;
  background: linear-gradient(to top, #378158, #5fb957);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border: 3px solid white;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, box-shadow 0.3s;
  margin-top: 20px;
}

/* Source Link Hover Effect */
#source:hover {
  background: linear-gradient(to top, #58b658, #87eb7e);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Filename Container */
.filename-container {
  background-color: #a86e42;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(0, 0, 0, 0.7);
  border-radius: 15px;
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
}

/* Table */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 18px;
  text-align: left;
  border: 2.5px solid #5a4100;
  background: #e2dabd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Zombie Form Styles */
.zombie-form {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zombie-form input[type="text"],
.zombie-form input[type="number"],
.zombie-form select {
  width: 80%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.zombie-form input[type="checkbox"] {
  margin-right: 10px;
}

.zombie-form button {
  padding: 10px 20px;
  margin: 5px 0;
  border: none;
  border-radius: 5px;
  background-color: #5fb957;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.zombie-form button:hover {
  background-color: #87eb7e;
}

/* Full-width Button */
.zombie-form button[style="width: 100%;"] {
  width: 80%;
  margin: 10px 0;
}
th, td {
  border: 1.5px solid #5a4100;
  padding: 15px; /* Adjust padding for cells */
  color: #d46700;
  background-color: #e2dabd;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th {
  color: #502000;
  background-color: #e9c67c;
}

/* Circular Button */
.circular-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  background: linear-gradient(to top, #493464, #7453c5);
  border: 2px solid white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  text-shadow: 1px 1px #000000;
}

.circular-button:hover {
  background-color: #21a1f1;
}

/* Adjust table cell to prevent text overflow */
td {
  position: relative; /* Ensure the button stays within the td */
  overflow: hidden; /* Prevent text overflow */
  padding: 10px; /* Adjust padding as needed */
  background-color: #4d1f00;
  color: #e9c67c;
}

tr:nth-child(even) {
  background-color: #282c34; /* Alternating row color */
}

tr:hover {
  background-color: #4a4e57; /* Hover effect for rows */
}

.variable-value {
  text-align: center;
  color: #4f210c;
}
.variable-name {
  color: #311800;
}


/* Add this to your existing CSS */

.results-div {
  background-color: #fff;
  border: 2px solid #e3ad7c;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
  color: #000; /* Change text color to ensure readability */
  display: none; /* Initially hidden */
  width: 200px; /* Match the width of the input field */
}


.object-data-div {
  background-color: #713c24;
  border: 3px solid #2b0902;
  padding: 20px;
  margin-top: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.results-div {
  background-color: #fbe89f;
  border: 2px solid #5a4100;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px 10px 10px 10px;
  color: #685426;
}
.results-div a:hover {
  color: #78f1dd;
}

/* General styles for inputs */
input, textarea, select, pre {
  background-color: #fbe89f;
  color: #685426;
  border: 1px solid #5a4100;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 16px;
  font-family: 'PvZ2Regular', sans-serif;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Links */
a {
  margin: 0;
  color: #685426;
  padding: 5px;
}

a:hover {
  color: #78f1dd;
}
#link {
  margin: 0;
  color: #3f60b9;
  padding: 5px;
}

#link:hover {
  color: #78f1dd;
}
/* Style for the 'home' a tag */
#home {
  display: inline-block;
  background: linear-gradient(to top, #378158, #5fb957); /* Green background */
  color: white; /* White text */
  padding: 10px 20px; /* Padding for spacing */
  text-align: center; /* Center text */
  text-decoration: none; /* Remove underline */
  border: 3px solid white;
  border-radius: 5px; /* Rounded corners */
  font-weight: bold; /* Bold text */
  font-family: 'PvZ2Regular', sans-serif; /* Custom font family */
  transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
}

/* Hover effect for the 'home' a tag */
#home:hover {
  background: linear-gradient(to top, #58b658, #87eb7e); /* Darker green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

/* Add an icon or a visual indicator for going back */
#home::before {
  content: '← '; /* Arrow symbol before the text */
  font-size: 1.2em; /* Adjust icon size */
}
#Copy {
  display: inline-block;
  background: linear-gradient(to top, #aa6626, #ffdc68); /* Green background */
  color: white; /* White text */
  padding: 10px 20px; /* Padding for spacing */
  text-align: center; /* Center text */
  text-decoration: none; /* Remove underline */
  border: 3px solid white;
  border-radius: 5px; /* Rounded corners */
  font-weight: bold; /* Bold text */
  font-family: 'PvZ2Regular', sans-serif; /* Custom font family */
  transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
}

/* Hover effect for the 'home' a tag */
#Copy:hover {
  background: linear-gradient(to top, #f7c465, #fffd89); /* Darker green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

/* Add an icon or a visual indicator for going back */
#Copy::before {
  content: '📋 '; /* Arrow symbol before the text */
  font-size: 1.2em; /* Adjust icon size */
}

#source {
  display: inline-block;
  background: linear-gradient(to top, #3a3a3a, #5a5a5a); /* Dark gray background gradient */
  color: white; /* White text */
  padding: 10px 20px; /* Padding for spacing */
  text-align: center; /* Center text */
  text-decoration: none; /* Remove underline */
  border: 3px solid white; /* White border */
  border-radius: 5px; /* Rounded corners */
  font-weight: bold; /* Bold text */
  font-family: 'PvZ2Regular', sans-serif; /* Custom font family */
  transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
}


#source:hover {
  background: linear-gradient(to top, #5a5a5a, #7a7a7a); 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}


#source::before {
  content: '🔗 '; 
  font-size: 1.2em; 
}


.footer {
  background-color: #1f1f1f4d;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: relative; /* Change to relative to avoid overlap issues */
  width: 100%;
}

@media (max-width: 768px) {
  .footer {
    padding: 15px 10px; /* Increase padding for better touch experience */
    font-size: 14px; /* Slightly reduce font size for mobile */
  }
}

.nav-container {
    width: 100%;
    overflow: hidden;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Adjust this to your preference */
    background-color: #00000054; /* Optional: Adjust the background color */
    padding: 10px; /* Optional: Add padding */
}

nav a {
    flex: 1 1 auto; /* Flex properties to distribute links evenly */
    text-align: center;
    margin: 5px;
    text-decoration: none;
}

#ref {
  background: linear-gradient(to top, #493464, #7453c5);
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'PvZ2Regular', sans-serif;
  color: whitesmoke;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  text-shadow: 1px 1px #000000;
  border: 3px solid white;
  margin-right: 10px;
}

#new {
  background: linear-gradient(to top, #346434, #77c553);
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'PvZ2Regular', sans-serif;
  color: whitesmoke;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  text-shadow: 1px 1px #000000;
  border: 3px solid white;
  margin-right: 10px;
}

#newer {
  background: linear-gradient(to top, #603464, #b253c5);
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'PvZ2Regular', sans-serif;
  color: whitesmoke;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  text-shadow: 1px 1px #000000;
  border: 3px solid white;
  margin-right: 10px;
}

@media (max-width: 768px) {
    nav a {
        flex-basis: 100%; /* Each link will take up the full width */
        margin: 5px 0; /* Adjust margins for better spacing */
    }

    #ref, #new, #newer {
        margin-right: 0; /* Remove right margin for better fit on small screens */
        padding: 8px 15px; /* Adjust padding for smaller screens */
        font-size: 14px; /* Slightly smaller font size for mobile */
    }
}
