* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
  
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.image-container {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-image 0.3s ease-in-out;
}

.color-image{
    position: relative;
    display: inline-block;
}

.box-image{
    width: 100%;
    display: block;
}

.color-box{
    position: absolute;
    margin-left: 24.1%;
    top: 16.5%;
    width: 55%;
    height: 55.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    transition: background-color 0.4s ease;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.3);
}   
  
.color-palettes {
    width: 100%;
    text-align: center;
}
  
.color-palettes h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
  
.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}
  
.palette {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
  
.palette:hover {
    transform: scale(1.05);
}
  
.color-selector {
    text-align: center;
}
  
.color-selector h2 {
    font-size: 1.8rem;
}

#resetColorButton {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    background-color: #e74c3c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
  
#resetColorButton:hover {
    background-color: #c0392b;
}
  
/* usein kysytyt kysymykset */
.faq-container {
    max-width: 800px;
    margin: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.faq h1 {
    text-align: center;
    color: #333;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.question {
    color: #007bff;
    cursor: pointer;
    transition: color 0.3s;
}

.answer {
    display: none;
    margin-top: 5px;
    color: #555;
    transition: max-height 0.4s ease;
}

.question:hover {
    text-decoration: underline;
}
  
/* Footer */
.footer {
    padding: 3rem;
    background-color: #212132;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
}

.footer a{
    color: #fff;
}
  
/* Responsiivisuus */
@media (max-width: 768px) {
    header h1 {
      font-size: 2rem;
    }
    
    .content h2 {
      font-size: 1.6rem;
    }
    
    .image-container {
      height: 200px;
    }
}
  
@media (max-width: 480px) {
    header h1 {
      font-size: 1.8rem;
    }
    
    .content h2 {
      font-size: 1.4rem;
    }
    
    button {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }
}
  