@import url("https://fonts.googleapis.com/css?family=Press+Start+2P");
body{
    margin: 0;
    overflow: hidden;

}
#loader{
    height: 100dvh;
    width: 100dvw;

    display: flex;
    flex-direction: column;

    position: absolute;

    background-image: url("https://texturelib.com/Textures/metal/tread%20plate/metal_tread_plate_0025_02_preview.jpg");
    background-repeat: repeat;
    background-size: contain;

    transition: transform 0.5s ease-in-out 500ms;
    z-index: 10;
}
#loader::before {
  content: ''; 
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 10%, rgba(32, 32, 32, 0.7) 100%); 
  z-index: 11;
}
.loaded{
    transform: translateY(100%);
}
#mainDiv{
    height: 100dvh;
    width: 100dvw;

    display: flex;
    flex-direction: row;
    
}
/* Main Menu*/
#leftDiv, #rightDiv{
    display: flex;
    flex-direction: column;

    height: 100%;

    align-items: center;

}
#rightDiv{
    width: 60%;

    align-items: center;
    justify-content: center;

    background-color:deepskyblue;
}
#leftDiv{
    width: 40%;

    background: linear-gradient(90deg, rgb(245, 245, 245) 90%, deepskyblue 100%);
}
#leftDiv > * {
    margin-left: -10%;
}
#sourcesWrapper{
    position: absolute;

    display: flex;
    flex-direction: column-reverse;

    bottom: 5px;
    left: 10px;
}
#sources{
    display: flex;
    gap: 2px;
}
#sources > img{
    height: 40px;
    margin-right: 5px;
    border-radius: 12px;
}
#sourcesText{
    margin: 0;
    padding: 2px;
    font-weight: 900;

    font-size: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#btnCont{
    display: flex;
    flex-direction: column;

    align-items: center;
    position: relative;
}
#btn1Wrap, #btn2Wrap{
    background-color: transparent;
    display: flex;
    flex-direction: row-reverse;
}
#title{
    margin-top: 20dvh; 
}
#gameImage{
    margin-right: 2dvw;
    transform: scale(0.8);
}
#btn1Wrap > button, #btn2Wrap > button{

    font-family: 'Press Start 2P', serif;
    font-size: 18px;
    

    background-color: transparent;
    border: none;

    line-height: 1;
    overflow: hidden;
}

#btnStyle{
    margin-top: 8px;
}
#cancelBtn{
    margin-top: 8px;
    margin-left: 30px;
}

.pointer{
    transform: rotate(90deg);
    width: 10px;
    height: auto;
    margin-right: 14px;
    margin-top: -2px;
}
.hidden{
    visibility: hidden;
}
button:hover{
    color: rgb(252, 0, 0);
}
#nameInput{
    border: none;
    border-bottom: 2px solid red;

    font-family: 'Press Start 2P', serif;
    font-size: 14px;
    word-spacing: -6px;

    background-color: rgba(40, 40, 40, 0.8);
    color: whitesmoke;

    height: 16px;
    width: 130px;

    margin-left: 25px;

    padding: 4px 4px 0px 4px;
} #nameInput:focus{
    outline: none;
}
#tip{
    position: absolute;
    text-align: center;

    bottom: -75px;

    width: 120%;

    transform: translateX(7%);

    font-size: 8px;
    font-style: italic;
    font-family: 'Press Start 2P', serif;
    line-height: 10px;

    color: rgba(66, 66, 66, 0.7);
}

/* Info Menu */

#infoLogo{
    margin-top: -5dvh; 
    margin-bottom: -30px;

    transform: scale(0.5);
}
#textWrap{
    display: flex;
    flex-direction: column;

    width: 250px;
    height: 300px;

    background-color: rgb(31, 31, 31);
    box-shadow: -1px 1px 0px rgb(60, 60, 60),
            -2px 2px 0px rgb(60, 60, 60),
            -3px 3px 0px rgb(60, 60, 60),
            -4px 4px 0px rgb(60, 60, 60),
            -5px 5px 0px rgb(60, 60, 60),
            -6px 6px 0px rgb(60, 60, 60);
        
    
    
    
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;

    padding: 5px 5px 8px 5px;

}
#intro{
    font-family: 'Press Start 2P', serif;
    font-size: 10px;
    color: whitesmoke;
    width: 98%;

    text-align: left;
    text-wrap: balance;

    letter-spacing: 1px;

    margin: 0;
    line-height: 14px;
}
#ciSpan {
    text-decoration: underline;
    color: rgb(223, 239, 255);
    font-size: 8px;
}
#linkWrap{
    display: flex;
    flex-direction: row;

    padding: 1px;
    gap: 2px;

    background-color: whitesmoke;

    justify-items: center;
} #linkWrap > img:hover{
    cursor: pointer;
}
#backBtn{
    font-family: 'Press Start 2P', serif;
    font-size: 18px;
    
    margin-top: 18px;

    background-color: transparent;
    border: none;

    line-height: 1;
    overflow: hidden;
}
#TOS{
    display: flex;
    position: absolute;

    width: 400px;
    height: auto;

    right: 0;
    bottom: 0;
    margin-right: 1dvw;
}
#TOS > p{
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif, monospace;
    color: rgba(0, 0, 0, 0.7);
    text-align: justify;
}



/* GAME CSS */

#canvasLeft{
    width: 50%;
    height: 100%;
    background-color:rgb(136, 225, 255);
    border-right: 2px dotted white;
}
#canvasRight{
    width: 50%;
    height: 100%;
    background-color: rgb(136, 225, 255);
}
#plyrSprite, #hqSprite, #explSprite, #grass, #countdown, #flames, #cloud, #AA, #canister, #projectile, #particle, #BrokenAA {
  display: none;
}
#btnWrapper{
    display: flex;
    flex-direction: column;
    position: absolute;

    width: 20dvw;

    left: 50%;
    bottom: 50%;
    transform: translate(-50%, -50%);

    align-items: center;

    background-color: black;

    padding: 20px;
    margin: 0;
    gap: 16px;
}
#hostDiv{
    position: absolute;
    top: 0;
    left: 0;

    font-family: 'Press Start 2P', serif;
    font-size: 14px;

    padding: 5px;
}
#guestDiv{
    position: absolute;
    top: 0;
    right: 0;

    font-family: 'Press Start 2P', serif;
    font-size: 14px;

    padding: 5px;
}
#gameOver{
    white-space: pre;
    font-family: 'Press Start 2P', serif;

    
    color: rgb(255, 143, 24);

    margin: 0;
}
#winner{
    font-family: 'Press Start 2P', serif;
    font-size: 14px;

    color: white;

    margin: 4px;
}
#returnMenu{
    background-color: transparent;
    border: none;
    white-space: pre;

    font-family: 'Press Start 2P', serif;
    font-size: 10px;

    color: rgba(185, 185, 185, 0.72);
    
    margin: 0;
}
#returnMenu:hover{
    color: rgb(252, 0, 0);
}