/*YLEISET TYYLIT*/
body 
{
  margin: 0;
  background-color: #3d3b3b;
  color: #f3e9d2;
  line-height: 1.6;
  font-family: "Cinzel Decorative", serif;
}

header 
{
  background-color: #2e2525;
  padding: 1rem;
  text-align: center;
}

header h1 
{
  margin: 0.5rem 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.nav 
{
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a 
{
  text-decoration: none;
  color: #f3e9d2;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.nav a:hover 
{
  background-color: #3e3535;
}

footer 
{
  text-align: center;
  padding: 1rem;
  background-color: #2e2a2a;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/*ETUSIVU*/
.etusivu main 
{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: url('../img/forest.jpg') no-repeat center/cover;
}

.hero-text 
{
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.btn 
{
  display: inline-block;
  background: #a9745b;
  color: #fff;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover 
{
  background: #8b5e4a;
}

/*HISTORIA*/
.historia main 
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.historia img 
{
  width: 100%;
  border-radius: 10px;
}

.hero-text
{
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

/*ELEMENTIT*/
.elementit main 
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.element 
{
  background: #2e2a2a;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

.element img
{
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
  margin: 0 auto;
}
.hero-text
{
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

/*TYÖKALUT*/
.tyokalut main 
{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem;
}

.kortti 
{
  background: #2e2a2a;
  padding: 1rem;
  width: 250px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.kortti:hover 
{
  transform: scale(1.05);
}

.hero-text
{
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

/*LOITSUT*/
.loitsut main
{
  padding: 2rem;
  list-style: circle;
  margin-left: 2rem;
}

.hero-text
{
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

/*KALENTERI*/
.kalenteri main 
{
  padding: 2rem;
}

table 
{
  width: 100%;
  border-collapse: collapse;
}

th, td 
{
  border: 1px solid #a9745b;
  padding: 0.75rem;
  text-align: center;
}

th 
{
  background-color: #3e3535;
}

.hero-text
{
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

/*YHTEYS*/
.yhteys main 
{
  padding: 2rem;
  display: flex;
  justify-content: center;
}

form 
{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

input, textarea 
{
  padding: 0.5rem;
  border: none;
  border-radius: 5px;
}

input[type="submit"] 
{
  background: #a9745b;
  color: #fff;
  cursor: pointer;
}

input[type="submit"]:hover 
{
  background: #8b5e4a;
}

.btn
{
  display: inline-block;
  background: #a9745b;
  color: #fff;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn 
{
  display: inline-block;
  padding: 10px 20px;
  background-color: #a9745b;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.container 
{
  text-align: center;
}

/*MEDIA QUERY*/
@media (max-width: 768px) 
{
  .historia main {
    grid-template-columns: 1fr;
  }
}