.uae-tool .period {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.3rem;
    margin: 1rem 0;
}

.uae-tool .period button {
    color: #0366d6;
    background-color: transparent;
    border-radius: 20px;
    padding: 3px 10px;
    border: 1px solid #0366d6;
    transition: all 0.3s ease;
}

.uae-tool .period button.active,
.uae-tool .period button:hover {
    background-color: #0789ff;
    color: white;
}

.uae-tool canvas {
    display: block;
    width: 100%;
    height: auto;
}

.uae-tool .container {
    width: 100%;
    height: auto;
    position: relative;
}

.uae-tool .container.fade-loop {
    background-color: grey;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    height: 100%;
    max-height: 420px;
    animation: fade 1s infinite alternate;
}

@keyframes fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

@media only screen and (max-width: 640px) {
    .uae-tool canvas {
        height: 330px !important;
    }
}

@media only screen and (max-width: 480px) {

    .uae-tool .period button {
        font-size: smaller;
        padding: 1px 10px;
    }

    .uae-tool canvas {
        height: 230px !important;
    }
}