/* Basics */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Header */
header {
    background-color: #2e2e2e;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
}



/* Middlebox / Main */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    height: 100%;
    min-height: 80vh;
}



/* Service box and other general */
.BGimage{
    background-image: url("Taustakuva.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center; 
}
.services {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service {
    flex: 1 1 250px;
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.text{
    flex: 1 1 250px;
    padding: 1rem;
    padding-top: 0;
}
.intro{
  padding-left: 1rem;
}
.service h3 {
    margin-top: 0;
    color: #2e2e2e;
}
a:link {
  color:aqua;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: aqua;
  background-color: transparent;
  text-decoration: none;
}
a:hover {
  color: lightblue;
  background-color: transparent;
  text-decoration: underline;
}
a:active {
  color: blue;
  background-color: transparent;
  text-decoration: underline;
}
.pictures{
  text-align: center;
  flex: 1 1 250px;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.picture {
  border-radius: 8px;
  height: 23rem;
  margin: 1rem;
}


/* Thank you page */
.thanks{
  font-size: large;
  text-align: center;
}


/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #2e2e2e;
    color: white;
    font-size: 0.9rem;
}
.footerItem {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}


/* Contact form */
.contact {
  margin-top: 3rem;
  background-color: #e8f0ff;
  padding: 1.5rem;
  border-radius: 8px;
}

.contact a {
  color: #1a4aa0;
  text-decoration: none;
}

  input[type="text"],
  input[type="email"],
  input[type="password"],
  select {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
    width: 13rem;
  }
  textarea{
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
    width: 90%;
    height: 4rem;
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    border-color: #4a90e2;
    outline: none;
    background-color: #fff;
  }
  


  /* Button Styles */
  button,
  input[type="submit"] {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
  }
  
  button:hover,
  input[type="submit"]:hover {
    background: #357ab8;
  }


  /* Error Message */
  .error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.25rem;
  }


  /* Phone styles */
  .phone{
    display: none;
  }
  .desktop{
    display: contents;
  }


  @media (max-width:800px) {
    .picture{
      border-radius: 8px;
      height: 60vw;
      margin: 0;
      margin-top: 1rem;
      margin-bottom: 1rem;
    }
    h2{
      font-size:medium;
    }
    h3{
      font-size: smaller;
    }
    p{
      font-size: small;
    }
    main{
      padding: 0.75rem;
    }
    .pictures{
      margin-left: 2rem;
      margin-right: 2rem;
    }
    .phone{
      display: contents;
    }
    .desktop{
      display: none;
    }
  }

