* {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}
:root{
    --main-color : #DBEDFF;
}
html{
    /*font-size: 16px;*/
}
body{
    padding:0;
    margin:0;
    /*max-width:100vw;*/
    /*height:100vh;*/
    
}
button{
    width: 5em;
    height:2.5em;
    border-radius: 4px;
    background-color:var(--main-color);
    margin-right: 10px; 
    font-size: 1.2em;
    background-color: #DBEDFF;
}
button.showHint {
    width: auto!important;
    font-size: 1em;
    max-height: 1.4em;
    font-family:Arial, Helvetica, sans-serif;
    background-color: #851e41;
    color: #fff;
    border: 0px;
}
button.showHint:hover {
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    color: black;
}
.main-body {
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    /*max-width: 70%;*/
    /*min-height: 100%;*/
    background-color: white;
    /*padding: 30px;*/
    padding-bottom:30px;
}

.upperBody {
    position: relative;
}

#outputMessage{
    color:rgb(207, 25, 25);
    font-weight: bold;
    font-size: 25px;
    margin: 20px auto;
}

#outputMessage .hintAnswer {
    background-color: beige;
    border-radius: 10px;
    box-sizing: border-box;
    font-weight: normal!important;
    max-width: 40%;
    margin: 5px auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8em;
    font-style: normal!important;
    color: black!important;
}
span.hintJawa {
    font-family: "NgayogyanNew"!important;
}
.alphabets-block{
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    /*width: 45%;*/
}
.box-cell {
    display: inline-block;
    margin: 3px 2px;
}
img {
    width: 50px;
    height: 30px;
}
img[id^="drag"] {
    touch-action: none;
}

.display-row {
    display: table;
    width: 50%;
    margin: 0px auto;
    border-spacing: 10px;
    table-layout: fixed;
}
.display-box {
    max-width: 85px;
    height: 65px;
    border: 3px solid var(--main-color);;
    display: table-cell;
    margin-right: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.display{
    margin-left: auto;
    margin-right: auto;
    max-width:90%;
}
section{
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
}
.title-box{
    font-family: 'Bungee Shade';
    font-size: 30px;
    margin-top: 5px;
    margin-bottom: 0px;
}
.description-box, #hints, button{
    font-family: 'Playpen Sans';
    margin-bottom: 5px;
    margin-top: 5px;
    font-weight: bold;
}
#hints {
    position: relative;
}
[draggable] {
    cursor: move;
}


.scorebox {
    position: absolute;
    display: none;
    top: 5%;
    left: calc(50% - 20rem);
}

.card {
    margin: 0rem;
}
h2.announcement {
    margin: 0;
    font-size: 1em;
}
.top-card {
    width: 9rem;
    padding: 0.8rem;
    background-color:hsl(135, 35%, 55%);
    color: #fff; 
    border-radius: 3%;
    padding: 5px 0px;
}
.top-card span {
    font-size: 3vh;
    display: block;
}
.bottom-card {
    width: 9rem;
    padding: 5px 0.8rem;
    background-color: hsl(50, 75%, 55%);
    border-radius: 2%;
}
.english-score {
    margin: 0px;
    font-size: .8em;
    padding: 2%;
    background-color: rgba(255,255,255,0.2);
    color: #000;
    border-radius: 3%;
}
.math-score {
    margin: 2px 0px 0px;
    color: #000;
    font-size: .8em;
    padding: 2%;
    background-color: rgba(255,255,255,0.2);
    border-radius: 3%;
}
.link {
    padding-top: 5rem;
    cursor: pointer;
    font-size: 2.5vh;
}  
.modal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: "Playpen Sans";
    font-size: 1.5em;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }
  .modal-bg {
    position: absolute;
    background: teal;
    width: 100%;
    height: 100%;
  }
  .modal-container {
    border-radius: 10px;
    background: #fff;
    position: relative;
    padding: 30px;
  }
  .modal-close {
    position: fixed;
    right: -10px;
    top: -10px;
    outline: none;
    appearance: none;
    color: white;
    background: red;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
}

.highlight-container, .highlight {
    position: relative;
    font-family: "NgayogyanNew"!important;
    font-size: 1.1em;
}

@media screen and (max-width:1100px){
    img{
        width:65px;
        height:45px;
    }
    .display-box{
        width:70px;
        height:50px;
    }
}
@media screen and (max-width:850px){
    body {
        box-sizing: border-box;
    }
    /*.main-body,*/
    .alphabets-block{
        /*width: 90%!important;*/
        /*max-width: 90%!important;*/
    }
    section {
        /*width: 98%!important;*/
    }
    .display {
        width: 98%!important;
        max-width: 98%!important;
    }
    .display-row {
        width: 90%!important;
        max-width: 90%!important;
        display: block;
    }
    .display-box {
        display: inline-block;
    }
    .box-cell {
        position: relative;
        width:50px;
        height:35px;
    }
    .main-body{
        /*box-sizing: border-box;*/
        /*max-width: 100%!important;*/
        /*width: 100%!important;*/
    }
    .box-cell > img {
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 30px;
    }
    .display-box > img {
        margin: 0px;
        max-width: 90%;
    }
    #outputMessage .hintAnswer {
        max-width: 90%!important;
    }
    .modal {
        position: fixed;
        width: 100vw;
        max-height: 100vh;
        overflow: auto;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        font-family: "Playpen Sans";
        font-size: 1.2em;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .scorebox {
        position: absolute;
        display: none;
        top: 5%;
        left: 0px;
    }
    
    .top-card {
        width: 100%;
        padding: 0.5rem;
    }
    .top-card span {
        font-size: 2vh;
        display: block;
    }
    .bottom-card {
        width: 100%;
        padding: 5px 0.5rem;
    }
    .highlight-container, .highlight {
        font-size: 1.2em;
    }
}
@media screen and (max-width:500px){
    body {
        box-sizing: border-box;
    }
    /*.main-body,*/
    .alphabets-block{
        width: 90%!important;
        max-width: 90%!important;
    }
    section {
        /*width: 98%!important;*/
    }
    .display {
        width: 98%!important;
        max-width: 98%!important;
    }
    .display-row {
        width: 90%!important;
        max-width: 90%!important;
        display: block;
    }
    .display-box {
        display: inline-block;
    }
    .box-cell {
        position: relative;
        width:50px;
        height:35px;
    }
    .main-body{
        /*box-sizing: border-box;*/
        /*max-width: 100%!important;*/
        /*width: 100%!important;*/
    }
    .box-cell > img {
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 30px;
    }
    .display-box > img {
        margin: 0px;
        max-width: 90%;
    }
    #outputMessage .hintAnswer {
        max-width: 90%!important;
    }
    .modal {
        position: fixed;
        width: 100vw;
        max-height: 100vh;
        overflow: auto;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        font-family: "Playpen Sans";
        font-size: 1.2em;
        top: 0;
        left: 0;
        display: flex;
        align-items: baseline;
        justify-content: center;
    }
    .scorebox {
        position: absolute;
        display: none;
        top: 5%;
        left: 0px;
    }
    
    .top-card {
        width: 100%;
        padding: 0.5rem;
    }
    .top-card span {
        font-size: 2vh;
        display: block;
    }
    .bottom-card {
        width: 100%;
        padding: 5px 0.5rem;
    }
    .highlight-container, .highlight {
        font-size: 1.2em;
    }
}

  
.highlight-container {
    display: inline-block;
}
.highlight-container:before {
    content: " ";
    display: block;
    height: 90%;
    width: 100%;
    margin-left: -3px;
    margin-right: -3px;
    position: absolute;
    background: #ffd500;
    transform: rotate(2deg);
    top: -1px;
    left: -1px;
    border-radius: 20% 25% 20% 24%;
}

a.btn-modal {
  padding: 5px 10px;
  background: teal;
  font-size: 0.8em!important;
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
}


/* color box cell */
.box-cell:nth-child(4n) img[id^="drag"]{
    background-color: hsl(50, 75%, 55%);
    box-shadow: 1px 1px hsl(50, 75%, 45%), 2px 2px hsl(50, 45%, 45%),
        3px 3px hsl(50, 45%, 45%), 4px 4px hsl(50, 75%, 45%);
}
.box-cell:nth-child(4n-1) img[id^="drag"]{
    background-color: hsl(135, 35%, 55%);
    box-shadow: 1px 1px hsl(135, 35%, 45%), 2px 2px hsl(135, 35%, 45%),
        3px 3px hsl(135, 35%, 45%), 4px 4px hsl(135, 35%, 45%);
}
.box-cell:nth-child(4n-2) img[id^="drag"]{
    background-color: hsl(155, 35%, 60%);
    box-shadow: 1px 1px hsl(155, 25%, 50%), 2px 2px hsl(155, 25%, 50%),
        3px 3px hsl(155, 25%, 50%), 4px 4px hsl(140, 25%, 50%);
}
.box-cell:nth-child(4n-3) img[id^="drag"]{
    background-color: hsl(30, 65%, 60%);
    box-shadow: 1px 1px hsl(30, 45%, 50%), 2px 2px hsl(30, 45%, 50%),
        3px 3px hsl(30, 45%, 50%), 4px 4px hsl(30, 45%, 50%);
}


/* color box display */
.display-box:nth-child(4n) img[id^="drag"]{
    background-color: hsl(50, 75%, 55%);
    box-shadow: 1px 1px hsl(50, 75%, 45%), 2px 2px hsl(50, 45%, 45%),
        3px 3px hsl(50, 45%, 45%), 4px 4px hsl(50, 75%, 45%);
}
.display-box:nth-child(4n-1) img[id^="drag"]{
    background-color: hsl(135, 35%, 55%);
    box-shadow: 1px 1px hsl(135, 35%, 45%), 2px 2px hsl(135, 35%, 45%),
        3px 3px hsl(135, 35%, 45%), 4px 4px hsl(135, 35%, 45%);
}
.display-box:nth-child(4n-2) img[id^="drag"]{
    background-color: hsl(155, 35%, 60%);
    box-shadow: 1px 1px hsl(155, 25%, 50%), 2px 2px hsl(155, 25%, 50%),
        3px 3px hsl(155, 25%, 50%), 4px 4px hsl(140, 25%, 50%);
}
.display-box:nth-child(4n-3) img[id^="drag"]{
    background-color: hsl(30, 65%, 60%);
    box-shadow: 1px 1px hsl(30, 45%, 50%), 2px 2px hsl(30, 45%, 50%),
        3px 3px hsl(30, 45%, 50%), 4px 4px hsl(30, 45%, 50%);
}
