﻿body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    overflow: hidden;
    min-width: 450px; /* Impide que la app se reduzca a menos de 400px de ancho*/
    min-height: 600px; /* Impide que la app se reduzca a menos de 400px de alto*/
}

.header {
    position: absolute;
    top: 20px;
    left: 20px;
}

.logo {
    width: auto;
    height: 40px;
}

.container {
    display: flex;
    height: 100vh;
    flex-direction: row; /* Por defecto, disposición horizontal */
}

.left-section, .right-section {
    width: 50%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-section {
    background-color: #fefefe;
}

.qr-container {
    background-color: #f54b33;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-image {
    width: 300px;
    height: 300px;
}

.qr-text {
    color: white;
    margin-top: 10px;
    font-weight: bold;
}

.right-section {
    background-color: #0d283d;
    color: white;
    flex-direction: column;
    text-align: center;
}

.time {
    font-size: 4rem;
    font-weight: bold;
}

.date {
    font-size: 1.5rem;
}

.work-site {
    display: flex;
    flex-direction: column; /* Asegura que se vea en columna en móviles */
    text-align: center;
    font-size: 2rem;
}

.settings-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: white;
}

/* Responsive: Apilar en móviles si el ancho es menor a 600px */
@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    .left-section, .right-section {
        width: 100%;
        height: 50vh;
    }

    .time {
        font-size: 3rem;
    }
}

/* Cuando el ancho de la pantalla sea menor a 500px, cambia la imagen */
@media (max-width: 500px) {
    .logo {
        content: url("images/cansol-reducido.png"); /* Imagen alternativa */
        width: auto;
    }
}

/* Responsive: Cuando el ancho es menor a 500px, QR y Reloj se reducen proporcionalmente */
@media (max-width: 500px) {
    .qr-image {
        width: 40vw; /* 🔹 Reduce el QR proporcionalmente al ancho de la pantalla */
        height: 40vw;
    }

    .time {
        font-size: 8vw; /* 🔹 Reduce el tamaño del reloj proporcionalmente */
    }
}
