/* Táblázat stílusa */
.table-style {
    display: table;
    border-radius: 8px;
    border-spacing: 2px;
    padding: 2px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(9px);
    width: 70%; /* Keskenyebb táblázat */
    border-collapse: seperate;
    table-layout: fixed;
    color: white; 
    font-weight: bold;
    margin: 0 auto; /* Középre igazítjuk */    
    margin-top: 20px;
    margin-bottom: 30px;  
    font-size: 0.9rem; /* Kisebb betűméret */
}

/* Táblázat cellák */
.table-style th, .table-style td {
    padding: 8px; /* Csökkentett padding */
    text-align: center;
    border: 1px solid #444;
    border-radius: 8px; /* Enyhén lekerekített sarkok */
}

/* Fejléc */
.table-style th {
    background-color: rgba(30, 30, 30, 0.8);
    color: white;
    font-size: 1rem; /* Kisebb fejléc betűméret */
    font-weight: bold;
}

/* Bevitel mezők */
.table-style td input[type="number"] {
    width: 60%; /* Keskenyebb mezők */
    max-width: 120px;
    padding: 6px; /* Kisebb padding */
    font-size: 14px; /* Kisebb betűméret */
    border-radius: 6px;
    border: 1px solid #888;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: right;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.table-style td input[type="number"]:focus {
    border-color: #66cc66;
    background-color: rgba(106, 255, 106, 0.2);
}

/* Az eredmények cellái */
.table-style td.result1, .table-style td.result2, .table-style td.result3 {
    color: #fff;
    font-weight: bold;
    background-color: rgba(50, 50, 50, 0.6);
}

/* Páros sorok */
.table-style tr:nth-child(even) {
    background-color: rgba(80, 80, 80, 0.6);
}
.table-style tr:nth-child(odd) {
    background-color: rgba(65, 65, 65, 0.6);
}

/* Összesítő sor */
.table-style tr.total-row {
    background-color: rgba(0, 128, 0, 0.8);
    color: white;
    font-weight: bold;
}

/* H3 címek */
.table-style td h3 {
    color: white;
    font-weight: bold;
    margin: 0;
    font-size: 0.95rem; /* Kisebb betűméret */
    text-shadow: 1px 0px 7px rgb(10, 11, 31, 0.95);
}
.menu1 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px #00bcd4;
  max-width: 90%;
}

.menu1 li {
  list-style: none;
}

.menu1 li a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  color: #fff;
  background: linear-gradient(to right, #0d47a1, #1976d2);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 0 4px #000;
  transition: all 0.3s ease;
}

.menu1 li a:hover {
  background: linear-gradient(to right, #2196f3, #00bcd4);
  transform: scale(1.05);
  box-shadow: 0 0 12px #00bcd4;
}
.menu1 li a.active {
  background: linear-gradient(to right, #00e5ff, #1de9b6);
  box-shadow: 0 0 12px #1de9b6;
}

//*Exp kalkulátor*//

    * {
      box-sizing: border-box;
    }

    body {
      background-color: var(--bg-color);
      color: var(--text-color);
      align-items: center;
      min-height: 100vh;
      gap: 50px;
    }

    .container {
      width: 90%;
      max-width: 1000px;
      background-color: var(--container-bg);
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    }


    .input-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      gap: 20px;
    }

    .shipName {
      flex: 1 1 200px;
      text-align: right;
      margin-right: 10px;
    }

    input, select {
      flex: 1 1 150px;
      padding: 8px;
      margin: 5px 0;
      border-radius: 5px;
      border: 1px solid var(--border-color);
      background-color: var(--input-bg);
      color: var(--text-color);
      text-align: center;
      transition: all 0.3s ease;
    }

input:focus, select:focus {
  outline: none;
  border-color: #007bff; /* Kék szín */
  box-shadow: 0 0 5px #007bff; /* Kék árnyék */
}

    .result {
      display: flex;
      justify-content: space-around;
      align-items: center;
      margin-top: 20px;
      flex-wrap: wrap;
    }

    .result strong, .result p {
      margin: 5px;
    }

    hr {
      border: 1px solid var(--border-color);
      margin: 20px 0;
    }
    .highlight {
            background-color: #28a745 !important;
            color: #fff;
    }
        .styled-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

            .styled-table th, .styled-table td {
                padding: 12px;
                text-align: center;
                border: 1px solid var(--border-color);
            }

            .styled-table th {
                background-color: var(--accent-color);
                color: var(--bg-color);
            }

            .styled-table tr:nth-child(even) {
                background-color: var(--input-bg);
            }

            .styled-table tr:hover {
                background-color: var(--button-bg-hover);
                color: #fff;
            }


        .checkbox-container {
            margin-top: 20px;
            text-align: center;
            display: flex;
            gap: 30px;
        }

        .custom-checkbox {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 16px;
            color: var(--text-color);
        }

            .custom-checkbox input {
                display: none;
            }

            .custom-checkbox .checkmark {
                width: 20px;
                height: 20px;
                background-color: var(--input-bg);
                border: 2px solid var(--border-color);
                display: inline-block;
                margin-right: 10px;
                border-radius: 5px;
                position: relative;
            }

            .custom-checkbox input:checked + .checkmark {
                background-color: var(--button-bg);
                border-color: var(--button-bg);
            }

            .custom-checkbox .checkmark::after {
                content: "";
                position: absolute;
                left: 6px;
                top: 2px;
                width: 5px;
                height: 10px;
                border: solid white;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
                display: none;
            }

            .custom-checkbox input:checked + .checkmark::after {
                display: block;
            }