@tailwind base;
@tailwind components;
@tailwind utilities;

#screenshot-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: end;
}

#screenshot-button,
#share-button {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 16px;
    font-size: 16px;
    cursor: pointer;
    background-color: #fff;
    color: white;
    border: none;
    border-radius: 100px;
}

#share-button {
    background-color: #ffad00;
}

#share-button span {
    margin-right: 6px;
    font-size: 18px;
    color: #000;
}

.blink {
    animation: blink-animation 0.5s;
}

@keyframes blink-animation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.w3-top {
    z-index: 999999;
}

/* #ar-cards {
    margin-top: -80px;
    z-index: 999;
    position: relative;
} */

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.spinner {
    position: relative;
    height: 360px;
    width: 360px;
    min-height: 360px;
    min-width: 360px;
    border-radius: 50%;
    box-shadow: 0px 0px 160px rgba(17, 17, 17, 0.25);
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
}

.spinner__body {
    position: absolute;
    border-top: 180px solid transparent;
    border-right: 180px solid #ffa274;
    border-bottom: 180px solid #ffa274;
    border-left: 180px solid #ffa274;
    z-index: 200;
}

.spinner__start-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100px;
    width: 100px;
    border-radius: 50%;
    font-family: 'Dosis', sans-serif;
    font-weight: bold;
    font-size: 30px;
    color: #f5f5f5;
    background-color: #ffa274;
    outline: none;
    border: none;
    user-select: none;
    z-index: 300;
    transition: height 0.1s ease-in, width 0.2s ease-in, color 0.1s ease-in, background-color 0.1s ease-in;
}

.spinner__start-button:hover {
    height: 130px;
    width: 130px;
    background-color: #8cd0d0;
    box-shadow: 0px 0px 44px rgba(17, 17, 17, 0.25);
}

.spinner__start-button:active {
    height: 135px;
    width: 135px;
    color: #ffa274;
    background-color: #459a9a;
    box-shadow: none;
    animation: shaking 0.15s ease-in-out infinite;
}

.spinner__plate {
    position: absolute;
    height: 360px;
    width: 360px;
}

.spinner__plate--spin {
    animation: spinning 2s ease-out;
}

.spinner__item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translatex(-50%);
    height: calc(180px - 20px);
    padding-top: 40px;
    font-family: 'Dosis', sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: #459a9a;
    text-align: center;
    transform-origin: 50% 100%;
    z-index: 10;
}

.spinner__item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translatex(-50%);
    border-top: 180px solid #f5f5f5;
    border-right: 180px solid transparent;
    border-bottom: 180px solid transparent;
    border-left: 180px solid transparent;
    z-index: -1;
}

.spinner__item:nth-child(even):before {
    border-top: 180px solid #ebebeb;
}

.spinner__item--left {
    transform: translatex(-50%) rotate(-90deg);
}

.spinner__item--top {
    transform: translatex(-50%) rotate(0deg);
}

.spinner__item--right {
    transform: translatex(-50%) rotate(90deg);
}

.spinner__item--bottom {
    transform: translatex(-50%) rotate(180deg);
}

@keyframes shaking {
    0% {
        top: calc(50% + 1px);
        left: calc(50% - 1px);
    }

    25% {
        top: calc(50% - 1px);
        left: calc(50% + 1px);
    }

    50% {
        top: calc(50% + 1px);
        left: calc(50% + 1px);
    }

    75% {
        top: calc(50% - 1px);
        left: calc(50% - 1px);
    }
}

@keyframes spinning {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1800deg);
    }
}


#finish-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    text-align: center;
    top: 0;
    margin-top: 32px;
}

#finish-container h1 {
    background-color: #ffffff80;
    border-radius: 16px;
    padding: 12px 16px;
}

#finish-container svg {
    max-height: 250px;
}

.custom-btn {
    background-color: #55f300;
    /* Green */
    border: none;
    color: rgb(0, 0, 0);
    border-radius: 32px;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 200px;
}

#completion {
    width: 80%;
    height: 80%;
    margin: auto;
    display: block;
}

@keyframes hideshow {
    0% {
        opacity: 0.2;
    }

    10% {
        opacity: 0.2;
    }

    15% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

#cirkel {
    animation: hideshow 0.4s ease;
}

#check {
    animation: hideshow 0.4s ease;
}

#stars {
    animation: hideshow 1.0s ease;
    opacity: 0.9;
}


@keyframes hideshow {
    0% {
        transform: scale(0.2);
        transform-origin: initial;

    }

    100% {
        transform: scale(1.0);
        transform-origin: initial;
    }
}

@keyframes draaien {
    0% {
        transform: rotate(40deg);
        transform-origin: initial;

    }

    100% {
        transform: scale(0deg);
        transform-origin: initial;
    }
}

#check {
    animation: draaien 0.8s ease;
}


@keyframes transparant {
    0% {
        opacity: 0;

    }

    100% {
        opacity: 1;
    }
}

#check {
    animation: transparant 2s;
}