@keyframes pulse-blue {
    0% {
        background-color: #fff; /* Start at white */
    }
    50% {
        background-color: #d3eaf1; /* Midway: Light Blue (You can adjust this hex code) */
    }
    100% {
        background-color: #fff; /* End back at white */
    }
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@font-face {
    font-family: "Pricedown";
    src:
        url("Pricedown-Black.woff2") format("woff2"),
        url("Pricedown-Black.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

#GTA-meme {
    z-index: -999;
    display: flex;
    opacity: 0;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    font-family: "Pricedown";
    font-weight: 900;
    font-style: normal;
    font-size: calc(8vw + 4vh);
    justify-content: center;
    align-items: center;
    transform: scaleY(0.85);

    /* 2. Garante que a origem da transformação é o centro do texto */
    transform-origin: center center;

    /* 3. Previne que o texto fique pixelizado, se necessário (opcional) */
    -webkit-font-smoothing: antialiased;
    color: rgb(230, 150, 200);
    text-shadow: 8px 8px rgb(52, 52, 52);
}

#GTA-meme.fadding-in {
    z-index: 9;
    opacity: 1;
    transition: opacity 2.5s ease-in;
}
#GTA-meme.fadding-out {
    z-index: 9;
    opacity: 0;
    transition: opacity 2.5s ease-out;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: rgba(17, 24, 39);
    color: #fff;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    display: flex;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji";
}

.invi {
    display: none;
}

p {
    margin: 0;
}

h1 {
    font-size: 48px;
    font-family: "Fredoka", cursive;
    font-weight: 300;
    margin: 0 0 1.5rem;

    > p {
        margin: -20px 0 0;
        font-weight: 700;
        font-size: 42px;
        color: #afdbb8;
        letter-spacing: 2.8px;
    }
}

img {
    max-width: 300px;
}

#progress {
    align-items: center;
    justify-content: center;
    display: flex;
    width: 50%;
    height: 40px;
    background: #a5a5a521;
    margin-bottom: 20px;
    border-radius: 4px;

    .badge {
        line-height: 1;
        height: 100%;
        font-size: 12px;
        display: flex;
        min-width: 80px;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 80px;
        border-radius: 8px;

        + .badge {
            margin-left: 4px;
        }
    }

    .badge.failed {
        background-color: #e16868;
        color: #fff;
        border: 1px solid #fff;
    }

    /* .badge.skipped {
        background-color: transparent;
        border: 1px solid rgb(202, 202, 202);
        color: gray;
    } */

    .badge.success {
        background-color: #9aff9a7a;
        border: 1px solid white;
    }

    .current-stage {
        width: 100%;
        background: white;
        border: 1px solid #0058ff;
        color: #0058ff;
        max-width: unset;
        justify-content: center;

        animation-name: pulse-blue;
        animation-duration: 2s; /* How long one full cycle takes (6 seconds for a slow pulse) */
        animation-timing-function: ease-in-out; /* Slow start, fast middle, slow end for a natural pulse */
        animation-iteration-count: infinite; /* Keeps repeating forever */
    }
}

#progress.inactive,
.progress-debug.inactive {
    color: white;
    background-color: rgb(34, 34, 34);
}

#progress.warming,
.progress-debug.warming {
    background-color: rgb(255, 210, 143);
    color: black;
}

#go-back {
    cursor: pointer;
    width: 40px;
    border: 1px solid #ffffff38;
    border-radius: 12px;
    margin-right: 16px;
    transition:
        border-color 0.2s ease-in-out,
        background-color 0.2s ease-in-out;

    + p {
        margin-bottom: 2px;
    }
}

.stage-result {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25%;
    width: 36px;
    height: 36px;
    margin: 0 2px;
    display: flex;
    box-sizing: border-box;
    padding: 4px;
    border: 2px solid #ffffff40;

    img {
        max-width: 100%;
        max-height: 90%;
    }
}

.stage-result.skip {
    opacity: 0.3;
}

.stage-result.success {
    border-color: #00ff0057 !important;
    background-color: #07c6074a !important;
}

.stage-result.error {
    border-color: #ae0202 !important;
    background-color: rgba(255, 99, 99, 0.76) !important;
}

.trace {
    width: 24px;
    background-color: #ffffff24;
    height: 1px;
}

.trace.success {
    background-color: lime !important;
}

.trace.error {
    background-color: red !important;
}

#go-back:hover {
    background-color: #474747;
    border-color: rgb(32, 32, 32);
}

#drawer {
    display: flex;
    flex-direction: column;
    /* background-color: yellow; */
    /* opacity: 0.3; */
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 8;
    top: 0;
    transition: right 0.5s ease-in-out; /* Smooth slide */

    #drawer-header {
        box-sizing: border-box;
        padding: 0 24px;
        height: 50px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #000000;
        background: linear-gradient(270deg, rgba(0, 0, 0, 1) 0%, rgba(99, 99, 99, 1) 100%);

        button {
            margin: 0;
        }
    }

    #drawer-header.success {
        background: linear-gradient(90deg, rgba(17, 128, 0, 1) 0%, rgba(0, 61, 4, 1) 100%);
    }

    #drawer-header.failed {
        background: linear-gradient(270deg, rgba(61, 0, 0, 1) 0%, rgba(196, 0, 0, 1) 100%);
    }
}

.flex-spacer {
    flex-grow: 1;
}
#drawer.open {
    right: 0%;
}

#drawer.close {
    right: -100%;
}

.display-none {
    display: none;
}

table {
    text-align: center;
    border-color: rgba(55, 65, 81);
    border-width: 1px;
    max-width: 48rem;
    width: 100%;
    border-collapse: collapse;
    text-indent: 0;
}

th {
    background-color: rgba(31, 41, 55);
}

th:first-of-type,
th:last-of-type {
    padding: 0 8px;
}

tr {
    border-style: solid;
    border-color: rgba(229, 231, 235, 0.1);
    border-width: 1px;
}

tr:has(th) {
    border-style: solid;
    border-color: rgba(229, 231, 235, 0.2);
    border-width: 1px;
}

button {
    cursor: pointer;
    height: 32px;
    color: #007bff;
    padding: 4px 12px 6px 8px;
    background-color: transparent;
    background-image: none;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #007bff;
    margin-bottom: 12px;
    transition:
        background-color 0.5s ease-in-out,
        color 0.5s ease-in-out; /* Smooth slide */

    + button {
        margin-left: 12px;
    }
}

button:hover,
button.active {
    background-color: #007bff;
    color: #fff;
    /* transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out; */
}

td.test-reports,
td.app-url {
    cursor: pointer;
}

td.test-reports:hover,
td.app-url:hover {
    background-color: rgba(245, 245, 220, 0.199);
}

.floatyboyyyy {
    opacity: 0.75;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    background-color: lime;
    position: absolute;
    top: 0;
    /* height: 300px; */
    width: 60px;
    margin: calc((100vh - 300px) / 2) 0;
    margin-left: 50px;
    box-shadow:
        3px 3px #a1a1a1,
        5px 5px #d4d4d4;
    background: white;
    border: 2px dashed pink;
    padding: 8px;

    div {
        height: 60px;
        box-sizing: border-box;
        padding: 4px;
        /* margin: 4px 0; */
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        img {
            max-width: 100%;
            max-height: 90%;
        }
    }

    div.disabled {
        cursor: default;
        pointer-events: none;
        filter: grayscale(1);
        opacity: 0.6;
    }

    div.disabled:hover {
        cursor: default;
    }

    div.active {
        border-radius: 12px;
    }

    div:hover {
        background-color: #0058ff;
        border-radius: 12px;
        background-color: #ebebeb;
        border-radius: 12px;
    }

    #float-PLAYWRIGHT.active {
        background-color: #1e7f3f45;
        border: 1px solid #1e7f3f;
    }
    #float-NEWMAN.active {
        background-color: #ff70072e;
        border: 1px solid #ff7007;
    }
    #float-K6.active {
        background-color: #8370c938;
        border: 1px solid #8370c9;
    }
}

.floatyboyyyy:hover {
    opacity: 1 !important;
}
