/* =================== LINKING FONT =========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* ================ CSS LAYOUT VARIBLES ======================  */
:root {
     --bg-main-color: #000;
     --sec-bg-main-color: #000430;
     --main-color: #00abf0;
     --box-shadow: rbga(0, 0, 0, 0.1);
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sec-bg-main-color);
}


/* ================= LOADER ================= */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-main-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-text {
    position: absolute;
    bottom: 50px;
    color: var(--main-color);
    font-size: 4rem;
    text-align: center;
    font-weight: bolder;
}

.spinner {
    position: absolute;
    top: 50;
    width: 60px;
    height: 60px;
    border: 6px solid var(--main-color);
    border-top: 6px solid var(--bg-main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-image {
    width: 100vh;   /* adjust size */
    height: auto;
    margin-bottom: 1rem;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

body::-webkit-scrollbar {
    display: none;
}

.container {
    padding: 2rem 7rem;
    border-radius: 14px;
    background: var(--bg-main-color);
    box-shadow: 0 5px 10px var(--box-shadow);
}

.result-images {
    display: flex;
    column-gap: 7rem;
}

.result-images i {
    font-size: 100px;
    color: var(--main-color);
}

.user-result i {
    transform: rotate(90deg);
}

.cpu-result i {
    transform: rotate(-90deg) rotateY(180deg);
}

.result {
    text-align: center;
    font-size: 2rem;
    color: var(--main-color);
    margin-top: 1.5rem;
}

.option-image i {
    font-size: 50px;
    color: var(--main-color);
}

.option-images {
    display: flex;
    align-items: center;
    margin-top: 2.5rem;
    justify-content: space-between;   
}

.option-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.container.start .option-images {
    pointer-events: none;
}

.option-image:hover {
    opacity: 1;
}

.option-image.active {
    opacity: 1;
}

.option-image i { 
    pointer-events: none;
}

.option-image p {
    color: var(--main-color);
    font-size: 1.235rem;
    margin-top: 1rem;
    pointer-events: none;
}

/* ============================ FOOTER LAYOUT ========================= */
.footer{
    position: absolute;
    top: 110%;
    width: 100%;
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: var(--bg-main-color);
    padding: 2rem 9%;
    text-align: center;
    gap: 1rem;
}

.footer-text p{
    font-size: 16px;
    color: var(--main-color);
}

.footer a {
    color: var(--main-color);
    font-size: 16px;
    text-decoration: none;
    margin: 0 0;
    cursor: pointer;
}

.footer a:hover {
    color: var(--bg-color);
}



/* ================ MEDIA QUARIES ============= */
/* ================= BREAKPOINT ================= */

/* Tablets */
@media (max-width: 992px) {
    .container {
        padding: 2rem 4rem;
    }

    .result-images {
        column-gap: 9rem;
    }

    .result-images i {
        font-size: 80px;
    }

    .option-image i {
        font-size: 45px;
    }
}

/* ====================== Mobile  ======================= */
@media (max-width: 600px) {

    .result-images {
        justify-content: center;
        column-gap: 5rem; /* optional spacing */
    }

   .container {
        width: 95%;
        padding: 2.5rem 2rem;
    }

    .result-images i {
        font-size: 90px;
    }

    .option-image i {
        font-size: 55px;
    }
}

/* ================= RESPONSIVE LOADER ================= */

@media (max-width: 768px) {

    .loader-image {
        width: 70vh;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border-width: 5px;
    }

    .loader-text {
        font-size: 2.5rem;
        bottom: 70px;
    }
}

@media (max-width: 480px) {

    .loader-image {
        width: 60vh;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .loader-text {
        font-size: 1.8rem;
        bottom: 120px;
    }
}

@media (max-width: 279px) {
  body, html {
    display: none;
  }
}

/* ============= ANIMATION ============= */
.container.start .user-result {
    transform-origin: left;
    animation: userShake 0.7s ease infinite;
}

@keyframes userShake {
    50% {
        transform: rotate(10deg);
    }
}

.container.start .cpu-result {
    transform-origin: right;
    animation: cpuShake 0.7s ease infinite;
}

@keyframes cpuShake {
    50% {
        transform: rotate(-10deg);
    }
}