@font-face {
    font-family: Ans;
    font-style: normal;
    src: url(Jaro-Regular-VariableFont_opsz.ttf);
}

body {
    margin: 0px;
    /* background: url("../images/body-background.jpg"); */
    background: url("../images/start-cover.jpg");
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
}

.outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lives-div {
    display: flex;
    flex-direction: column;
    /* position: absolute;
    top: 0px;
    left: 0px; */
    /* margin: 20px; */
    align-items: center;
    justify-content: center;
}

#lives-div img {
    width: 40px;
}

#lives {
    font-weight: 1000;
}

.game-heading {
    margin: 0;
    font-size: 2.9rem;
    font-family: Ans, sans-serif;
    color: sienna;
    z-index: 11;
    color: #ffd600;
    text-shadow: 2px 1px 1px #000;
}

#btn-start,
#btn-stop {
    margin-left: 5px;
    width: 40px;
    /* position: absolute; */
    /* top: 0px; */
    /* right: 0px; */
    /* margin: 20px; */
}

#btn-stop {
    display: none;
}

#rubric {
    /* margin-top: 30px; */
    font-weight: 500;
    margin: 2px;
    font-size: 1.3rem;
    /* padding: 10px; */
    background-color: rgba(255, 255, 255, 0.445);
    border-radius: 10px;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
}

#rubric p{
    margin: 10px;
    max-width: 600px;
    /* font-family: Ans, sans-serif;
    color: maroon; */
}

#rubric-statement{
    text-align: justify;
}

#section{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.rubric-data{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#start {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    /* background: url("../images/start-cover.jpg"); */
    width: 100%;
    height: 100%;
    margin-top: 0px;
    background-position: center;
    background-size: cover;
    align-items: center;
    justify-content: center;
}

#start-button {
    margin: 0;
    width: 200px;
    transition: .5s;
}

#start-button:hover {
    -webkit-transform: rotateY(20deg);
}

#main-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* min-height: 100vh; */
}

#end {
    display: none;
    flex-direction: column;
    width: 100vw;
    margin-top: 0px;
    background-position: center;
    background-size: cover;
    align-items: center;
    justify-content: center;
}

#lose {
    display: none;
    flex-direction: column;
    width: 100vw;
    margin-top: 0px;
    background-position: center;
    background-size: cover;
    align-items: center;
    justify-content: center;
}

#end, #lose{
    /* display: flex; */
    position: absolute;
    z-index: 1000;
    top: 0;
    height: 100%;
    /* width: 100%; */
    /* height: 100%; */
}

#overlay{
    display: none;
    position: absolute;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.562);
}

#lose h1,
#end h1 {
    font-family: Ans, sans-serif;
    font-weight: 100;
    color: darkgoldenrod;
    text-shadow: 2px 1px 1px #000;
}

.retry {
    width: 80px;
    transition: .5s;
}

.retry:hover {
    -webkit-transform: rotateY(20deg);
}

#main-container h2 {}

#main-container p {
    display: flex;
    align-items: center;
}

#image-container {
    position: relative;
    top: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#working-image-container,
#reference-image-container {
    position: relative;
}

.frame{
    padding: 1.5rem;
    margin: 2px;
    background: url("../images/wood.jpg");
    border-radius: 15px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.marker {
    position: absolute;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0);
    border: 2px dashed green;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#reference-image,
#working-image,
map {
    z-index: 10;
    top: 0;
    left: 0;
    border-radius: 15px;
}

@media only screen and (min-width: 691px) {

    #reference-image,
    #working-image {
        max-width: 100%;
    }

    .game-heading {
        /* font-size: 2.2rem; */
    }

    

}

/* @media only screen and (max-height: 690px) {

    #start{
        height: 105%;
    }
} */

/* @media only screen and (max-height: 700px) {

    #start{
        height: 120vh;
    }

} */

h2.game-heading{
    margin-top: 30px;
}

@media only screen and (min-width: 800px) {
    #image-container {
        margin-left: 5vh;
        margin-right: 5vh;
    }
    .frame {
        margin: 0.3rem;
    }
}

@media only screen and (min-width: 1000px) {
    #image-container {
        margin-left: 10vh;
        margin-right: 10vh;
    }
    .frame {
        margin: 1rem;
    }
}

@media only screen and (max-width: 690px) {

    #reference-image,
    #working-image {
        max-width: 100%;
    }

    #image-container {
        flex-direction: column;
    }
    
    #section{
        /* flex-direction: column; */
    }

    .rubric-data{
        flex-direction: column;
        /* margin-top: 10px; */
    }

    body {
        overflow: auto;
       }
}

@media (orientation: landscape) {


    @media (max-width: 960px)
    {
        body {
            overflow: auto;
           }
    }
    
  }


/* transitions and animations */
.marker {
    box-shadow: 0px 0px 20px 0px rgb(253, 113, 70);
    animation:
        move1 1800ms ease-in-out infinite,
        grow 500ms ease-out 1;
}

@keyframes move1 {
    0% {
        border: 2px dashed green;
    }

    10% {
        border: 2px dotted green;
    }

    20% {
        border: 2px dashed green;
    }

    30% {
        border: 2px dotted green;
    }

    40% {
        border: 2px dashed green;
    }

    50% {
        border: 2px dotted green;
    }

    60% {
        border: 2px dashed green;
    }

    70% {
        border: 2px dotted green;
    }

    80% {
        border: 2px dashed green;
    }

    90% {
        border: 2px dotted green;
    }

    100% {
        border: 2px dashed green;
    }
}

@keyframes grow {
    0% {
        width: 0px;
        height: 0px;
    }
}

#start {
    animation: move-in-left .5s;
    animation-fill-mode: backwards;
}

#btn-start, #btn-stop{
    animation: none !important;
}

#start img {
    animation: move-in-left .5s;
    animation-fill-mode: backwards;
}

#main-container {
    animation: move-in-bottom .5s;
    animation-fill-mode: backwards;
}

#reference-image-container {
    animation: move-in-left .5s;
    animation-fill-mode: backwards;
}

#working-image-container {
    animation: move-in-right .5s;
    animation-fill-mode: backwards;
}

#lose h1,
#end h1 {
    animation: move-in-right .5s;
    animation-fill-mode: backwards;
}

.retry {
    animation: move-in-left .5s;
    animation-fill-mode: backwards;
}

.game-heading {
    animation: move-in-right .5s;
    animation-fill-mode: backwards;
}

@keyframes move-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    80% {
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes move-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    80% {
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes move-in-bottom {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    80% {
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateXY(100px);
    }
}


.animation {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background-color: red; */
    color: red;
    animation: grow11 0.5s ease-in-out;
    text-align: center;
  }
  
  @keyframes grow11 {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }

#lives, #differences{
    animation: move-in-right 0.5s ease-in-out;
}