/* page*/
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    height: 100%; 
    }

.gdmjp_jigsawPage {
    background-color: white;
    font-family: 'Roboto', sans-serif;
    color: #181818;
    }

/* modal*/
.gdmjp_jigsawModal {
    display: none;
}

.gdmjp_modalContent {
    color: #282828;
    opacity: 1;
}

.gdmjp_jigsawClose {
    padding: 4px; 
    border: 2px solid #0062FF;
    border-radius: 4px;
}

.gdmjp_modalBody {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.gdmjp_selectGrid {
    margin-bottom: 10px;
    padding-left: 5%;
    padding-right: 5%;
}

.gdmjp_modalGrid {
    margin-bottom: 6px;
}

.gdmjp_grid3x3, .gdmjp_grid4x4 {
     width: 100%; 
     max-width: 100%;
}

.gdmjp_newGameButton {
    border-radius: 8px;
    padding: 4px 6px 4px 6px; 
    border: 0px solid #0062FF;
    background-color: #0062FF;
    opacity: 1; 
    color: white;
}

/* Title and "more options" button */
.gdmjp_titleRow {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    margin-top: 20px;
}

.gdmjp_heading {
    display: inline-block;
    margin-right: auto; 
    padding-right: 20px;
    font-size: 24px;
    }

.gdmjp_moreOptions {
    display: inline-block;
    cursor: pointer;
}

.gdmjp_moreOptions:hover {
    text-decoration: underline;
}

.gdmjp_blueRule {
    border-top: 2px solid #0062FF;
    opacity: .7;
}

/* main image at top */
.gdmjp_headerRow {
    padding-bottom: 20px;
    }

.gdmjp_originalImageHere {
    display: flex; 
    justify-content: center; 
    width: 100%; 
    background-color: 
    rgba(128, 151, 157, .3); 
    }

.gdmjp_originalImage {
    height: auto; 
    max-width: 100%; 
    padding-top: 20px;
    padding-bottom: 20px;  
    } 

/* jQuery checks if height of image is greater than width and if so will change percentage width
to reduce height on the page. Refer to function adjustWidthOfPortraitOrientationImages() */
@media only screen and (max-width: 575px) {
    .gdmjp_originalImage {
        width: 100%;
    }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .gdmjp_originalImage {
        width: 80%;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px){
    .gdmjp_originalImage {
        width: 60%;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px){
    .gdmjp_originalImage {
        width: 50%;
    }
}
@media only screen and (min-width: 1200px){
    .gdmjp_originalImage {
        width: 40%;
    }
}

.gdmjp_mainImageForLargeScreen {
    max-width: 100%;
}

.gdmjp_jigsawImage, .gdmjp_mainImageForLargeScreen {
    width: 100%;
    }

/* Grid */
.gdmjp_gridContainer {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around; 
}

.gdmjp_gridHere {
    position: relative; 
    display: flex;
    justify-content: center; 
    cursor: pointer;
}

/* Jigsaw pieces row */
.gdmjp_instruction {
    font-size: 16px; 
    background-color: rgba(242, 194, 0, .7);
    margin-bottom: 50px;
    padding-left: 10px;
    cursor: pointer;
    }

.gdmjp_imagePiecesHere {
    padding-left: 10px;
    background-color: rgba(242, 194, 0, .7);
    padding-top: 20px;
    padding-bottom: 30px;
    line-height: 2.0;
    cursor: pointer;
    }

.gdmjp_imagePieceDiv {
    overflow: hidden;
    display: inline-block;
    z-index: 100;
    }  

.gdmjp_imagePiece {
    overflow: hidden;
    }

.gdmjp_jigsawPieceSelected {
    outline: 3px solid #d9241c;
    z-index: 200 !important;
    }

.gdmjp_gridPiece {
    background-color: white;
    position: absolute; 
    border: 2px solid rgba(128, 151, 157); 
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* Completed Image */ 
.gdmjp_completedImageSection {
    display: flex; 
    justify-content: center; 
}

.gdmjp_completedImageHere {
    display: none;
}

.gdmjp_completedImage {
    width: 100%; 
    margin-bottom: 50px;
}

/* Feedback */
.gdmjp_wellDone {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
    }

.gdmjp_playAgain {
    text-decoration: underline; 
    cursor: pointer;
}
 
.gdmjp_notCorrectYet {
    display: none;
    position: absolute;
    bottom: -30px; 
    font-size: 20px;
    text-align: center; 
}




    