/* Lithuanian Travel Website Stylesheet */

/* Base/Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #000000;
  background-color: #CFE9F6;
  overflow-x: hidden;
}

/* Containers */
.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
header {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-image: url('../images/Vilnius/flag3.jpg');
  background-color: #00c7eba9;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 5px #ffd84d;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  background: #ffd84da9;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 1rem;
  border-radius: 3rem;
}

header h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  background: #ffd84da9;
  max-width: 50%;
  margin: 0.5rem auto;
  padding: 0.5rem 1rem;
  border-radius: 3rem;
}

header h3 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  background: #ffd84da9;
  max-width: 50%;
  margin: 0.5rem auto;
  padding: 0.5rem 1rem;
  border-radius: 3rem;
}

/* Page Specific Headers */
header.vilnius-header {
  background-image: url('../images/Vilnius/gidimpano.jpg');
}

header.palanga-header {
  background-image: url('../images/Palanga/palanga3.jpg');
}

header.trakai-header {
  background-image: url('../images/Trakai/trakai10.jpg');
}

header.nature-header {
  background-image: url('../images/Nature/nature20.jpg');
}

header.gallery-header {
  background-image: url('../images/Vilnius/flag3.jpg');
}

/* Navigation Bar */
nav {
  background-color: #ffd84da9;
  padding: 0.75rem 1rem;
  border-radius: 3rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
}

nav a {
  color: #000000;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

nav a:hover {
  color: #00c7eb;
}


/* Main Content */
main {
  margin: 2rem auto;
  padding: 1rem;
}

/* Crads */
.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  grid-template-rows: repeat(2, auto);  
  gap: 1.5rem;
}


.card {
  width: 100%;
  background-size: cover;
  background-position: center;
  border: 5px solid #ffd84d;
  box-shadow: 0 3px 3px #ffd84d;
  border-radius: 8px;
  padding: 2rem;
}

.cards1 { background-image: url('../images/Vilnius/flag.jpg'); }
.cardsvil { background-image: url('../images/Vilnius/vilniustophouses.jpg'); }
.cards2 { background-image: url('../images/Palanga/palanga8.jpg'); }
.cardspal { background-image: url('../images/Palanga/palangabeach.jpg'); }
.cards3 { background-image: url('../images/Trakai/trakaicastle2.jpg'); }
.cardstra { background-image: url('../images/Trakai/trakaihouses1.jpg'); }
.cards4 { background-image: url('../images/Nature/nature20.jpg'); }
.cardsnat { background-image: url('../images/Nature/nature10.jpg'); }

.card .content {
  background: #00c7ebd5;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1rem;
  color: #000;
}

.cardheader {
  background: #ffd84da9;
  padding: 1rem;
  border-radius: 0.75rem;
}

/* Hero Section */
.hero {
  background: #00c7eb8b;
  border: 10px solid #ffd84d;
  box-shadow: 0 3px 3px #ffd84d;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

/* Destinations Section */
.destinations {
  text-align: center;
  font-weight: bold;
  margin: 2rem 0;
}

/* Footer */
footer {
  background-color: #00c7eb8b;
  text-align: center;
  padding: 1rem;
  border-top: 5px solid #ffd84d;
}

footer p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

/* Forms */
.contact-layout {
  display: inline-flex;
  gap: 2rem;
  align-items: flex-start;
}

.contact-layout form {
  flex: 2;
}

input[type=text], select, textarea {
  background: #C9A227b2;
  width: 100%; 
  padding: 12px; 
  border: 2px solid #ffd84d;
  box-shadow: 0 3px 3px #ffd84d;
  border-radius: 4px; 
  box-sizing: border-box; 
  margin-top: 6px; 
  margin-bottom: 16px; 
  resize: vertical 
  
}
form label {
  font-weight: bold;
  background-color: #00c7eb8b;
  border: 2px solid #ffd84d;
  box-shadow: 0 3px 3px #ffd84d;
  border-radius: 4px;
  max-width: 100%;
  margin-top: 0.95rem;
  padding: 0.25rem 0.5rem;
  color: #000000;
}

form input[type="submit"] {
  margin-top: 0.25rem;
  padding: 0.65rem 1.5rem;
  background-color: #00c7eb8b;
  border: 2px solid #ffd84d;
  box-shadow: 0 3px 3px #ffd84d;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

/* Note Section */
.note {
  flex: 1.5;
  background: #00c7eb8b;
  border: 2px solid #ffd84d;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
}

/* Home Button */
.home-button {
  position: absolute;
  right: 1.5rem;
  top: 6%;
	background-color:#00c7eb;
	border: 1px solid #ffd84d;
  box-shadow: 0 3px 3px #ffd84d;
	color:#000000;
	font-size:20px;
	font-weight:bold;
	padding: 15px; 
  border-radius: 20px;
	text-decoration:none;
  cursor: pointer;
  transition: background-color 0.4s ease;
}
.home-button:hover {
  background: #00c7eb;
  color: #ffd84d;
}


/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px #ffd84d;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(2);
  z-index: 10;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

/* Media */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }

  header h1,
  header h2,
  header h3 {
    max-width: 90%;
  }

  .home-button {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    display: block;
    text-align: center;
  }

  .gallery-item:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1rem;
  }
}




