*{
    margin: 0;
    padding: 0;
    text-decoration: none;
}
.mallanna-regular {
    font-family: "Mallanna", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.dokdo-regular {
    font-family: "Dokdo", system-ui;
    font-weight: 400;
    font-style: normal;
  }  
.logo{
    /* margin: 24px 36px 24px 36px; */
    height: 150px;
    position: absolute;
    left: 36px;
    top: 24px;
    filter: saturate(100%) sepia(29%) saturate(286%) hue-rotate(343deg) brightness(94%) contrast(89%);
}
.logo img{
    margin: auto;
    height: 100%;
}
header{
    width: 100%;
    height: 200px;
    /* height: 150px; */
    background-color: #E9CEA1;
    /* margin-bottom: 24px; */
    justify-content: center;
    align-content: center;
}
header, #instructions{
    text-align: center;
}
header h1{
    font-weight: 800;
    font-size: 3em;
    display: inline-block;
    margin: 10px auto 10px;
}
main{
    width: 100vw;
    height: 100vh;
    position: relative;
    background-color: #ba9d88;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#screen{
    /* padding-top: 2rem; */
    margin: 16px auto;
    /* margin-bottom: 16px; */
    width: 550px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border: black 1px solid;
}
#startScreen{
    width: 100%;
    height: 100%;
    opacity: 1;
    background-size: 100% 100%;
    background-color: palegoldenrod;
    z-index: 10000;
    /* padding: 0px 2px 2px 0px; */
    margin: 0px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-around;
}
#startScreen h1{
    font-family: "DynaPuff", system-ui;
    font-size: 3rem;
    text-align: center;
    margin: auto;
}
#startCrabs{
    display: flex;
    flex-direction: row;
    margin: auto;
    width: 50%;
    align-items: center;
    justify-content: space-around;
}
.startSprite{
    width: 100px;
    height: 100px;
    background-size: cover;
    image-rendering: pixelated;
}
#buttons{
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    flex-wrap: wrap;
    margin: auto;
    /* background-color: goldenrod; */
}
.startingButton:hover{
    background-color: rgb(183, 136, 17);
    cursor: pointer;
    transition: ease-in-out 200ms;
}
.startingButton{
    background-color: goldenrod;
    width: 40%;
    border: black solid 8px;
    padding: 8px;
    border-radius: 4px;
    margin: 8px auto;
    text-align: center;
    font-family: "Mallanna", sans-serif;
}
#swapControlsButton{
    width: 90%;
    background-color: rgb(216, 216, 43);
}
#swapControlsButton:hover{
    background-color: rgb(176, 176, 32);
    transition: ease-in-out 200ms;
}

#instructionScreen{
    width: 550px;
    height: 500px;
    background-color: paleturquoise;
    /* position: relative; */
    position: absolute;
    opacity: 0;
    z-index: 100;
    /* padding: 1px; */
}
#InstructionsHeader{
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
#InstructionsHeader h1{
    text-align: center;
    margin: auto;
    font-size: 3rem;
    font-family: "Mallanna", sans-serif;
}
#exitInstructions{
    width: 25%;
    border: black solid 8px;
    padding: 8px;
    border-radius: 4px;
    margin: auto;
    text-align: center;
    background-color: rgb(150, 221, 221);
    font-family: "Mallanna", sans-serif;
}
#exitInstructions :hover{
    background-color: rgb(125, 202, 202);
    cursor: pointer;
}
#instructionHolder{
    width: 550px;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: space-around;
    /* align-content: center; */
    margin: auto;
    flex-wrap: wrap;
}
.instruction{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 4px;
    margin: auto;
    background-color: palegoldenrod;
    border: 4px black solid;
    width: 40%;
    height: 160px;
    text-align: center;
    font-family: "Mallanna", sans-serif;
}
.instruction p{
    font-size: 0.9rem;
}
.spriteContainer{
    flex-direction: row;
}
.instructionSprite{
    width: 50px;
    height: 50px;
    background-size: cover;
    image-rendering: pixelated;
}


/*******************    CSS Game componenets     *******************/
#playSpace{
    background-color:#E9CEA1;
    width: 550px;
    height: 500px;
    /* border: 1px solid black; */
    margin: 0 auto;
    position: relative;
}
.LevelDescription{
    font-size: 2rem;
    color: white;
    font-family: "Dokdo", system-ui;
    padding: 0.25rem;
    z-index: 1000;
    position: relative;
}
.pixelated{
    background-size: cover;
    image-rendering: pixelated;
}
#winCrab{
    width: 50px;
    height: 50px;
    /* position: absolute; */
    background-image: url("Crab.png");
    z-index: 1;
    /* left: 50%;
    top: 50%; */
    text-align: center;
    margin: 0.5rem auto;
    filter: drop-shadow(0 0 0.5rem rgb(255, 255, 255));
}
#hero{
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("Crab.png");
    background-size: cover;
    image-rendering: pixelated;
    z-index: 1;
    
}
.creature{
    width: 50px;
    height: 50px;
    position: absolute;
    background-color: black;
}

.rock{
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("rockt2.png");
    background-size: cover;
    image-rendering: pixelated;
    z-index: 2;
}
.oneLong{
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("wall.png");
    background-size: cover;
    image-rendering: pixelated;
    z-index: 2;
}
.twoLong{
    width: 100px;
    height: 50px;
    position: absolute;
    background-image: url("Lwall.png");
    background-size: cover;
    image-rendering: pixelated;
    z-index: 2;
}
.bird{
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("bird.png");
    background-size: cover;
    image-rendering: pixelated;
    z-index: 3;
}
.snake{
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("snake.png");
    background-size: 100% 100%;
    image-rendering: pixelated;
    overflow: hidden;
    z-index: 3;
}
.roaming{
    width: 50px;
    height: 50px;
    position: absolute;
    /* background-color: purple; */
    z-index: 3;
    background-image: url("fish.png");
    background-size: cover;
    image-rendering: pixelated;
}
.wife{
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("wife.png");
    background-size: cover;
    image-rendering: pixelated;
    z-index: 3;
}
.collectable{
    width: 50px;
    height: 50px;
    position: absolute;
    background-size: cover;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 0.75rem rgb(255, 255, 255));
}
.hidden{
    display: none;
}
.bow{
    background-image: url("bow.png");
}
.purse{
    background-image: url("purse.png");
}
.bangles{
    background-image: url("bangles.png");
}
.shell{
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("shell.png");
    background-size: cover;
    image-rendering: pixelated;
}
.endZone{
    width: 50px;
    height: 50px;
    position: absolute;
    /* background-color: blue; */
}
.outWall{
    width: 50px;
    height: 50px;
    position: absolute;
    background-color: grey;
    background-image: url("rockwall.png");
    background-size: contain;
    image-rendering: pixelated;
    filter: brightness(150%);
    overflow: hidden;
}
.bigDiv{
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
}
#winScreen{
    width: 100%;
    height: 100%;
    opacity: 0;
    background-image: url(winBackground.jpg);
    background-size: 100% 100%;
    z-index: 10000;
    /* padding: 0px 2px 2px 0px; */
    margin: 0px;
    position: absolute;
}
#winScreen h1{
    font-size: 5rem;

}
#winScreen h3{
    font-size: 3rem;
}
#winCrab{
    height: 50px;
    width: 50px;
    background-repeat: repeat-x;
    background-size: cover;
    image-rendering: pixelated;
}

.hint{
    position: relative;
    color: lightyellow;
    padding: 30px;
    z-index: 10000;
    font-size: 2rem;
    filter: drop-shadow(0 0 0.07rem black);
    /* -webkit-text-stroke: 0.25rem black; */
    text-align: center;
    font-family: "Yomogi", cursive;
}

.deadText{
    position: relative;
    color: white;
    padding: 30px;
    z-index: 10000;
    text-align: center;
    background-color: black;
    font-family: "Yomogi", cursive;
}

.deadText1{
    font-size: 3rem;
}
.deadText2{
    padding-top: 0;
    font-size: 1.5rem;
}
.winText{
    position: relative;
    margin: auto;
    color: white;
    font-size: 72px;
    padding: 24px;
    z-index: 10000;
    text-align: center;
    /* filter: brightness(110%); */
    font-family: "Mallanna", sans-serif;
    line-height: 100%;
}

#instructions>p{
    font-size: 2em;
    color: blue;
}

#ControlWindow{
    width: 550px;
    margin: 24px auto 24px auto;
    padding: 24px;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.controls{
    /* display: none; */
    width: 25%;
    border: white solid 4px;
    border-radius: 16px;
    background-color: #d8bfad;
    color: white;
    margin: 8px 0;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    font-family: "Mallanna", sans-serif;
}
.controls h3{
    font-size: 2rem;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */  
}


footer{
    margin-top: 32px;
    width: 100%;
    /* height: 200px; */
    background-color: #E9CEA1;
    text-align: center;
    /* text-decoration: none; */
}
footer h2{
    padding: 24px;
    color: black;
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    header{
        text-align: right;
        transition: ease-in-out 250ms;
    }
    header h1{
        font-size: 2rem;
        transition: ease-in-out 250ms;
        margin-right: 32px;

    }
}