/* === ZÁKLAD === */
body {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    background: url("../images/background.jpg") no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 40px 20px;
    color: white;
}

h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

/* === HLAVIČKA === */
.page-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.logo-img,
.rules-img {
    height: 50px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-img:hover,
.rules-img:hover {
    transform: scale(1.05);
}

/* === FORMULÁŘE === */
form {
    margin: 15px auto;
}

/* Tlačítka */
button {
    background-color: #1f80e0;
    border: none;
    padding: 14px 25px;
    color: white;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #3ca7ff;
}

/* Join form – pole + tlačítko stejně široké */
.join-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

.join-form input[type="text"],
.join-form button {
    width: 100%;
    font-size: 18px;
    padding: 12px;
    margin: 5px 0;
    box-sizing: border-box;
    border: none;
    border-radius: 6px;
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #aaa;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/* === MOBILNÍ VERZE === */
@media (max-width: 768px) {
    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row; /* <- důležité */
        padding: 12px 20px;
        gap: 0;
    }    
    
    body {
        padding: 20px 10px;
        background-position: center;
        background-attachment: scroll;
        background-color: #f4f4f4;
        background: url("../images/background.jpg") no-repeat center center fixed;
        background-size: cover !important;
        margin: 0;
        padding: 40px 20px;
        color: white;
    }

    h1 {
        font-size: 36px;
        margin-top: 50px;
        margin-bottom: 20px;
    }

    button {
        width: 100%;
        font-size: 18px;
        padding: 14px 0;
        margin-top: 10px;
    }

    .join-form {
        max-width: 100%;
        padding: 0 10px;
    }

    .join-form input[type="text"],
    .join-form button {
        width: 100%;
        font-size: 16px;
        padding: 14px 12px;
        margin: 8px 0;
    }
}
