/* Resetowanie stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stylizacja nagłówka */
header {
    width: 100%;
    padding: 10px 20px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
}

.language-selector img {
    width: 32px;
    height: 32px;
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.language-selector img.active,
.language-selector img:hover {
    opacity: 1;
}

/* Stylizacja głównej zawartości */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    background-color: #e9ecef;
}

.content {
    display: flex;
    flex-direction: column; /* Ustawienie kierunku jako kolumna */
    align-items: center; /* Wyśrodkowanie w poziomie */
    text-align: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 90%;
}

.charging-image {
    max-width: 100%;
    height: auto;
    width: 500px; /* Domyślna szerokość */
    margin-bottom: 20px;
}

.logo-image {
    max-width: 100%;
    height: auto;
    width: 360px; /* Domyślna szerokość */
    margin-bottom: 0px;
}

.status {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.status.online {
    color: green;
}

.status.offline {
    color: red;
}

.payment-button {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Stylizacja popupu */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.loading-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: 10px;
    text-align: center;
    min-width: 220px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #d0d0d0;
    border-top-color: #3498db;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 0.8s linear infinite;
}

.status-loader {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 10px 0 20px;
    color: #333;
}

.status-loader.show {
    display: inline-flex;
}

.status-loader .spinner {
    width: 22px;
    height: 22px;
    border-width: 2px;
}

.status-loader-text {
    font-size: 1em;
}

.loading-text {
    font-size: 1em;
    color: #333;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.debug-banner {
    background: #111;
    color: #f5f5f5;
    font-size: 0.9em;
    padding: 8px 12px;
    text-align: center;
    letter-spacing: 0.2px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
}

/* Responsywność */
@media (max-width: 600px) {
    .charging-image {
        width: 350px; /* Mniejsza szerokość dla urządzeń mobilnych */
    }
	
    .logo-image {
        width: 360px; /* Mniejsza szerokość dla urządzeń mobilnych */
    }	

    .payment-button {
        width: 100%;
        padding: 15px;
        font-size: 1em;
    }

    .popup-content {
        width: 90%; /* Dostosowanie szerokości popupu na mniejszych ekranach */
    }
}

/*pulsujący okrąg */
  .circle-container {
            margin: 20px;
            padding: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 300px;
            text-align: center;
            position: relative;
        }

        .pulsating-circle {
            width: 200px;
            height: 200px;
            background-color: #3498db;
            border-radius: 50%;
            -webkit-animation: pulse 1.5s infinite;
            animation: pulse 1.5s infinite;
            box-shadow: 0 0 15px rgba(52, 152, 219, 0.8);
            position: absolute;
        }
		
        .pulsating-circle-biger {
            width: 260px;
            height: 260px; 
            background-color: #3498db;
            border-radius: 50%;
            -webkit-animation: pulse 1.5s infinite;
            animation: pulse 1.5s infinite;
            box-shadow: 0 0 15px rgba(52, 152, 219, 0.8);
            position: absolute;
        }		

        .circle-text {
            color: #fff;
            font-size: 18px;
            text-align: center;
            z-index: 1; /* Sprawia, że tekst jest nad okręgiem */
        }

        @-webkit-keyframes pulse {
            0% {
                -webkit-transform: scale(1);
                opacity: 1;
            }
            50% {
                -webkit-transform: scale(1.2);
                opacity: 0.7;
            }
            100% {
                -webkit-transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.2);
                opacity: 0.7;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }
