* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
  
  
header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}

footer{
  text-align: center;
  color: #fff;
}

.logo img {
height: 80px;
}

h1 {
    font-size: 3rem;
    flex-grow: 1;
    text-align: center;
    color: white;
}
  
h2, summary{
  color: white;
}

nav a {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid black;
    text-decoration: none;
    color: black;
    font-weight: bold;
    border-radius: 4px;
}
  
  nav a.active {
    background-color: black;
    color: white;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    padding: 20px;
    color: #222;
    background-image: url("media/hatter.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
  }
  
  .table-container {
    margin: 40px auto;
    max-width: 900px;
    padding: 0 15px;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  
  th {
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
  }
  
  tr:hover {
    background-color: #f1f1f1;
  }
  

.oldal:link {
    color: white
}

.oldal:visited {
    color: red

}

.oldal:hover {
    color:  green
}

.oldal:active {
  color: yellow
}


@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
      display: block;
    }
  
    thead {
      display: none;
    }
  
    td {
      padding: 10px;
      text-align: right;
      position: relative;
      border-bottom: 1px solid #ccc;
    }
  
    td::before {
      content: attr(data-label);
      position: absolute;
      left: 10px;
      text-align: left;
      font-weight: bold;
    }
    .top-section {
        flex-direction: column;
        align-items: center;
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    
    nav a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .logo img {
        height: 60px;
    }
    
    h1 {
        font-size: 2rem;
    }
}