
* {
    box-sizing: border-box;
   
  }
  
  body {
    margin: 0;
    padding: 0;
    background-color: black;
  }
  
    @media (max-width: 500px) {
    .container {
      flex-direction: column;
      box-sizing: border-box;
      width: 200px;
      justify-self: center;
    }
    .otsikko1 {
      box-sizing: border-box;
      width: 200px;
      justify-self: center;
    }
    .väliotsikko {
      box-sizing: border-box;
      width: 200px;
      justify-self: center;
    }
  }
  
      .container {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      align-content: stretch;
      line-height: 1.4rem;
      
      
    }
    
    .kuvet {
      max-width: 100%;
      max-height:100%;
      
    }
    .kuvet2
     {
      max-width: 100%;
      max-height:100%;
      
    }

    .text {
      color: white;
      font-size: 1.2rem;
      font-family: "Roboto";
      line-height: 1.4rem;
    }
  
    .otsikko1 {
      color: white;
      text-align: center;
      font-family: "Orbitron";
      font-size: 2rem;
    }
    .väliotsikko {
      color: white;
      text-align: center;
      font-family: "Exo 2";
      font-size: 1.8rem;
      margin: 2rem;
  }

  .kokosivu {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 6rem;
    margin-bottom: 3rem;
  }

  /* Piilota kuva mobiililaitteilla */
    @media (max-width: 768px) {
      .kuvet2 {
        display: none;
      }
    }

     /* Oletustyyli (esim. tietokoneille) */
    .text {
      text-align: left;
    }

    /* Mobiilityyli */
    @media (max-width: 768px) {
      .text {
        text-align: center;
      }
    }
     /*ai uutiskirje*/
    
    #ai-news {
    max-width: 600px;
    margin: 2em auto;
    padding: 1em;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif; /* yleinen oletusfontti otsikoille */
  }

  .news-item {
    margin-bottom: 1.5em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1em;
  }

  /* Otsikko-linkki */
  .news-item h3 a {
    color: #111;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
  }

  .news-item h3 a:hover {
    color: #0077cc;
    text-decoration: underline;
  }

  /* Uutisen katkelma (Roboto-fontti) */
  .news-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
  }

  /* Päivämäärä */
  .news-date {
    color: #888;
    font-size: 0.8rem;
  }