
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}


#loadscreen ~ #bg-video {
    display: none;
}

.load-logo {
    width: 200px;
    height: 200px;
}

#bg-video {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    filter:  blur(3px) brightness(0.85); 
    z-index: -1;
}

.creator{
    position:relative;
    left:870px;
    bottom:-450px;
    opacity: 0;
    font-size:20px;

}
.creator:hover{
    opacity: 1;
    color:rgba(0, 0, 0, 0.24);
}










#loadscreen {
    position: fixed;
    inset: 0;

    

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
#bg-image {
    position: fixed;
    top: 50%;
    left: 50%;

    width: 100vw;
    height: 100vh;

    object-fit: cover;
    transform: translate(-50%, -50%);
}








#Load-S {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}
/*
.background-load-S {
 position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: slowDown 20s ease-in-out infinite alternate;
}
@keyframes slowDown{
    from{transform: scale(1);}
    to{transform:scale(1.04);}

}*/


.load-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    height:10%; 
}
#load-background-video-S {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}





/*.game-title {
    position: relative;
    bottom:300px;
    font-size: 52px;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
    margin-top: 40px;
    z-index: 2;

    
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5), 
        0 0 5px rgba(255, 215, 0, 0.3); 
    
    
    letter-spacing: 1px;
}*/




.start-buttons {
  display: block;
  flex-direction: column;   
  align-items: center;      
  gap: 100px;               
}


/*.start-btn {
    display: flex;
    justify-content: center; 
    align-items: center;    
    
    padding: 14px 42px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;

    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    text-align: center;      
    width: auto;            
}*/


.play-btn {
    position: relative;  
    top:180px;
    right: -165px;   
    overflow: hidden; 
    font-weight: bold;
    font-size: 50px;
    letter-spacing: 2px;
    background: linear-gradient(
    to top, 
    rgba(0, 0, 139, 1) 0%,      
    rgba(0, 0, 139, 0.05) 80%,  
    rgba(0, 0, 139, 0.03) 100% 
);
    border: 2px solid rgb(117, 204, 175);
    border-radius: 20px;
    cursor: pointer;
    
    width:300px;
    height:100px;
    color: #ffffff;
    box-shadow: inset 1 1px rgba(29, 85, 206, 20);
    transition: all 0.3s ease;
}
.play-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;            
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  filter: blur(2px);
  z-index: 1;               
  transition: left 0.6s ease;  
}

.play-btn:hover::before {
  left: 120%;              
}

.play-btn:hover {
  transform: scale(1.08);
  background-color: rgb(87, 201, 221);
  box-shadow: 0 0 25px rgb(11, 8, 202);
}
.play-btn {
  z-index: 1;
}
.play-btn span {
  position: relative;
  z-index: 2;              
}




#exit-btn {
    position:relative;
    bottom:-40px;
    left:-100px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background-color: #fdd835;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
    position: relative;
    overflow: hidden;
}


#exit-btn:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 10px 30px rgba(255, 200, 0, 0.7);
    background-color: #d8c281;
}


#exit-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


#exit-btn svg {
    width: 60px;
    height: 60px;
    transition: transform 0.5s ease, filter 0.3s ease;
}


#rays {
    transform-origin: center;
    animation: rotateRays 5s linear infinite;
}


#exit-btn:hover #rays {
    animation-duration: 1s; 
    stroke: #ffd700;         
    filter: drop-shadow(0 0 10px #ffd700);
}


@keyframes rotateRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


#exit-btn::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, rgba(255,215,0,0) 70%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

#exit-btn:hover::after {
    opacity: 1;
    transform: scale(1.2);
}



.All-questions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    color: #f0f8ff;
}

.question {
    width: 420px;
    min-height: 100px;
    border: 2px solid rgba(77, 195, 216, 0.8); 
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.247); 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.button-R {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.btn-1 {
    width: 300px; 
    height: 50px;
    background: rgba(60,179,113,0.8); 
    color: #ffffff;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-1:hover {
    background: rgba(144,238,144,0.9); 
    transform: scale(1.05);
}


#tank-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,50,0.7); 
    color: #f0f8ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    transition: opacity 0.5s ease;
}

#tank {
    width: 400px;
    height: 200px;
    position: relative;
    margin: 20px auto;
    overflow: hidden;

    
    border-radius: 50% / 15%;  

    
    border: 4px solid rgba(0,0,0,0.7);

    
    background: linear-gradient(to bottom, rgba(200,200,255,0.1), rgba(0,0,50,0.05));
    box-shadow: inset 0 10px 25px rgba(0,0,0,0.3), 
                0 5px 25px rgba(0,0,0,0.5);
}



#water {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;              
    background: linear-gradient(to top, #0077ff, #33ccff);
    transition: height 0.5s ease;
    border-radius: 0 0 100px 100px; 
}
#tank-container {
    position: relative;
    width: 400px;      
    height: 250px;    
    margin: 20px auto;
}
.tank-legs {
    position: absolute;
    bottom: 7px;                
    width: 100%;
    display: flex;
    justify-content: center;   
    gap: 50px;                 
    z-index: 2;                
}
.tank-legs .leg {
    width: 30px;
    height: 20px;           
    background-color: #000;    
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}



.glass-shine {
    position: absolute;
    left: 18%;
    top: 0;
    width: 14%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    filter: blur(6px);
    pointer-events: none;
}

#wave {
    position: absolute;
    top: -15px;
    width: 200%;
    height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 45%;
    animation: waveMove 4s linear infinite;
}

@keyframes waveMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

#water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #0077ff, #33ccff);
    transition: height 0.5s ease;
    border-radius: inherit;
}

#tank::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 20%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    filter: blur(4px);
}

#water::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -50%;
    width: 200%;
    height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%,100% { transform: translateX(0); }
    50% { transform: translateX(25%); }
}


#tank-progress {
    width: 300px;
    height: 15px;
    border: 2px solid #add8e6; 
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    background: rgba(173,216,230,0.3); 
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: rgba(50,205,50,0.8); 
    transition: width 0.5s ease;
}

#progress-text-below { 
    text-align: center;
     font-weight: bold; 
     color: #f0f8ff; 
     margin-top: 5px; 
     font-size: 16px; 
     text-shadow: 0 0 4px rgba(0,0,0,0.7); }


/*#button-Q {
    padding: 12px 25px;
    margin-top: 20px;
    font-size: 20px;
    background-color: #2e8b57; 
    border: none;
    border-radius: 15px;
    color: #f0f8ff;
    cursor: pointer;
    transition: background 0.3s ease;
}*/

/*#button-Q:hover {
    background-color: #3cb371; 
}*/

#final-result {
    display: none;
    margin-top: 10px;
    font-size: 18px;
    color: #f0f8ff;
}

/*#exit-start, #exit-end {
    padding: 10px 20px;
    margin-top: 15px;
    font-size: 18px;
    background-color: #8b0000; 
    border: none;
    border-radius: 15px;
    color: #f0f8ff;
    cursor: pointer;
    transition: background 0.3s ease;
}

#exit-start:hover, #exit-end:hover {
    background-color: #b22222; 
}*/

/* ======= End Buttons ======= */
.level-screen .end-btn {

    width: 160px;
    height: 45px;

    border: none;
    border-radius: 8px;

    font-size: 16px;
    cursor: pointer;

    background-color: #3498db;
    color: white;

    transform: none !important;
    clip-path: none !important;
}


.end-btn.play-again {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: #f0f8ff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.end-btn.play-again:hover {
    transform: scale(1.07);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.end-btn.exit {
    background: linear-gradient(135deg, #8b0000, #b22222);
    color: #fff;
}

.level-screen .end-btn:hover {
    transform: scale(1.05) !important;
}



#next-level,
#retry-level,
#exit-game{

    position:relative;
    bottom:auto;
    left:auto;
    transform:none;

    width:180px;
    height:60px;

    border:none;
    border-radius:12px;

    font-size:18px;
    font-weight:bold;
    color:white;

    cursor:pointer;

    margin:10px;

    box-shadow:0 5px 15px rgba(0,0,0,0.4);
    transition:0.25s;
}

#next-level{
    left:30%;
    transform:translateX(-50%);
}

#retry-level{
    left:50%;
    transform:translateX(-50%);
}

#exit-game{
    left:70%;
    transform:translateX(-50%);
}
#next-level::after,
#retry-level::after,
#exit-game::after{
    content:"";
    position:absolute;
    top:15%;
    left:20%;
    width:35%;
    height:35%;
    border-radius:50%;
    background:rgba(255,255,255,0.7);
    filter:blur(3px);
}
#next-level{
    background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.1) 40%),
    radial-gradient(circle at 70% 70%, #00cfff, #0055ff);
}

#retry-level{
    background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.1) 40%),
    radial-gradient(circle at 70% 70%, #00ff95, #00994d);
}
#exit-game{
    background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.1) 40%),
    radial-gradient(circle at 70% 70%, #ff4d4d, #990000);
}


.level-complete-text{

    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%) scale(0.8);

    font-size:2.5vw;
    font-weight:bold;
    text-align:center;

    color:white;
    letter-spacing:2px;

    padding:1.5% 3%;

    background:radial-gradient(circle at 30% 30%, #00eaff, #005eff);
    border-radius:20px;

    box-shadow:
        0 0 25px cyan,
        inset 0 0 15px rgba(255,255,255,0.7),
        0 8px 20px rgba(0,0,0,0.7);

    backdrop-filter:blur(6px);

    opacity:0;
    pointer-events:none;

    transition:0.4s;
}
.show-complete{
    opacity:1;
    transform:translate(-50%,-50%) scale(1);
}
@keyframes floatWin{
    0%{ transform:translate(-50%,-50%) scale(1) translateY(0px); }
    50%{ transform:translate(-50%,-50%) scale(1) translateY(-6px); }
    100%{ transform:translate(-50%,-50%) scale(1) translateY(0px); }
}

.show-complete{
    animation:floatWin 2s infinite;
}

.level-screen button {
    display: inline-block;
    margin: 5px;
}
.finish-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}





















