/* Основен стил за цялата страница */
body {
    font-family: sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Стил за формите */
form {
    background: #eee;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    margin: 20px auto;
    box-sizing: border-box;
    text-align: center;
}

/* Заглавия h2 – по-малко вертикално разстояние */
h2 {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

h2 + h2 {
    margin-top: 0.1em;
    margin-bottom: 0.1em;
}

/* Заглавия h3 – червени и с по-малко отстояние */
h3 {
    color: red;
    margin: 0.4em 0;
}

/* Текстови полета */
input[type="text"] {
    padding: 10px;
    border: solid 1px #dcdcdc;
    border-radius: 4px;
    transition: box-shadow 0.3s, border 0.3s;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border: solid 1px #707070;
    box-shadow: 0 0 5px 1px #969696;
    outline: none;
}

/* Бутон */
button {
    padding: 10px 20px;
    text-align: center;
    border: 1px solid #2e6da4;
    border-radius: 4px;
    background: #337ab7;
    color: #fff;
    font-size: 18px;
    transition: background 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

button:hover {
    background: #286090;
    border-color: #204d74;
    cursor: pointer;
}

/* Часовник (iframe) */
iframe {
    width: 100%;
    max-width: 250px;
    height: 90px;
    border: none;
    display: block;
    margin: -20px auto -40px auto; /* горе: 10px, долу: 5px */
}

/* Съобщение при грешка */
#warning {
    color: red;
    font-weight: bold;
    display: none;
    margin-top: 15px;
    text-align: center;
}

/* Мобилен изглед */
@media (max-width: 600px) {
    body {
        font-size: 20px;
    }

    form {
        padding: 20px;
    }

    input[type="text"],
    button {
        font-size: 20px;
    }
}

/* Контейнер за линковете с картинки */
.links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Стил за всяка картинка */
.link-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.link-image:hover {
    transform: scale(1.05);
}

/* За мобилни устройства */
@media (max-width: 600px) {
    .links-container {
        gap: 10px;
    }

    .link-image {
        width: 100%;
        max-width: 300px;
    }
}

.buttons-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-form {
    text-align: center;
    margin-top: 20px;
}


.image-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: center;
    outline: none;
}

.image-button:hover,
.image-button:focus {
    background: none;
    outline: none;
    box-shadow: none;
}

.image-button:focus-visible {
    outline: none;
}

.image-button img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.image-button:hover img {
    transform: scale(1.05);
}

.centr-select {
    font-size: 1.2em;
    font-weight: bold;
}
