@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('theme.css');

p, h1, h2 {
    text-align: center;
    /* color: black */
}

body {
  font-family:'Noto Sans', sans-serif;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease;
  color: var(--text-color);
  background-color: var(--background-color);
}

.heading {
  color: var(--text-color);
  padding: 20px;
  text-align: center;
}
.sub-heading {
  /* backdrop-filter: blur(30px);  */
  /* background-color: rgb(50, 50, 50); */
  color: var(--text-color);
  margin-left: 5%;
  margin-right: 5%;
  /* border: 1px solid black; */
  text-align: center;
  margin-top: 5px;
  border-radius: 10px;

}

.toggle-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(30px); 
  padding: 10px;
  /* border: 1px solid black; */
  background-color: var(--overlay-bg);
  z-index: 10;
  border-radius: 10px;


}
@media (max-width: 768px) {
.toggle-switch {
  display: none;
  
}}

img {
    width: 1000px;
}

/* img:hover, frame:hover {
  box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.5);
  transform: translate(-5px, -5px);

} */


/* Mobile */
@media only screen and (max-width: 767px) {
    img {
      width: 100%;
    }
    
    .heading {
      margin-left: 5%;
      margin-right: 5%;
      margin-top: 20%;
    }

  }

/* Desktop */
@media only screen and (min-width: 768px) {
  .metro {
    display: flex;
  }
}

.blurbg {
  background-color: var(--background-color);
  backdrop-filter: blur(30px);
  border-radius: 10px;
  padding: 20px;
}


a {
  color: #0586ff;
}

.metro {
  gap: 30px;
  margin-left: 5%;
  align-items: flex-start;
  z-index: auto;
}
table {
  border-collapse: collapse;
  background-color: var(--surface-color);
  z-index: auto;
  color: var(--text-color) !important;

  
  /* border-radius: 10px; */
}
th, td {
  border: 1px solid var(--border-color);
  padding: 5px;
  /* text-align: left; */
}



td {
  font-family: monospace;
  max-width: 250px;
}

tr:nth-child(even) {
  background-color: var(--surface-muted);
}

tr {
  transition: background-color 0.1s ease;
}

/* tr:hover {
  background-color: #00d0adc9;
} */

.table-container, .map {
  backdrop-filter: blur(10px); 
  margin-top: 10px;

}
.scrapped {
  background-color: rgba(255, 0, 0, 0.411);
}

.map {
  background-color: var(--overlay-bg);
}

.hover-image {
  position: relative;
  display: inline-block;
  z-index: auto;
  
}

.hover-image::after {
  content: "";
  position: absolute;
  top: 0;
  right: 100%; /* Position the image to the right of the link */
  margin-left: 10px; /* Spacing between the link and image */
  width: 400px; /* Adjust width as needed */
  height: 300px; /* Adjust height as needed */
  background: white;
  border: 1px solid var(--border-color);
  background-image: var(--image-url);
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1000000;
  opacity: 0; /* Start with opacity 0 */
  visibility: hidden; /* Hide from view */
  box-shadow: 20px 20px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth transition for both */

}

.hover-image:hover::after {
  display: block;
  opacity: 1; /* Fade in by setting opacity to 1 */
  visibility: visible; /* Make it visible */

}

.hover-image::after {
  opacity: 0; /* Fade out */
  visibility: hidden; /* Hide from view */
}

.search-container {
  margin-left: 40%;
  margin-right: 40%;
  padding: 20px;
  text-align: center;
}

.search-container {
  display: flex;
  align-items: center; /* Align items in the center vertically */
}

#searchInput, #notFound{
  padding: 10px;
  width: 200px;
  font-size: 16px;
  border: 2px solid var(--input-border);
  color: var(--input-text);
  backdrop-filter: blur(30px); 
  background-color: var(--overlay-bg);
  border: 1px solid var(--input-border);
  text-align: center;
}

#searchInput:focus {
  border-color: #666;
  outline: none;
}

button {
  padding: 10px 20px;
  margin-left: 5px;  /* Add some space between input and button */
  backdrop-filter: blur(30px); 
  background-color: var(--overlay-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  text-align: center;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: var(--surface-muted);
}

.bg-toggle {
  margin-left: 10px;
}

.submit-form {
  max-width: 400px;
  margin: 40px auto;
  padding: 30px 30px 20px 30px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border-radius: 15px;
  background-color: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submit-form label {
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.submit-form input[type="text"],
.submit-form input[type="date"],
.submit-form input[type="file"] {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.1);
  color: #222;
  font-size: 16px;
}

.submit-form input[type="file"] {
  color: #fff;
  background: none;
}

.submit-form button {
  width: 100%;
  margin-left: 0;
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 6px;
  transition: background 0.2s;
}

.submit-form button:hover {
  background: #1e80db;
  color: #fff;
}

.photos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center; /* Center the grid horizontally */
  /* backdrop-filter: blur(30px); 
  background-color: rgba(0, 0, 0, 0.589); */
}

.train-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: var(--box-color);
}

.train-card a {
    text-decoration: none;
    color: inherit;
}

.train-card[data-featured="1"] {
    border-color: goldenrod;
    box-shadow: 0 0 15px 1px rgba(218, 165, 32, 0.7);
    /* background-color: #fff5f0; */
}

.train-card img {
    width: 100%;
    height: auto;
    display: block;
    
}

.train-info {
    padding: 10px;
}

.train-info p {
    margin: 5px 0;
    font-size: 14px;
}

.train-info strong {
    color: #333;
}

/* Responsive for mobile */
@media only screen and (max-width: 600px) {
  .submit-form {
    max-width: 95vw;
    padding: 15px;
  }
}