
body {
    line-height: 1;
    background-color: #121213;
    overflow: hidden;
}

* {
    color: #ffffff;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande',
    'Lucida Sans', Arial, sans-serif;
    font-size: 40px;
}


h1 {
    display: block;
    font-size: 37px;
    font-weight: bold;
    width: 100%;
    margin: 10px;
    
}

/*-------------------------------------*/
/* UI STYLING */

.disable-dbl-tap-zoom {
    touch-action: manipulation !important;
}

.game-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.title-container {
    text-align: center;
    border-bottom: solid 1px #3a3a3c;
    width: 100%;
}

.tile-container {
    text-align: center;
    margin-top: 10px
}

.key-container {
    width: 438px;
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
     
}

.key-container button {
    width: 37px;
    height: 60px;
    border-radius: 4px;
    border: none;
    background-color: #818384;
    margin: 2px;
    font-size: 26px !important;
    padding: 0px;
}

.key-container button:nth-child(11) {
    margin-left: 0px;
}

.key-container button:nth-child(20),
.key-container button:nth-child(28) {
    width: 68px;
}

.tile-container div {
    display: flex;
    margin: auto;

}

.tile-container .tile {
    width: 72px;
    height: 72px;
    border: 2px solid#3a3a3c;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px;
    font-size: 40px;
}

.message-container {
    height: 30px;
    overflow: hidden;
}

.message-container p {
    background-color: #121213;
    border-radius: 10px;
    padding: 5px;
    margin-top: 5px;
    font-size: 18px;
}

.tile.flip {
    animation: 0.5s linear flipping;
}


@keyframes flipping {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.grey-overlay {
    background-color: #3a3a3c !important;
    border:none !important;
}

.yellow-overlay {
    background-color: #b59f3a !important;
    border:none !important;
}

.green-overlay {
    background-color: #538d4e !important;
    border:none !important;
}

.reset-overlay {
    background-color: ##121213 !important;
    border: 2px solid #3a3a3c !important;
}


/*-------------------------------------*/
/* MOBILE STYLING */
/* On screens that are less than the max-width, set the background color to blue */

/*iphone x and xr*/

@media only screen 
    and (device-width : 375px) 
    and (device-height : 812px) 
    and (-webkit-device-pixel-ratio : 3) {

body {
    /*background-color: #333333;*/
    overflow: hidden;
}
  

h1 {
    display: block;
    font-size: 70px;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
    margin: 0px;
    padding: 50px 0;
}


.title-container {
    text-align: center;
    border-bottom: solid 1px #3a3a3c;
    margin: 0px;
    width: 100%;
}

.tile-container {
    text-align: center;
    font-size: 60px;
}

.key-container {
    width: 85%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}

.key-container button {
    width: 65px;
    height: 130px;
    border-radius: 10px;
    border: none;
    background-color: #818384;
    margin: 6px;
    font-size: 42px !important;
    padding: 0px;
}

.key-container button:nth-child(11) {
    margin-left: 10px;
}

.key-container button:nth-child(20),
.key-container button:nth-child(28) {
    width: 120px;
}


.tile-container .tile {
    width: 140px;
    height: 140px;
    border: 2px solid#3a3a3c;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px;
    font-size: 70px;
}

.message-container {
    height: 80px;
    font-size: 45px;
    margin-top: 15px;
}

.message-container p {
    background-color: #121213;
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
    font-size: 40px;

}

}

/* iphone 12, 12 Pro */
@media only screen
and (min-device-width: 390px)
and (max-device-height: 844px)
and (-webkit-device-pixel-ratio: 3) {

body {
    /*background-color: #333333;*/
    overflow: hidden;
}
  

h1 {
    display: block;
    font-size: 70px;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
    margin: 0px;
    padding: 50px 0;
}


.title-container {
    text-align: center;
    border-bottom: solid 1px #3a3a3c;
    margin-bottom: 10px;
    width: 100%;
}

.tile-container {
    text-align: center;
    font-size: 60px;
}

.key-container {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}

.key-container button {
    width: 68px;
    height: 130px;
    border-radius: 10px;
    border: none;
    background-color: #818384;
    margin: 6px;
    font-size: 42px !important;
    padding: 0px;
}

.key-container button:nth-child(11) {
    margin-left: 20px;
}

.key-container button:nth-child(20),
.key-container button:nth-child(28) {
    width: 140px;
}


.tile-container .tile {
    width: 140px;
    height: 140px;
    border: 2px solid#3a3a3c;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px;
    font-size: 70px;
}

.message-container {
    height: 80px;
    font-size: 45px;
    margin-top: 10px;
}

.message-container p {
    background-color: #121213;
    border-radius: 10px;
    padding: 10px;
    margin-top: 5px;
    font-size: 40px;
}   
}


@media only screen and (min-device-width: 1536px)
and (max-device-width: 2048px)
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 2) {

body {
    line-height: 1;
    background-color: #121213;
    overflow: hidden;
    touch-action: manipulation;
}


h1 {
    display: block;
    font-size: 37px;
    font-weight: bold;
    width: 100%;
    
}

/*-------------------------------------*/
/* UI STYLING */

.disable-dbl-tap-zoom {
    touch-action: manipulation;
}

.game-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.title-container {
    text-align: center;
    border-bottom: solid 1px #3a3a3c;
    width: 100%;
    margin-top: 20px;
}

.tile-container {
    text-align: center;
    margin-top: 10px
}

.key-container {
    width: 438px;
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
     
}

.key-container button {
    width: 37px;
    height: 70px;
    border-radius: 4px;
    border: none;
    background-color: #818384;
    margin: 2px;
    font-size: 26px !important;
    padding: 0px;
}

.key-container button:nth-child(11) {
    margin-left: 0px;
}

.key-container button:nth-child(20),
.key-container button:nth-child(28) {
    width: 68px;
}

.tile-container div {
    display: flex;
    margin: auto;

}

.tile-container .tile {
    width: 72px;
    height: 72px;
    border: 2px solid#3a3a3c;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px;
    font-size: 40px;
}

.message-container {
    height: 30px;
}

.message-container p {
    background-color: #121213;
    border-radius: 10px;
    padding: 5px;
    margin-top: 5px;
    font-size: 18px;
}

.tile.flip {
    animation: 0.5s linear flipping;
}

}