Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <h1>Masonry - columnWidth</h1>

<div class="grid">
 
</div>

              
            
!

CSS

              
                * { box-sizing: border-box; }

body { font-family: sans-serif; }

/* ---- grid ---- */

.grid {
  background: #eee;
  max-width: 360px;
}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- grid-item ---- */

.grid-item {
  width: 30px;
  height: 30px;
  float: left;
  'background: #D26;
  border: 2px solid #333;
  'border-color: hsla(0, 0%, 0%, 0.5);
  border-radius: 5px;
}

html,body {
    min-height: 100%;
    height: 100%;
    overflow: visible;
    color: #fff
}

body {
    background: url('images/background.jpg');
    background-size: 100%
}

.msi-messagebox {
    min-height: 60px;
    margin: 20px 0 0
}

.msi-mainboard {
    width: 640px;
    margin: 0 auto;
    padding: 15px;
    position: relative
}

.msi-gametime-container {
    text-align: left;
    padding-bottom: 20px;
    margin-left: 20px
}

.msi-tiles-panel .msi-tiles-container {
    width: 420px;
    height: 180px;
    font: 18px normal;
    font-family: Helvetica;
    line-height: 1
}

.msi-tiles-panel .msi-tiles-container .msi-tiles-title {
    width: inherit;
    text-align: center;
    padding-bottom: 10px
}

.msi-tiles-panel .msi-tiles-container .msi-tiles-row {
    height: 30px;
    width: inherit
}

.msi-tiles-panel .msi-tiles-container .msi-tiles-element {
    height: inherit;
    width: 16.66%;
    display: inline-block
}

.msi-tiles-panel .msi-tiles-container .msi-tile-square {
    font-weight: bold;
    color: #000;
    background-color: #ead08f;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    width: 24px;
    display: inline-block;
    text-align: center;
    padding: 4px
}

.msi-tiles-panel .msi-tiles-container .msi-tile-square-invisible-color {
    color: #ead08f
}

.msi-players-board {
    margin-left: 20px;
    z-index: 25
}

.msi-players-board .msi-player-data-container:before,.msi-players-board .msi-player-data-container:after {
    content: " ";
    display: table
}

.msi-players-board .msi-player-data-container:after {
    clear: both
}

.msi-players-board .msi-player-data-container .msi-player-data {
    float: left;
    margin-left: 50px
}

.msi-players-board .msi-player-data-container .msi-player-data:first-child {
    margin-left: 0
}

.msi-players-board .msi-player-data-container .msi-player-data .msi-player-turn {
    position: absolute;
    margin-left: -2rem;
    margin-top: .4rem;
    border-top: .8rem solid transparent;
    border-bottom: .8rem solid transparent;
    border-left: 1.3rem solid #fff
}

.msi-players-board .msi-player-data-container .msi-player-data .msi-player-name {
    display: inline-block;
    line-height: 1.5
}

.msi-players-board .msi-player-data-container .msi-player-data .msi-player-score {
    display: inline-block
}

.msi-players-board .msi-player-data-container .msi-player-data .msi-player-info {
    font: 12px normal;
    font-family: Helvetica;
    line-height: 2
}

.msi-players-board .msi-player-data-container .msi-player-data .msi-player-time {
    font: 18px normal;
    font-family: Helvetica;
    line-height: 2
}

.msi-players-board .msi-player-data-container .msi-player-data .msi-played-words {
    display: inline-block;
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle
}

.msi-players-board .msi-player-data-container .msi-player-data .msi-player-clock {
    font-weight: bold;
    color: #bdb593
}

.msi-messagebox {
    position: absolute;
    z-index: 1500
}

.msi-date-time {
    display: none;
    color: #fff;
    text-align: right;
    font: 12px Arial;
    float: right
}

.msi-action-btn {
    border-radius: 5px;
    font-family: Helvetica;
    border: thin solid #fff;
    padding: 5px 10px 5px 10px;
    margin-top: 5px;
    background-color: transparent
}

.msi-action-btn:hover,.msi-action-btn:focus {
    background-color: rgba(255,255,255,.5)
}

.msi-scrabble-board-wrapper {
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 603px;
    height: 603px;
    display: block;
    background-size: 100% 100%;
    margin-top: 10px;
    margin-bottom: 13px
}

.msi-scrabble-board {
    position: relative;
    top: 9px;
    left: 3px;
    margin-left: 0;
    margin-top: 0
}

.msi-scrabble-board-cell {
    position: absolute;
    min-width: 30px;
    min-height: 30px;
    background-size: 100% 100%
}

.msi-scrabble-board-cell.highlighted {
    box-shadow: inset 0 0 30px #fe3c3c;
    border-radius: 6px
}

.score-badge,.score-badge-across,.score-badge-down {
    position: absolute;
    top: auto;
    left: auto;
    right: -10px;
    bottom: -10px;
    font-size: .7em;
    background: red;
    color: #fff;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border: solid 1px #fff;
    border-radius: 50%;
    box-shadow: 0 0 1px #333;
    z-index: 10
}

.score-badge-across {
    top: 10px;
    right: -10px;
    bottom: auto;
    left: auto
}

.score-badge-down {
    top: auto;
    right: 10px;
    bottom: -10px;
    left: auto
}

.msi-tile-wrapper {
    position: relative;
    height: 100%;
    margin-left: -3px;
    margin-top: -3px
}

.tileselected {
    border: 2px solid red
}

.boardsection,.racksection {
    min-height: 35px;
    min-width: 35px
}

.bonuscell {
    background-size: 100% 100%;
    width: 100%;
    height: 100%
}

.msi-btn-container {
    margin: 15px 0;
    border: 1px solid #fff;
    border-radius: 5px;
    background-color: #409;
    display: table;
    table-layout: fixed;
    width: 100%
}

.msi-btn-container .msi-stackbtn-wrapper {
    display: table-cell;
    border-right: 1px solid #fff
}

.msi-btn-container .msi-stackbtn-wrapper:last-child {
    border: none
}

.msi-btn-container .msi-stackbtn-wrapper .msi-stackbtn {
    height: 60px;
    margin: 0;
    font-size: 23px;
    text-transform: uppercase
}

.msi-main-actionbtn-wrapper {
    display: table;
    margin-bottom: 20px
}

.msi-actionbtn-container {
    margin: 20px 0;
    border: 1px solid #fff;
    border-radius: 5px;
    display: table;
    table-layout: fixed;
    width: 100%;
    background-color: #409
}

.msi-actionbtn-container:last-child .msi-stackbtn-wrapper:last-child {
    float: none;
    border: none;
    border-right: 0 solid #fff;
    width: 100%
}

.msi-actionbtn-container .msi-stackbtn-wrapper {
    float: none;
    width: 100%
}

.msi-actionbtn-container .msi-stackbtn-wrapper:last-child {
    border-top: 1px #fff
}

.msi-actionbtn-container .msi-stackbtn-wrapper .msi-stackbtn {
    height: 50px;
    margin: 0;
    font-size: 23px;
    text-transform: uppercase
}

.msi-main-actionbtn-container {
    border: 1px solid #fff;
    border-radius: 5px;
    background-color: green;
    display: table;
    table-layout: fixed;
    width: 100%
}

.msi-main-actionbtn-container .msi-stackbtn-wrapper {
    display: table-cell;
    border-right: 1px solid #fff;
    background-color: #00853e
}

.msi-main-actionbtn-container .msi-stackbtn-wrapper:last-child {
    border: none
}

.msi-main-actionbtn-container .msi-stackbtn-wrapper .msi-stackbtn {
    height: 50px;
    margin: 0;
    font-size: 23px;
    text-transform: uppercase;
    font-weight: 900
}

.msi-main-actionbtn-container .msi-sendbtn-text-short {
    display: inline
}

.msi-main-actionbtn-container .msi-sendbtn-text-full {
    display: none
}

.msi-challengebtn-container {
    display: table-cell;
    text-align: left;
    background-color: #ff2e05
}

.msi-challengebtn-container .msi-challengebtn-wrapper .msi-challengebtn {
    width: 100%;
    height: 35px;
    border: none;
    padding: 5px 10px 5px 10px;
    margin-top: 5px;
    background-color: transparent;
    font-weight: 900;
    outline: none;
    height: 60px;
    margin: 0;
    font-size: 23px;
    color: #fff;
    text-transform: uppercase
}

.msi-challengebtn-container .msi-challengebtn-wrapper .msi-challengebtn:hover,.msi-challengebtn-container .msi-challengebtn-wrapper .msi-challengebtn:active {
    text-shadow: 0 0 2px #fff
}

.msi-challengebtn-container .msi-challengebtn-wrapper .msi-challengebtn[disabled] {
    color: #ccc
}

.msi-challengebtn-container .msi-challengebtn-wrapper .msi-challengebtn[disabled]:hover,.msi-challengebtn-container .msi-challengebtn-wrapper .msi-challengebtn[disabled]:active {
    text-shadow: none
}

.msi-stackbtn {
    width: 100%;
    height: 35px;
    border: none;
    padding: 5px 10px 5px 10px;
    margin-top: 5px;
    background-color: transparent;
    font-weight: 900;
    outline: none
}

.msi-stackbtn:hover,.msi-stackbtn:active {
    text-shadow: 0 0 2px #fff
}

.msi-stackbtn[disabled] {
    color: #ccc
}

.msi-stackbtn[disabled]:hover,.msi-stackbtn[disabled]:active {
    text-shadow: none
}

.msi-main-action-btn {
    height: 76px;
    width: 100%;
    border-radius: 15px;
    font-family: Helvetica;
    border: 1px solid #fff;
    padding: 5px 10px 5px 10px;
    margin-top: 5px;
    background-color: #006f29
}

.msi-main-action-btn:hover,.msi-main-action-btn:active {
    text-shadow: 0 0 2px #fff
}

.msi-actions-container:before,.msi-actions-container:after {
    content: " ";
    display: table
}

.msi-actions-container:after {
    clear: both
}

.msi-tiles-background {
    background-size: 100% 100%;
    width: 610px;
    height: 125px
}

.msi-tiles-background-opponent {
    background-size: 100% 100%;
    width: 610px;
    height: 125px;
    float: none;
    margin-top: -55px
}

.msi-rack-container,.msi-rack-container-opponent {
    text-align: center
}

.msi-litera,.msi-litera-opponent {
    background-image: url('images/darker.png');
    background-size: 110% 110%;
    width: 45px;
    height: 45px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    margin: 0;
    border: none;
    border-radius: 4px
}

.msi-litera .msi-scrabble-board-cell,.msi-litera-opponent .msi-scrabble-board-cell {
    position: relative;
    width: 115%;
    height: 115%;
    background-size: 100% 100%;
    top: -4px;
    left: -4px
}

.msi-tile-cell-container {
    position: absolute;
    display: none;
    z-index: 25
}

.msi-tile-cell {
    border: 1px solid #333;
    width: 35px;
    height: 35px;
    background-size: 100%
}

.msi-moved-tile {
    width: 35px;
    height: 35px;
    position: absolute;
    z-index: 1500
}

.msi-typed-cell {
    border: 1px solid red;
    width: 35px;
    height: 35px
}

.msi-typed-cell-right {
    background: url('images/arrow-right.png');
    background-size: 100% 100%
}

.msi-typed-cell-down {
    background: url('images/arrow-down.png');
    background-size: 100% 100%
}

.msi-stackbtn-group-wrapper:first-child {
    border-top: 0 solid #fff
}

.msi-chat-wrapper {
    position: absolute;
    top: 1465px;
    width: 640px;
    margin-left: -15px
}

.msi-chat {
    font-size: 1rem;
    height: 470px;
    margin: auto;
    border-radius: 0;
    left: 0;
    top: 0
}

.msi-emoji-container {
    position: static;
    margin-top: 10px;
    left: 0;
    width: 100%;
    height: 132px;
    font-size: 5.5rem
}

.msi-emoji-container .msi-emoji {
    width: 8rem
}

#video-player,#video-opponent {
    position: relative;
    float: left;
    width: 50%;
    height: 200px
}

@media(min-width: 768px) {
    html {
        font-size:10px
    }

    .msi-mainboard {
        position: relative
    }

    .msi-players-board {
        float: left;
        width: 440px
    }

    .msi-players-board .msi-player-data-container .msi-player-data {
        margin-left: 0
    }

    .msi-players-board .msi-player-data-container .msi-player-data .msi-played-words {
        width: 100px
    }

    .msi-tiles-panel {
        position: absolute;
        top: 1015px;
        margin-left: 20px
    }

    .msi-tiles-panel .msi-tiles-container {
        width: 600px;
        height: 188px;
        font: 20px normal;
        font-family: Helvetica;
        line-height: 1
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-title {
        width: inherit;
        text-align: center;
        padding-bottom: 10px
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-row {
        height: 35px;
        width: inherit
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-element {
        height: inherit;
        width: 16.66%;
        display: inline-block
    }

    .msi-tiles-panel .msi-tiles-container .msi-tile-square {
        font-weight: bold;
        color: #000;
        background-color: #ead08f;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        width: 24px;
        display: inline-block;
        text-align: center;
        padding: 4px
    }

    .msi-tiles-panel .msi-tiles-container .msi-tile-square-invisible-color {
        color: #ead08f
    }

    .msi-scrabble-board-wrapper {
        width: 532px;
        height: 532px;
        min-width: 532px;
        min-height: 532px
    }

    .msi-scrabble-board {
        position: relative;
        top: 27px;
        left: 23px
    }

    .msi-actions-container:before,.msi-actions-container:after {
        content: " ";
        display: table
    }

    .msi-actions-container:after {
        clear: both
    }

    .msi-actionbtn-container {
        display: block;
        float: right;
        width: 105px;
        margin: 0;
        margin-right: 27px
    }

    .msi-actionbtn-container .msi-stackbtn-wrapper {
        display: block;
        float: left;
        width: 100%;
        border-bottom: 1px solid #fff
    }

    .msi-actionbtn-container .msi-stackbtn-wrapper .msi-stackbtn {
        height: 20px;
        margin: 0;
        padding: 0;
        font-size: 12px
    }

    .msi-main-actionbtn-container {
        width: 100%;
        margin: 15px 0
    }

    .msi-main-actionbtn-container .msi-stackbtn-wrapper .msi-stackbtn {
        height: 25px;
        margin: 0;
        font-size: 12px;
        font-weight: 900
    }

    .msi-main-actionbtn-container .msi-sendbtn-text-short {
        display: none
    }

    .msi-main-actionbtn-container .msi-sendbtn-text-full {
        display: inline
    }

    .msi-main-actionbtn-wrapper {
        width: 463px;
        margin-left: 0
    }

    .msi-challengebtn-container {
        padding-left: 0;
        background-color: #ff2e05
    }

    .msi-challengebtn-container .msi-challengebtn-wrapper {
        width: 100%;
        margin-right: 25px
    }

    .msi-challengebtn-container .msi-challengebtn-wrapper .msi-challengebtn {
        height: 25px;
        font-size: 12px;
        font-weight: 900
    }

    .msi-tiles-background {
        float: left;
        width: 463px;
        height: 92px
    }

    .msi-tiles-background-opponent {
        width: 463px;
        height: 92px
    }

    .msi-rack-container,.msi-rack-container-opponent {
        text-align: center;
        margin-left: 0
    }

    .msi-litera {
        width: 45px;
        height: 45px
    }

    .msi-notification-wrapper .msi-notification-box {
        left: auto;
        min-width: 20rem
    }

    .msi-stackbtn-group-wrapper {
        display: block
    }

    .msi-external-site-logo-wrapper {
        width: 100%;
        background: url('images/background.jpg') 100% 100%
    }

    .msi-chat-wrapper {
        left: 500px;
        top: 826px;
        width: 210px
    }

    .msi-videochat-wrapper {
        width: auto
    }

    .msi-chat {
        width: 210px;
        height: 240px;
        margin: 0;
        margin-top: -50px;
        font-size: .7rem
    }

    .msi-chat-education {
        height: 145px
    }

    .msi-emoji-container {
        top: 918px;
        left: 390px;
        width: 210px;
        height: 95px;
        font-size: 2.3rem
    }

    .msi-emoji-container .msi-emoji {
        width: 2.5rem
    }

    #video-player,#video-opponent {
        position: absolute;
        top: 400px;
        width: 320px;
        height: 200px
    }

    #video-player {
        left: -440px
    }

    #video-opponent {
        left: -120px
    }

    .video-container-md {
        display: inline-block;
        height: 200px;
        width: 100%;
        background-color: green
    }
}

@media(min-width: 1024px) {
    .msi-main-actionbtn-wrapper {
        width:555px;
        margin-left: 0
    }

    .msi-tiles-background {
        float: left;
        width: 555px;
        height: 92px;
        margin-left: 0
    }

    .msi-tiles-background-opponent {
        float: left;
        width: 555px;
        height: 92px;
        margin-left: 0;
        margin-left: 7px
    }

    .msi-mainboard {
        display: block;
        position: relative;
        width: auto;
        margin: 0;
        overflow: hidden
    }

    .msi-gametime-container {
        position: absolute;
        margin-top: 45px;
        top: 0;
        left: 605px
    }

    .msi-players-board {
        position: absolute;
        top: -20px;
        left: 585px;
        margin-left: 20px
    }

    .msi-players-board .msi-player-data-container {
        margin-top: 20px
    }

    .msi-players-board .msi-player-data-container .msi-player-data {
        float: none;
        margin-top: 22px
    }

    .msi-players-board .msi-player-data-container .msi-player-data .video {
        display: block
    }

    .msi-players-board .msi-player-data-container .msi-player-data .msi-played-words {
        width: 140px
    }

    .msi-tiles-panel {
        position: absolute;
        top: 315px;
        left: 585px;
        margin-left: 20px
    }

    .msi-tiles-panel .msi-tiles-container {
        width: 420px;
        height: 180px;
        font: 18px normal;
        font-family: Helvetica;
        line-height: 1
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-title {
        width: inherit;
        text-align: center;
        padding-bottom: 10px
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-row {
        height: 30px;
        width: inherit
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-element {
        height: inherit;
        width: 16.66%;
        display: inline-block
    }

    .msi-tiles-panel .msi-tiles-container .msi-tile-square {
        font-weight: bold;
        color: #000;
        background-color: #ead08f;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        width: 24px;
        display: inline-block;
        text-align: center;
        padding: 4px
    }

    .msi-tiles-panel .msi-tiles-container .msi-tile-square-invisible-color {
        color: #ead08f
    }

    .msi-messagebox {
        top: 490px;
        left: 585px
    }

    .msi-scrabble-board-wrapper {
        margin-left: 10px;
        margin-right: 45px;
        margin-top: 10px
    }

    .msi-actions-container {
        width: 685px;
        margin-left: 7px
    }

    .msi-actionbtn-container {
        margin: 0;
        margin-top: -14px
    }

    .msi-main-actionbtn-container {
        margin: 0
    }

    .msi-challengebtn-container {
        padding-left: 0
    }

    .msi-challengebtn-container .msi-challengebtn-wrapper {
        margin-right: 0
    }

    .msi-stackbtn-group-wrapper {
        display: block
    }

    .msi-waiting-player-name {
        white-space: nowrap
    }

    .msi-external-site-logo-wrapper {
        background: none
    }

    .msi-chat-wrapper {
        position: absolute;
        top: 490px;
        left: 725px;
        margin: 0;
        width: 285px
    }

    .msi-chat {
        font-size: 1rem;
        float: none;
        width: 285px;
        height: 135px;
        margin-left: 0;
        margin-top: 100px
    }

    .msi-chat-education {
        top: -90px;
        height: 135px
    }

    .msi-emoji-container {
        margin-top: -80px;
        width: 285px;
        height: 95px;
        font-size: 2.4rem
    }

    .msi-emoji-container .msi-emoji {
        width: 4.7rem
    }

    #video-player,#video-opponent {
        width: 175px;
        height: 120px;
        left: 110px
    }

    #video-player {
        top: -470px
    }

    #video-opponent {
        top: -305px
    }
}

@media(max-height: 639px) and (min-width:500px) and (orientation:landscape) {
    .msi-mainboard {
        display:block;
        position: relative;
        width: 2165px;
        margin: 0
    }

    .msi-gametime-container {
        position: absolute;
        margin-top: 45px;
        top: 300px;
        left: 620px
    }

    .msi-players-board {
        position: absolute;
        width: auto;
        top: 340px;
        left: 620px;
        margin-top: 30px
    }

    .msi-players-board .msi-player-data-container .msi-player-data {
        margin-top: 0;
        margin-left: 30px;
        float: left
    }

    .msi-players-board .msi-player-data-container .msi-player-data:first-child {
        margin-left: 0
    }

    .msi-players-board .msi-player-data-container .msi-player-data .msi-played-words {
        width: 150px
    }

    .msi-tiles-panel {
        position: absolute;
        left: 1115px;
        top: 225px
    }

    .msi-tiles-panel .msi-tiles-container {
        width: 420px;
        height: 180px;
        font: 18px normal;
        font-family: Helvetica;
        line-height: 1
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-title {
        width: inherit;
        text-align: center;
        padding-bottom: 10px
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-row {
        height: 30px;
        width: inherit
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-element {
        height: inherit;
        width: 16.66%;
        display: inline-block
    }

    .msi-tiles-panel .msi-tiles-container .msi-tile-square {
        font-weight: bold;
        color: #000;
        background-color: #ead08f;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        width: 24px;
        display: inline-block;
        text-align: center;
        padding: 4px
    }

    .msi-tiles-panel .msi-tiles-container .msi-tile-square-invisible-color {
        color: #ead08f
    }

    .msi-scrabble-board-wrapper {
        width: 542px;
        height: 545px;
        min-width: 542px;
        min-height: 545px;
        margin-right: 30px;
        margin-bottom: 25px;
        margin-top: 0
    }

    .msi-actions-container {
        position: absolute;
        left: 640px;
        top: 60px;
        margin-top: 40px;
        width: 460px;
        margin-left: 0
    }

    .msi-actionbtn-container {
        position: absolute;
        top: 30px;
        width: 100%;
        margin: 0;
        display: table;
        float: none
    }

    .msi-actionbtn-container .msi-stackbtn-wrapper {
        float: none;
        border: none;
        border-right: 1px solid #fff
    }

    .msi-actionbtn-container .msi-stackbtn-wrapper .msi-stackbtn {
        height: 40px;
        margin: 0;
        font-size: 17px
    }

    .msi-actionbtn-container .msi-stackbtn-wrapper:nth-child(1) {
        border-bottom: none
    }

    .msi-actionbtn-container .msi-stackbtn-wrapper:nth-child(2) {
        border-bottom: none
    }

    .msi-main-actionbtn-wrapper {
        width: 100%
    }

    .msi-main-actionbtn-container {
        width: 100%;
        margin: 10px 0;
        position: absolute;
        top: -40px
    }

    .msi-main-actionbtn-container .msi-stackbtn-wrapper {
        width: 50%;
        border: none;
        border-right: 1px solid #fff
    }

    .msi-main-actionbtn-container .msi-stackbtn-wrapper .msi-stackbtn {
        height: 40px;
        margin: 0;
        font-size: 17px
    }

    .msi-main-actionbtn-container .msi-sendbtn-text-short {
        display: inline
    }

    .msi-main-actionbtn-container .msi-sendbtn-text-full {
        display: none
    }

    .msi-challengebtn-container {
        padding-left: 12px;
        width: 50%
    }

    .msi-challengebtn-container .msi-challengebtn-wrapper {
        width: auto;
        margin-right: 0
    }

    .msi-challengebtn-container .msi-challengebtn-wrapper .msi-challengebtn {
        height: 40px;
        font-size: 17px
    }

    .msi-tiles-background {
        position: absolute;
        top: 140px;
        background-size: 100% 100%;
        width: 100%;
        height: 105px
    }

    .msi-tiles-background-opponent {
        position: absolute;
        width: 460px;
        height: 105px;
        left: 640px;
        top: 10px;
        background-size: 100% 100%;
        margin-left: 0
    }

    .msi-litera,.msi-litera-opponent {
        width: 50px;
        height: 50px
    }

    .msi-rack-container-opponent {
        margin-left: 0
    }

    .msi-notification-wrapper .msi-notification-box {
        left: 0;
        min-width: 0
    }

    .msi-stackbtn-group-wrapper {
        display: flex;
        border-top: 1px solid #fff
    }

    .msi-player-data-container {
        margin-top: 20px
    }

    .msi-external-site-logo-wrapper {
        position: absolute;
        top: 0;
        left: 1555px;
        width: 600px;
        background-color: none
    }

    .msi-chat-wrapper {
        position: absolute;
        margin-top: 0;
        left: 1555px;
        top: 10px;
        width: 600px;
        height: 600px;
        display: flex;
        flex-direction: column;
        -webkit-flex-direction: column
    }

    .msi-chat-wrapper-external-site-logo {
        top: 150px;
        height: 450px
    }

    .msi-chat {
        font-size: 1rem;
        width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100%
    }

    .msi-chat-education {
        top: 0
    }

    .msi-emoji-container {
        position: static;
        margin-top: 0;
        top: 435px;
        left: 0;
        width: 600px;
        height: 515px;
        font-size: 6.5rem
    }

    .msi-emoji-container .msi-emoji {
        width: 7.5rem
    }

    #video-player,#video-opponent {
        position: relative;
        width: 300px;
        height: 200px;
        float: left;
        left: 0;
        top: 0
    }
}

@media(max-width: 767px) and (orientation:portrait) {
    .msi-litera {
        width:75px;
        height: 75px
    }

    .msi-litera-opponent {
        width: 60px;
        height: 60px
    }

    .msi-scrabble-board-wrapper {
        width: 603px;
        height: 603px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0
    }

    .msi-typed-cell {
        width: 38px;
        height: 38px
    }

    .msi-player-data-container {
        margin-top: 30px
    }

    .msi-stackbtn-group-wrapper {
        display: flex;
        border-top: 1px solid #fff
    }

    .msi-stackbtn-group-wrapper:first-child {
        display: flex;
        border-top: 0 solid #fff
    }

    .msi-actionbtn-container {
        width: 602px;
        top: 210px;
        position: absolute;
        border-right: 1px solid #fff
    }

    .msi-stackbtn-wrapper {
        border-right: 1px solid #fff
    }

    .msi-rack-container {
        width: 100%
    }

    .msi-actions-container {
        position: absolute
    }

    .msi-main-actionbtn-wrapper {
        width: 602px;
        top: 140px;
        position: absolute
    }

    .msi-gametime-container {
        position: absolute;
        top: 1050px
    }

    .msi-players-board {
        position: absolute;
        top: 1070px
    }

    .msi-tiles-panel {
        position: absolute;
        top: 1255px;
        margin-left: 20px
    }

    .msi-tiles-panel .msi-tiles-container {
        width: 600px;
        height: 188px;
        font: 20px normal;
        font-family: Helvetica;
        line-height: 1
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-title {
        width: inherit;
        text-align: center;
        padding-bottom: 10px
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-row {
        height: 35px;
        width: inherit
    }

    .msi-tiles-panel .msi-tiles-container .msi-tiles-element {
        height: inherit;
        width: 16.66%;
        display: inline-block
    }

    .msi-tiles-panel .msi-tiles-container .msi-tile-square {
        font-weight: bold;
        color: #000;
        background-color: #ead08f;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        width: 24px;
        display: inline-block;
        text-align: center;
        padding: 4px
    }

    .msi-tiles-panel .msi-tiles-container .msi-tile-square-invisible-color {
        color: #ead08f
    }

    .msi-external-site-logo-wrapper {
        width: 100%;
        background: url('images/background.jpg') 100% 100%
    }
}

.msi-scrabble-board {
    border-spacing: 0;
    text-align: center;
    margin: 0;
    border: 2px solid transparent;
    margin-left: 3px
}

.msi-scrabble-board td {
    width: 39px;
    height: 39px;
    padding: 0;
    border: 4px solid transparent;
    vertical-align: top;
    overflow: visible
}

.msi-scrabble-board .msi-scrabble-tile {
    position: absolute;
    width: 42px;
    height: 42px;
    top: 0;
    left: 0
}

.msi-scrabble-board-wrapper {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/board-mattel.png')
}

.msi-tiles-background {
    background: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/rack-mattel.png');
    background-size: 100% 100%
}

.msi-tiles-background-opponent {
    background: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/rack-mattel.png');
    background-size: 100% 100%;
    float: none;
    margin-top: -55px
}

@media(max-width: 767px) and (orientation:portrait) {
    .msi-scrabble-board {
        margin-left:4px;
        margin-top: 5px
    }

    .msi-tiles-background {
        background: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/rack-mattel-min.png');
        background-size: 100% 100%;
        width: 640px;
        height: 135px;
        margin-left: -15px;
        margin-top: 10px
    }

    .msi-scrabble-board-wrapper {
        background-image: url(https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/board-mattel-min.png)
    }

    .msi-tiles-background-opponent {
        margin-top: -70px
    }
}

@media(min-width: 768px) {
    .msi-scrabble-board {
        top:27px;
        left: 23px
    }

    .msi-scrabble-board td {
        width: 33px;
        height: 33px
    }

    .msi-scrabble-board .msi-scrabble-tile {
        width: 36px;
        height: 36px;
        top: 0;
        left: 0
    }
}

@media(max-height: 639px) and (orientation:landscape) {
    .msi-scrabble-board-wrapper {
        background-image:url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/board-mattel-min.png')
    }

    .msi-scrabble-board {
        top: 9px;
        left: 3px
    }

    .msi-scrabble-board td {
        width: 35px;
        height: 35px
    }

    .msi-scrabble-board .msi-scrabble-tile {
        width: 38px;
        height: 38px;
        top: 0;
        left: 0
    }
}

.msi-tile-cell {
    border: 1px solid #333;
    width: 35px;
    height: 35px;
    background-size: 100%
}

.msi-moved-tile {
    width: 35px;
    height: 35px;
    position: absolute;
    z-index: 1500
}

.msi-bingo-dialog-box {
    background: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/bingo-backgroung.png');
    background-size: 100% 100%;
    position: absolute;
    width: 424px;
    height: 445px;
    top: 50%;
    left: 50%;
    justify-content: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    padding: 0 90px;
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%)
}

.msi-bingo-dialog-box .msi-bingo-block1 {
    margin-top: 270px
}

.msi-bingo-dialog-box .msi-bingo-block2 {
    margin-top: 10px
}

.msi-player-win {
    background: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/you-win-background.png');
    background-size: 100% 100%;
    padding: 0 6rem 0 5.5rem
}

.msi-opponent-win {
    background: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
images/opponent-win-background.png');
    background-size: 100% 100%;
    padding: 0 5rem 0 6.5rem
}

.msi-tile-letter-Blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-A1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_A1.png?version=3');
    background-size: cover
}

.msi-tile-letter-B3 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_B3.png?version=3');
    background-size: cover
}

.msi-tile-letter-C3 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_C3.png?version=3');
    background-size: cover
}

.msi-tile-letter-D2 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_D2.png?version=3');
    background-size: cover
}

.msi-tile-letter-E1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_E1.png?version=3');
    background-size: cover
}

.msi-tile-letter-F4 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_F4.png?version=3');
    background-size: cover
}

.msi-tile-letter-G2 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_G2.png?version=3');
    background-size: cover
}

.msi-tile-letter-H4 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_H4.png?version=3');
    background-size: cover
}

.msi-tile-letter-I1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_I1.png?version=3');
    background-size: cover
}

.msi-tile-letter-J8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_J8.png?version=3');
    background-size: cover
}

.msi-tile-letter-K5 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_K5.png?version=3');
    background-size: cover
}

.msi-tile-letter-L1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_L1.png?version=3');
    background-size: cover
}

.msi-tile-letter-M3 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_M3.png?version=3');
    background-size: cover
}

.msi-tile-letter-N1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_N1.png?version=3');
    background-size: cover
}

.msi-tile-letter-O1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_O1.png?version=3');
    background-size: cover
}

.msi-tile-letter-P3 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_P3.png?version=3');
    background-size: cover
}

.msi-tile-letter-Q10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Q10.png?version=3');
    background-size: cover
}

.msi-tile-letter-R1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_R1.png?version=3');
    background-size: cover
}

.msi-tile-letter-S1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_S1.png?version=3');
    background-size: cover
}

.msi-tile-letter-T1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_T1.png?version=3');
    background-size: cover
}

.msi-tile-letter-U1 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_U1.png?version=3');
    background-size: cover
}

.msi-tile-letter-V4 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_V4.png?version=3');
    background-size: cover
}

.msi-tile-letter-W4 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_W4.png?version=3');
    background-size: cover
}

.msi-tile-letter-X8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_X8.png?version=3');
    background-size: cover
}

.msi-tile-letter-Y4 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Y4.png?version=3');
    background-size: cover
}

.msi-tile-letter-Z10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Z10.png?version=3');
    background-size: cover
}

.msi-tile-letter-A-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_A_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-B-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_B_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-C-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_C_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-D-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_D_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-E-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_E_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-F-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_F_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-G-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_G_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-H-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_H_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-I-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_I_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-J-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_J_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-K-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_K_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-L-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_L_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-M-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_M_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-N-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_N_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-O-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_O_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-P-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_P_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-Q-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Q_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-R-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_R_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-S-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_S_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-T-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_T_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-U-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_U_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-V-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_V_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-W-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_W_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-X-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_X_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-Y-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Y_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-Z-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Z_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-Q8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Q8.png?version=3');
    background-size: cover
}

.msi-tile-letter-X10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_X10.png?version=3');
    background-size: cover
}

.msi-tile-letter-Y10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Y10.png?version=3');
    background-size: cover
}

.msi-tile-letter-K10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_K10.png?version=3');
    background-size: cover
}

.msi-tile-letter-W10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_W10.png?version=3');
    background-size: cover
}

.msi-tile-letter-CH5 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_CH5.png?version=3');
    background-size: cover
}

.msi-tile-letter-LL8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_LL8.png?version=3');
    background-size: cover
}

.msi-tile-letter-NTilda8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_NTilda8.png?version=3');
    background-size: cover
}

.msi-tile-letter-RR8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_RR8.png?version=3');
    background-size: cover
}

.msi-tile-letter-Q5 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Q5.png?version=3');
    background-size: cover
}

.msi-tile-letter-CH-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_CH_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-LL-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_LL_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-NTilda-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_NTilda_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-RR-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_RR_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-Cedilla10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Cedilla10.png?version=3');
    background-size: cover
}

.msi-tile-letter-L_L10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_L_L10.png?version=3');
    background-size: cover
}

.msi-tile-letter-NY10 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_NY10.png?version=3');
    background-size: cover
}

.msi-tile-letter-C2 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_C2.png?version=3');
    background-size: cover
}

.msi-tile-letter-G3 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_G3.png?version=3');
    background-size: cover
}

.msi-tile-letter-H8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_H8.png?version=3');
    background-size: cover
}

.msi-tile-letter-M2 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_M2.png?version=3');
    background-size: cover
}

.msi-tile-letter-QU8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_QU8.png?version=3');
    background-size: cover
}

.msi-tile-letter-Z8 {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Z8.png?version=3');
    background-size: cover
}

.msi-tile-letter-Cedilla-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_Cedilla_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-L_L-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_L_L_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-NY-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_NY_blank.png?version=3');
    background-size: cover
}

.msi-tile-letter-QU-blank {
    background-image: url('https://www.mindsportsacademy.com/SportsRoom/content/msi/styles/games/scrabble/Mattel/
Tiles/letter_QU_blank.png?version=3');
    background-size: cover
}



              
            
!

JS

              
                // external js: masonry.pkgd.js

var tilesleft = {
    "A": 9,
    "B": 2,
    "C": 2,
    "D": 4,
    "E": 12,
    "F": 2,
    "G": 3,
    "H": 2,
    "I": 9,
    "J": 1,
    "K": 1,
    "L": 4,
    "M": 2,
    "N": 6,
    "O": 8,
    "P": 2,
    "Q": 1,
    "R": 6,
    "S": 4,
    "T": 6,
    "U": 4,
    "V": 2,
    "W": 2,
    "X": 1,
    "Y": 2,
    "Z": 1,
    "blank": 2
};
var tilesLaid = 0;

$.each(tilesleft, function (key, value) {
  
     
     while(((tilesLaid % 12) + value) > 12)
{
    
    $('.grid').append('<div class="grid-item"></div>');
    tilesLaid++;
    
}

    for (i = 0; i < value; i++) {
        tilesuffix = (key === 'blank') ? key : 'letter-' + key.toUpperCase() + '1';
        $gridItem = $('<div/>', {
            'class': 'grid-item msi-scrabble-board-cell msi-scrabble-tile msi-tile-' + tilesuffix,
        });
        $('.grid').append($gridItem);
        tilesLaid++;

    }
    $('.grid').append('<div class="grid-item"></div>');
tilesLaid++;

});



$('.grid').masonry({
    itemSelector: '.grid-item',
    columnWidth: 30
});

 

              
            
!
999px

Console