body{
  font-family: 'Share Tech Mono', monospace;
  margin: 0;
  margin-top: 80px;
}
header{
    display: flex;
    position: fixed;
    flex-direction: row;
    background-image: linear-gradient(to right, #663c02, #1f1201);
    justify-content: space-between;
    padding: 5px;
    height: 70px;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}
.logo{
    display: flex;
    justify-content: flex-start;
    color: #E8E6D8;
    gap: 15px;
}
.menu{
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
.but{
    padding: 15px;
    text-align: center;
    text-decoration: none;
    background-color: #24211e;
    color: white;
    border-radius: 10px;
    font-size: medium;
    line-height: 1.1;
    height: 20px;
}
#news-section {
    background-color: #0f0f0f;
    color: #f0f0f0;
    padding: 40px 20px;
    text-align: center;
  }

  .section-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #79ff79;
    text-shadow: 0 0 10px #00ff00;
  }

  .news-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #111;
    border: 1px solid #0f0;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    transition: transform 0.3s;
}
.news-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}
.news-card h3 {
  color: #00ff88;
  font-size: 1.3em;
  margin-bottom: 10px;
  text-shadow: 0 0 8px #00ff88;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px;
}

  iframe {
    border-radius: 10px;
    margin: 10px 0;
  }
.twitter-timeline{
    text-decoration: none;
    color: #f37e00;
}
.youtube-timeline{
    text-decoration: none;
    color: #f37e00;
}
.twitter-timeline:hover{
    color: #ffb86b;
}
.youtube-timeline:hover{
    color: #ffb86b;
}
footer{
    display: flex;
    justify-content: space-around;
    background-color: #1E1B18;
    padding: 20px;
}
.footer_info{
    color: #E8E6D8;
    font-size: medium;
}

/* 1. Ховаємо технічний чекбокс */
.menu-checkbox {
    display: none;
}

/* 2. Стилізуємо іконку бургера (три лінії) */
.hamburger {
    display: none; /* Приховано на ПК */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Переконайтеся, що лінії мають розмір та колір */
.hamburger span {
    display: block;      /* Обов'язково для відображення */
    width: 30px;         /* Ширина ліній */
    height: 3px;         /* Товщина ліній */
    background-color: #E8E6D8; /* Колір (білий/кремовий) */
    margin-bottom: 5px;  /* Відступ між лініями */
    border-radius: 2px;
    transition: 0.3s;
}

/* Приберіть margin-bottom у останньої лінії, щоб не було перекосу */
.hamburger span:last-child {
    margin-bottom: 0;
}

/* ================= ADAPTIVE ================= */

@media (max-width:1024px){

.news-container{
width:90%;
}

.news-item img{
width:100%;
height:auto;
}

}

/* планшети */
@media (max-width:768px){
header h2{
  font-size: 15;
}
.news-container{
width:95%;
}

.news-item{
flex-direction:column;
}

.news-item h2{
font-size:22px;
}

}

/* телефони */
@media (max-width:480px){
    .hamburger {
          display: flex; /* Показуємо іконку на мобільних */
          margin-right: 20px;
          justify-content: center;
      }

    .menu {
        display: none; /* Ховаємо стандартне меню */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Висота твого хедеру */
        left: 0;
        width: 100%;
        background-color: #24211e;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 2px solid #4f3402;
    }

    .menu .but {
        width: 80%;
        margin: 0 auto;
    }

    /* МАГІЯ: Якщо чекбокс натиснутий (checked), показуємо сусідній елемент .menu */
    .menu-checkbox:checked ~ .menu {
        display: flex;
    }

    /* Анімація перетворення бургера на хрестик при натисканні */
    .menu-checkbox:checked + .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-checkbox:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked + .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    header h2{
      font-size: 15;
      width: min-content;
    }
    .news-item h2{
    font-size:18px;
    }
    
    .news-item p{
    font-size:14px;
    }

}


