/* styles.css */

/* Základní styly pro kontejner */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Styly pro nadpisy */
h1, h2 {
    color: #333;
}

/* Styly pro přepínač jazyka */
.language-switcher {
    text-align: right;
    margin-bottom: 20px;
    font-size: 16px;
}

.language-switcher a {
    margin: 0 10px;
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.language-switcher a:hover {
    background-color: #007BFF;
    color: #fff;
}

.language-switcher a.active {
    background-color: #0056b3;
    color: #fff;
}

/* Styly pro zprávy */
.error-message {
    color: red;
    background-color: #ffe6e6;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.success-message {
    color: green;
    background-color: #e6ffe6;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Styly pro otázky */
.question {
    margin-bottom: 20px;
    text-align: left;
}

.question p {
    margin-bottom: 10px;
    font-weight: bold;
}

.question input[type="radio"] {
    margin-right: 5px;
}

/* Styly pro pyramidu */
#options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.option {
    padding: 10px;
    border: 1px solid #ccc;
    cursor: move;
    background-color: #f9f9f9;
    user-select: none;
    display: inline-block;
    border-radius: 4px;
    min-width: 120px;
    text-align: center;
}

.pyramid-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pyramid-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.slot {
    width: 100px;
    min-height: 50px;
    border: 1px solid #000;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.slot .option {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styly pro legendu */
.legend {
    margin-top: 20px;
    text-align: left;
    display: inline-block;
}

.legend div {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #000;
}

/* Styly pro tlačítka */
button, .button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

button:hover, .button:hover {
    background-color: #0056b3;
}

/* Styl pro fotku na thank-you.php */
.thank-you-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styly pro drag-and-drop */
.ui-draggable-dragging {
    opacity: 0.7;
    background-color: #ddd;
    zIndex: 1000;
}

/* Responzivní design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .slot {
        width: 80px;
        min-height: 40px;
    }
    .option {
        min-width: 100px;
        font-size: 14px;
    }
    .language-switcher {
        text-align: center;
    }
    .question p {
        font-size: 14px;
    }
    .pyramid-row {
        flex-wrap: wrap;
    }
    .thank-you-image {
        max-width: 80%;
    }
}