* {
    box-sizing: border-box;
}

body {
    margin: 20px;
    font-family: Arial, sans-serif;
}

.header-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.info-block {
    flex: 1;
    min-width: 300px;
}

.sides-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sides-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.side-container {
    flex: 1;
    min-width: 300px;
    padding: 15px;
    border: 1px solid #6699cc;
    background-image: "/img/vinyl.png";
    background-color: #6699cc10;
    border-radius: 5px;
    position: relative;
    align-items: center;
}

.side-container h3 {
    display: flex;
    align-items: center;
    height: 40px;  /* vagy más fix magasság */
    margin: 0;
}

.delete-side {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 10%;
    width: 85px;
    height: 24px;
    cursor: pointer;
    padding: 0px;
}

.track-headers {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 5px;
    background-color: #6699cc;
    color: white;
}

.track-headers span {
    flex: 4; /* Alapértelmezett arány */
}

.track-headers .track-number {
    flex: 0.5; /* Sorszám oszlop keskenyebb */
}

.track-headers .track-time {
    flex: none;
    width: 55px; /* Azonos szélesség az időmezőkkel */
    text-align: center;
}

.track-number-label {
    flex: 0.5;
    width: auto;
    font-weight: bold;
}

.track-number {
    flex: 0.5 !important;
}

.track {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.track-number-label {
    flex: 0.5;
    font-weight: bold;
}

.delete-track {
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 5px;
    cursor: pointer;
    font-size: 12px;
}

.track input[type="text"] {
    flex: 4; /* Címmező nagyobb arány */
}

.time-input {
    width: 80px !important; /* Fix szélesség az időmezőknek */
    flex: none !important; /* Ne növekedjen */
    text-align: center;
}
.time-input[readonly] {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #666;
    cursor: not-allowed;
}

.time-input:not([readonly]) {
    background-color: #fff;
    border: 1px solid #6699cc;
    cursor: text;
}

.time-input:not([readonly]):focus {
    outline: none;
    border-color: #6699cc;
    box-shadow: 0 0 3px rgba(102, 153, 204, 0.5);
}

.track-length {
    width: 80px !important;
    flex: none !important;
    text-align: center;
}

.track-space {
    width: 16px !important;
    flex: none !important;
    text-align: center;
}

.track-headers .track-time {
    width: 80px !important;
    flex: none !important;
    text-align: center;
}

button {
    background-color: #6699cc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px 0;
}

button:hover {
    background-color: #5588bb;
}

input, select {
    padding: 5px;
    margin: 2px;
    border: 1px solid #6699cc;
    border-radius: 3px;
}

.add-side-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
}

.side-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.speed-select {
    padding: 5px;
    border: 1px solid #6699cc;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
    }
    .sides-row {
        flex-direction: column;
    }
}

/* pdf készítés */
#generatePDF {
    background-color: #6699cc;
    margin-left: 10px;
}

#generatePDF:hover {
    background-color: #6699cc;
}


#sendToHanaton {
    background-color: #6699cc;
    margin-left: 10px;
}

#sendToHanaton:hover {
    background-color: #6699cc;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;

}

.button-container button {
    flex: 0 1 auto;
    min-width: 180px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.button-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}



.header-banner {
    background-color: #6699cc;
    background-image: linear-gradient(#6392c2, #6699cc);
    border-bottom: 1px solid #245789;
    padding: 25px 0;
    margin: -20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;  /* Hozzáadva a relatív pozicionálás */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);

}


.header-banner h1 {
    font-size: 24px;
    margin: 0;
    font-weight: bold;  /* Bold betűtípus */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;  /* Fehér szöveg a sötét háttéren */
}

.header-banner p {
    margin: 5px 0;
    color: #fff;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-banner img {
    height: 30px;
    margin: 5px 0;
    vertical-align: middle;

}

.instructions-btn {
    position: absolute;
    right: 20px;
    top: 20%;
    transform: translateY(-20%);
    width: 60px;
    height: 30px;
    border-radius: 10%;
    background-color: #fff;
    color: #333;
    border: none;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    line-height: 30px;  /* Hozzáadva a középre igazításhoz */
    padding: 0;  /* Hozzáadva */
    text-align: center;  /* Hozzáadva */
}

.xlsbutton {
    position: absolute;
    right: 20px;
    top: 60%;
    transform: translateY(-60%);
    width: 100px;
    height: 30px;
    border-radius: 10%;
    background-color: #fff;
    font-size: 10px;
    color: #333;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    line-height: 30px;  /* Hozzáadva a középre igazításhoz */
    padding: 0;  /* Hozzáadva */
    text-align: center;  /* Hozzáadva */
}

.cenotes {
    width: 100%; 
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #6699cc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.xlsbutton:hover {
    background-color: #5588bb;
}

.instructions {
    display: none;  /* Alapértelmezetten rejtve */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;  /* Magasabb z-index, hogy a gomb felett legyen */
}


.instructions.show {
    display: block;
}


.close-instructions {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.close-instructions:hover {
    color: #000;
}


.instructions ul {
    margin: 5px 0;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 3px;
}

.time-input, .length-input {
    width: 60px;
}