body {
    background-color: #7fa5dd;
    color: #000000;
    font-family: Arial, sans-serif;
    margin: 20px;
    line-height: 1.6;
  }

  h1, h2, h3, h4 {
    font-family:'Times New Roman';
  }

  a:link {
  color: #00008B;
}

a:visited {
  color: #6a6a6a; 
}


  .main-container {
    max-width: 95%;
    margin: 0 auto; 
    /* border: 2px solid red; */
  }
  
  .header-box {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #7fa5dd;
    border-radius: 6px;
    text-align: center;
    justify-content: center;
  }

  .site-header {
    background-color: #f5f7fa;
    padding: 20px;
    border-bottom: 2px solid #ccc;
  }
  
  .header-image {
    height: 20em;  
    width: auto;
    border-radius: 8px;
  }

  .search-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    max-width: 95%; 
    margin: 20px auto; 
    padding: 0 10px;
    box-sizing: border-box; 
    /* border: 2px solid red; */
}

.search-box,
.category-dropdown {
    width: 100%; 
    padding: 10px;
    font-size: 1em;
    border: 2px solid #000000;
    box-sizing: border-box; 
}
  
    

.image-section {
    max-width: 95%;
    margin: 40px auto 0; 
    /* border: 2px solid red; */
}
  
  .image-card-container {
    display: flex;
    gap: 30px;
    margin-top: 10px;
  }
  
  .image-card {
    position: relative;
    width: 32.3%;
    height: 225px;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }
  
  .image-card .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .image-card .flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: auto;
    max-width: 130px;
    object-fit: contain;
  }

  .image-card .flag2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: auto;
    max-width: 120px;
    object-fit: contain;
    margin: 0;
    padding: 0;
  }

  .image-card .card-link {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 3px 6px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 0.9em;
  }

  .description-container {
    max-width: 95%;
    margin: 0px auto 0;
    /* border: 2px solid red; */
    box-sizing: border-box;
    text-align: left;        
  }

  .form-container {
        max-width: 95%;
        margin: 0px auto 0;
        /* border: 2px solid red; */
        text-align: left;        
        box-sizing: border-box;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    width: 100%; 
    margin-bottom: 15px;
  }

  .crow textarea {
    padding: 8px;
    font-size: 1em;
    border: 1px solid #000;
    resize: vertical;
  }
  
  .recipe-form input[type="email"],
  .recipe-form input[type="text"],
  .recipe-form input[type="number"],
  .recipe-form textarea {
    padding: 8px;
    font-size: 1em;
    border: 1px solid #000;
    width: 40%;
    box-sizing: border-box;
  }
  
  .difficulty {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    align-items: center;
  }
  
  .difficulty-label {
    padding: 8px 12px;
    border: 1px solid #000;
    cursor: pointer;
    background-color: #fff;
    font-weight: bold;
    user-select: none;
  }
  
  input[type="radio"]:checked + .difficulty-label {
    background-color: #000;
    color: #fff;
  }
  
  .recipe-form textarea {
    resize: vertical;
    border: 1px solid #000;
  }
  
  .consent {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
  }
  
  .form-buttons button {
    padding: 10px 20px;
    font-weight: bold;
    border: 1px solid #000;
    background-color: #fff;
    cursor: pointer;
  }

  .main-nav {
  background-color: #333;
  padding: 10px 0;
  text-align: center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: inline-block;
  margin: 0 15px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.main-nav a.active {
  text-decoration: underline;
  color: yellow; 
}

body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
  font-size: 1.2em;
}

body.high-contrast a {
  color: #00ffff !important;
}

body.high-contrast .main-nav {
  background-color: #000 !important;
}

body.high-contrast .main-container {
  background-color: #000 !important;
}

body.high-contrast .difficulty-label,
body.high-contrast button {
  background-color: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.5rem;
  background-color: #000;
  color: #fff;
  z-index: 1000;
}

@media print {
  nav,
  .main-nav,
  .form-container,
  .search-container,
  .font-controls,
  .form-buttons,
  .fun-fact,
  .kfc-video,
  details summary {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
    margin: 0;
  }
  
  .image-card-container {
    flex-direction: column;
    gap: 1rem;
  }

  .image-card {
    height: auto;
  }

  .image-card img,
  .recipe-image {
    max-width: 70% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  .recipe-table {
    width: 100% !important;
    font-size: 1rem;
  }

  * {
    background: transparent !important;
    box-shadow: none !important;
  }
}


  
  /* RECEPT OLDALAK */
  

  .recipe-image  {
    width: auto;
    height: 250px;
  }

  .recipe-textbox {
    width: 40%;
  }

  .recipe-table {
    border: 1px solid black;
    border-collapse: collapse;
    width: 25%;
    height: 5em;
    font-size: 1.3em;
  
  }

  .recipe-tr1 {
    font-weight: bold;
    border: 1px solid black;
    border-collapse: collapse;
    background-color: #9e9e9e;
    height: 2.5em;
  }

  .recipe-tr2 {
    border: 1px solid black;
    border-collapse: collapse;
    background-color: #e6e6e6;
    height: 2.5em;
  }

  .recipe-th {
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    width: 25%;
  }

  ol {
    counter-reset: item;
    list-style: none;
  }

  ol li {
    position: relative;
    margin-bottom: 10px;
  }

  ol li::before {
    counter-increment: item;
    content: counter(item) ".";
    font-weight: bold;
    position: absolute;
    left: -1.5em;
  }

  .fun-fact {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  margin: 20px auto;
}

.fun-fact .background-overlay {
  background-image: url('media/spices.jpg');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5; 
  z-index: 1;
}

.fun-fact .fun-fact-text {
  position: relative;
  z-index: 2;
  color: #000;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.6); 
  width: fit-content;
  border-radius: 8px;
}

.kfc-video {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}




  
  