/*******************************************************
*                                                     *
*    *********************************************    *
*    *                                           *    *
*    *       CSS designed by:                    *    *
*    *                                           *    *
*    *           Kawka Paweł                     *    *
*    *           from DiabloDesign.eu            *    *
*    *                                           *    *
*    *********************************************    *
*                                                     *
*       Bringing creativity and style to design       *
*******************************************************/


/* Styl podstawowy dla kontenera zegara */
.clock-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px;
    box-sizing: border-box;
    position: relative;
    background: url('/images/nowe-sekcje/hole-1.webp') no-repeat right 20px;
    background-size: 62%;
}

/* Styl podstawowy dla zegara */
.clock {
   
    width: 180px;
    height: 180px;
    margin-right: 22px;
    margin-top: 40px;
    border-radius: 50%;
    position: relative;
    background: url('/images/nowe-sekcje/zegar-1.webp') no-repeat center center / cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Elementy zegara */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
}

.hour {
    width: 7px;
    height: 70px;
    background-color: #000000;
    z-index: 2;
}

.min {
    width: 4px;
    height: 90px;
    background-color: rgb(255, 72, 0);
    z-index: 2;
}

.sec {
    width: 2px;
    height: 90px;
    background-color: #999;
    z-index: 2;
}

.number {
    position: absolute;
    font-size: 14px;
    color: #000000;
    font-family: "Kalam", cursive;
    font-weight: bold;
    line-height: 10px;
}

.brand {
    position: absolute;
    bottom: 48px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: -1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Arial', sans-serif;
    z-index: 1;
}

.brand span {
    background-color: #ff7300;
    padding: 2px 4px;
    border-radius: 2px;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.countdown {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    z-index: 1;
}

.highlight-1,
.ripple-container {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.highlight-1 {
    background-color: rgba(255, 115, 0, 0.3);
    border-radius: 50%;
}

.ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 115, 0, 0.7);
    border-radius: 50%;
    opacity: 0;
    animation: ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.ripple:nth-child(2) {
    animation-delay: 0.3s;
}

.ripple:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes chime {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-20deg);
    }
}

.chiming {
    animation: chime 0.1s ease-in-out infinite;
}

/* Styl dla popup */
.popup {
    position: absolute;
    left: -100px;
    top: 60%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.popup.show {
    opacity: 1;
}

.popup h2 {
    margin-top: 0;
    color: #ff7300;
}

.popup p {
    text-align: center;
}

.popup img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
}

@media screen and (max-width: 1200px) and (orientation: landscape) {
    .clock-container {
        padding: 10px;
        flex-direction: column;
        justify-content: center;
        background-position: center center;
        background-size: 60%;
        min-height: 200px;
    }

    .clock {
        width: 120px;
        height: 120px;
        margin-right: 0;
        margin-top: 0;
    }
}


@media screen and (max-width: 1500px) {
    .clock-container {
        padding: 5px;
        background-position: center center;
        background-size: 90%;
        min-height: 300px;
        flex-direction: column;
        justify-content: center;
        background-size: 62%;
    }

    .clock {
        width: 130px;
        height: 130px;
        margin-right: 0px;
        margin-top: 0px;
    }

    .popup {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .clock-container {
        padding: 5px;
        background-position: center center;
        background-size: 90%;
        min-height: 300px;
        flex-direction: column;
        justify-content: center;
        background-size: 90%;
    }

    .clock {
        width: 130px;
        height: 130px;
        margin-right: 0;
        margin-top: -10px;
    }

    .popup {
        display: none;
    }
}


@media screen and (max-width: 576px) {
    .clock-container {
        padding: 0px;
        flex-direction: column;
        justify-content: center;
        background-size: 82%;
    }

    .popup {
        display: none;
    }
}