/* Basic page styling */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  line-height: 1.5;
}

header, section {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: auto;
}

h1, h2, h3 {
  margin: 0.5em 0;
  width:fit-content;
}
header h3{
    float:right;
    font-size:16px;
    opacity:0.75;
    width:fit-content;    
}
header img{
    position:absolute;
    top:0px;
    left:0px;
    width:20%;
    max-width:40px;   
    padding: 10px;; 
}
header img:hover{
    width:30%;
    max-width:80px;   
    
}

/* Buttons */
button {
  margin: 0.5rem 0.5rem 0 0;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Feature Grid */
.features-grid {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 260px;
  max-width: 300px;
  box-sizing: border-box;
  text-align: center;
}

.feature-item img {
  width: 100%; 
  object-fit: contain;
  margin-bottom: 0.5rem;
  border:2px solid #bbb;
  border-radius:4px;
}

.feature-caption {
  font-weight: bold;
  margin: 0.5rem 0 0.25rem;
}

input[type="text"] {
  padding: 0.75rem;
  font-size: 1rem;
  width: 80%;
  max-width: 300px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Mobile override: stack one item per row, image left, text right */
@media screen and (max-width: 640px) {
  .features-grid {
    flex-direction: column;
  }

  .feature-item {
    flex-direction: row;
    text-align: left;
    max-width: 100%;
  }

  .feature-item img {
    width: 50%; 
    margin: 0 1rem 0 0;
  }

  .feature-text {
    flex: 1;
  }

  .feature-caption {
    margin-top: 0;
  }
}
