@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-regular-rounded/css/uicons-regular-rounded.css');

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100svh;
    width: 100svw;
}

#game-area {
    position: relative;
    width: 100vw;
    height: calc(100% - 50px);
    background-color: #f0f0f0;  
    transition: 0.4s;
    overflow: hidden;
}

.lost-life {
    box-shadow: inset 0 0 20px 20px #ff000055;
    transition: 0.4s;
}

.decoy {
    position: absolute;
    border-radius: 50%;
    background-color: red;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    scale: 1;
    opacity: 1;
    transition: 0.3s;
    animation-name: shrinkOutline;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    animation-duration: 2s;
    outline-style: solid;
    outline-color: #ff000055;
    user-select: none;
}

.decoy:hover {
    scale: 1.1;
}

.decoy:active {
    opacity: 0.5;
    transition: 0s;
}

.target {
    position: absolute;
    border-radius: 50%;
    background-color: blue;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    scale: 1;
    opacity: 1;
    transition: 0.3s;
    animation-name: shrinkOutline;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    animation-duration: 2s;
    outline-style: solid;
    outline-color: #0000ff55;
    font-family: "Inter", serif;
    user-select: none;
}

.target:hover {
    scale: 1.1;
}

.target:active {
    opacity: 0.5;
    transition: 0s;
}

#info {
    top: 10px;
    left: 10px;
    font-size: 18px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    top: 0;
    left: 0;
}

.fadeOut {
    transform: scale(0.9) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: 0.3s;
}

.fadeIn {
    scale: 1.5;
    opacity: 0;
    transition: 0.3s;
}

@keyframes shrinkOutline {
    from {
        outline-width: 20px;
    }
    to {
        outline-width: 0;
    }
}

.life {
    display: inline-block;
    font-size: 24px;
    margin-right: 5px;
}

.lost {
    opacity: 0.5;
}

#lives-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 5px;
}

#score-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 5px;
}

#exit-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 5px;
    position: absolute;
    left: 15px;
}

#exit {
    padding: 5px 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

#exit:hover {
    scale: 1.1;
    transition: 0.3s;
}

#exit:active {
    scale: 1;
    opacity: 0.5;
    transition: 0s;
}

#exit-conf {
    position: fixed;
    top: 0;
    width: 100svw;
    height: 100svh;
    background-color: #00000022;
    backdrop-filter: blur(10px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: 0.3s;
}

.message-wrapper {
    padding: 40px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 0 20px #00000055;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.message-upper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.message-title {
    font-size: 20px;
    font-weight: bold;
}

.message-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.message-button {
    padding: 10px 20px;
    background-color: #d4d4d4;
    border-radius: 10px;
    user-select: none;
    transition: 0.3s;
    cursor: pointer;
}

.yes-button {
    background-color: #4363FF;
    color: #fff;
}

.message-button:hover {
    scale: 1.1;
    transition: 0.3s;
}

#main-menu {
    background-color: #4363FF;
    transition: 0.3s;
    scale: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.main-menu-section {
    display: flex;
    background-color: #fff;
    border-radius: 20px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px #00000055;
    font-family: "Inter", serif;
}

.play-menu-wrapper-content {
    display: flex;
    gap: 10px;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    height: 100%;
}

.play-menu-wrapper {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
    height: 100%;
}

.play-menu-top {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.play-options {
    box-sizing: border-box;
    height: 100%;
}


.play-options-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    border-top: 1px solid #00000022;
    box-sizing: border-box;
}

.play-query {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    opacity: 0.5;
}

.play-title {
    font-size: 40px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-desc {
    font-weight: 500;
    opacity: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

input {
    width: 100%;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    transition: 0.3s;
    box-sizing: border-box;
    border: #dedede 1px solid;
    color: #2f2f2f;
    height: 40px;
    font-size: 16px;
}

input:hover {
    background-color: #F5F5F5;
    transition: 0.3s;
}

input:focus {
    outline: none;
    background-color: #F5F5F5;
    transition: 0.3s;
}

.radio-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    cursor: pointer;
    user-select: none;
}

.radio-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    background-color: #D9D9D9;
    height: 25px;
    aspect-ratio: 1/1;
    transition: 0.3s;
}

.radio-button::before {
    content: "";
    display: block;
    height: 15px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #ADADAD;
    transition: 0.3s;
}

/* make .radio-button::before scale up to 20px on hover */
.radio-button:hover::before {
    scale: 1.1;
    transition: 0.3s;
}

.radio-button:hover {
    background-color: #e0e0e0;
    transition: 0.3s;
}

.radio-button:active::before {
    opacity: 0.5;
    transition: 0s;
}

.active-radio-button {
    background-color: #bdc8ff;
}

.active-radio-button::before {
    content: "";
    display: block;
    height: 15px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #4363FF;
    transition: 0.3s;
}

.active-radio-button:hover {
    background-color: #ccd4ff;
    transition: 0.3s;
}





.check-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    cursor: pointer;
    user-select: none;
}

.check-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 5px;
    background-color: #D9D9D9;
    height: 25px;
    aspect-ratio: 1/1;
    transition: 0.3s;
}

.check-button::before {
    content: "";
    display: block;
    height: 15px;
    aspect-ratio: 1/1;
    border-radius: 5px;
    background-color: #ADADAD;
    transition: 0.3s;
}

/* make .radio-button::before scale up to 20px on hover */
.check-button:hover::before {
    scale: 1.1;
    transition: 0.3s;
}

.check-button:hover {
    background-color: #e0e0e0;
    transition: 0.3s;
}

.check-button:active::before {
    opacity: 0.5;
    transition: 0s;
}

.active-check-button {
    background-color: #bdc8ff;
}

.active-check-button::before {
    content: "";
    display: block;
    height: 15px;
    aspect-ratio: 1/1;
    border-radius: 5px;
    background-color: #4363FF;
    transition: 0.3s;
}

.active-check-button:hover {
    background-color: #ccd4ff;
    transition: 0.3s;
}




.dropbtn {
    background-color: #fff;
    border: #dedede 1px solid;
    border-radius: 10px;
    color: #2f2f2f;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
  /* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
    background-color: #F5F5F5;
}
  
  /* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    font-family: "Inter", sans-serif;
}
  
  /* Dropdown Content (Hidden by Default) */
.dropdown-content {
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 0px 16px 1px rgba(0,0,0,0.1);
    z-index: 1;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0px);
    transition: 0.2s;
    border: 1px solid #dedede;
    cursor: pointer !important;
}
  
  /* Links inside the dropdown */
.dropdown-content span {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-item {
    transition: 0.2s cubic-bezier(0,.66,.22,1);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.dropdown-item:hover {
    gap: 25px;
    transition: 0.2s cubic-bezier(0,.66,.22,1);
    background-color: #F5F5F5;
}

  /* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
    opacity: 1; 
    pointer-events: all;
    transform: translateY(5px);
}

/* Add this to your existing CSS */
.dropdown-arrow {
    transition: transform 0.2s;
}

.dropdown-arrow.rotated {
    transform: scaleY(-1);
}

.dropdown-item-accent {
    height: 20px;
    width: 20px;
    border-radius: 50%
}

.play-button {
    min-height: 70px;
    width: 100%;
    padding: 40px;
    background-color: #4363FF;
    font-size: 22px;
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.play-button:hover {
    background-color: #2d50ff;
    transition: 0.3s;
}

.play-button:active {
    background-color: #4363FF;
    transition: 0s;
}

#countdown {
    pointer-events: none;
    width: 100svw;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    font-weight: bold;
    z-index: 9999;
    position: fixed;
    top: 0;
    text-shadow: 0 0 50px #00000055;
    opacity: 0;
    transition: 0.3s;
}


.notification-container {
    position: fixed;
    right: 0px;
    bottom: 0px;
    z-index: 1010;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    flex-direction: column;
    height: calc(100% - 50px);
    overflow: hidden;
}

.notification {
    background-color: #000000;
    backdrop-filter: blur(20px);
    color: #fff;
    margin-top: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    gap: 10px;
    filter: blur(20px);
    pointer-events: none;
    transform: translateX(400px);
    height: 0px;
    padding: 0px;
    box-sizing: content-box;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 10px #00000055;
    pointer-events: all;
    cursor: pointer;
    user-select: none;
}

.notification::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--timer-color, #fff); /* Use CSS variable */
    animation: timer var(--timer-time) linear forwards; /* Adjust duration as needed */
}

@keyframes timer {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}

.notification-fadein {
    filter: blur(0px);
    transition: 0.5s;
    opacity: 1;
    transform: translateX(-10px) translateY(-10px);
    height: 30px !important;
    padding: 10px !important;
}

.notification-fadeout {
    filter: blur(20px);
    transition: 0.5s cubic-bezier(.7,-0.63,.24,.99);
    opacity: 0;
    transform: translateX(400px);
    height: 0px !important;
    margin-top: 0px !important;
    overflow: hidden;
    padding: 0px !important;
    border-width: 0px;
}

.notification i {
    width: 25px !important;
    height: 25px !important;
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    pointer-events: none;
}

.notification .message {
    flex-grow: 1;
    margin-right: 10px;
    white-space: nowrap;
    pointer-events: none;
}

.clear-cache {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ff4343;
    color: #ff4343;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.clear-cache:hover {
    background-color: #ff4343;
    color: #fff;
    transition: 0.3s;
}

.leaderboard-title {
    font-size: 40px;
    font-weight: 900;
}

.leaderboard-desc {
    font-weight: 500;
    opacity: 0.5;
}

.leaderboard-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
}

.leaderboard-guide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    width: 100%;
    color: #00000055;
    padding: 10px;
    box-sizing: border-box;
    height: 40px;
}

.leaderboard-scroes {
    width: 100%;
    box-sizing: border-box;
}

.leaderboard-score {
    border-top: 1px solid #00000022;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    width: 100%;
    color: #000;
    padding: 10px;
    box-sizing: border-box;
}

.leaderboard-score-part {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.leaderboard-scores {
    overflow-y: auto;
    height: calc(100% - 40px);
    box-sizing: border-box;
}

.how-to-play-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
}

.how-to-play-title {
    font-size: 40px;
    font-weight: 900;
}

.how-to-play-desc {
    font-weight: 500;
    opacity: 0.5;
}

.image-text {
    background-color: #f0f0f0;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.image-text img {
    object-fit: contain;
    max-width: 100%;
    width:60%;
}

#time-wrapper {
    display: flex;
    flex-direction: row;
    gap: 5px;
}