/* -----------------
    BASE STYLES
------------------*/

* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #fff;
    text-shadow: 0 2px 2px rgba(0,0,255,0.4);
    
    

}

body {
background: linear-gradient(135deg, #0f172a, #1e293b, #111827,  #0f172a, #1e293b);
/*background: radial-gradient(circle, #17116b, #4644478f,#7144838f, #5aa2ff,#00000050,#5aa2ff,#00000094, #00c6ff, #7a191996) transparent;*/
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;


}

main.app {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.app {

    width: 100%;
    max-width: 480px;
    padding: 20px;

}

/*----------------
    SCREENS
----------------*/

.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 25px;
    background: rgba(245,245,245, 0.01);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /*box-shadow: 0 8px 32px rgba(0,0,0,0.15);*/
    box-shadow:inset 0 -3px 8px rgba(255,255,255,0.15),
    inset 0 3px 8px rgba(0,0,0,0.2),
    5px 8px 15px rgba(0,0,0,0.3);
    
    -webkit-box-shadow:inset 0 -3px 8px rgba(255,255,255,0.15),
    inset 0 3px 8px rgba(0,0,0,0.2),
    5px 8px 15px rgba(0,0,0,0.3);
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    transition: /*all 0.4s cubic-bezier(0.4, 0, 0.4, 1),*/transform 0.4s ease, opacity 0.4s ease;
    z-index: 1;


}
.screen.active::before {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
    pointer-events: none;
    z-index: 1;


}
.screen.active {
    
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    z-index: 10;
}

.screen.exit {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
    /*transition: transform 0.4s ease, opacity 0.4s ease;*/
    pointer-events: none;
    z-index: 1;
}

/* ---------------
    INTRO
----------------*/

.intro__title {

    font-size: 2rem;
    margin-bottom: 10px;

}
.intro__text{

    font-size: 1rem;
    margin-bottom: 20px;

}

/*---------------
    BUTTONS
---------------*/

.btn {
    display: inline-block;
    cursor: pointer;
    border:none;
    outline: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: all 0.6s ease;
    color: #fff;
    background: /*rgba(255,255,255,0.15);*/ transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 -4px 4px rgba(0,0,0,0.2), inset 0 4px 4px rgba(250,250,255,0.4),
    0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.6s ease, box-shadow 0.3 ease, backdrop-filter 0.1s ease;


}

@media (hover: hover) and (pointer: fine) {
.btn:hover {
    transform: translateY();
    box-shadow: inset 0 -4px 3px rgba(255,255,255,0.4),
    inset 0 4px 3px rgba(0,0,0, 0.2),
    0 12px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
}
}


/* hover shine */
/*
.btn::before {

    content: "";
    position: absolute;
    top: -60%;
    left: -80%;
    width: 30%;
    height: 250%;
    background: rgba(255,255,255,0.2);
    transform: rotate(25deg);
    transition: all 0.7s ease;

}*/

/* shine 2 */
/*.btn::after {
    content:"";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient (circle, rgba(255,255,255,0.09) 10% rgba(170, 170, 170, 0.8) 40%);
    border-radius: 10%;
    transform: skewX(-145deg);
    opacity: 0.20;  
    pointer-events: none;
    transition: cubic-bezier(0.3s ease);
    
    backdrop-filter: blur(8px);
}*/

/*.btn:hover::before  {
    left: 125%;
}*/

.btn:hover::after {
    top: auto;
    bottom: 5%;
    background: rgba(255,255,255,0.25);
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.2), inset 0 -4px 6px rgba(250,250,255,0.6);
    transform: translate(-50%, -50%) scale(10);
    opacity: 0.3;
    transition: transform 0.2s ease-out, opacity 0.3s ease-out;
}

/* Answer buttons */

.answer-btn {
    width: 100%;
    margin: 12px 0;
}

/* QUIZ */

.quiz__question {
    font-size: 1.4rem;
    margin: 20px 0;
}

.quiz__answers {
    width:100%;
    display: flex;
    flex-direction: column;
}

/* LOADING SCREEN */

.calculating {
    font-size: 1.2rem;
    font-weight: 600;
}
/*.dots::after {
    content: "*";
    animation: dotFlash 2s steps(3,end) infinite;
}

@keyframes dotFlash {
    0%, 20% {content: ""; }
    40% { content: "*"; }
    60% { content: "**"; }
    80%, 100% { conten: "***"; }
}*/

/* RESULT */

.result__title {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.result__description {
    font-size: 1rem;
    margin-bottom: 20px;
    white-space: pre-line;
}

.subscribe-panel {
    width: 100%;
    margin-top: 15px;
}

.subscribe-panel form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-input {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 40%;

}

.subscribe-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba (255,255,255,0.3);
}