/**
 * Created by jicemoon on 2015/9/1.
 */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
}

.clearfix {
    zoom: 1;
}
.clearfix:after, .clearfix:before {
    clear: both;
    content: "";
    display: block;
}

.layoutRoot{
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.layoutRoot .game{
    background-color: #ffffff;
    position: relative;
    max-width: 500px;
    width: 100%;
    height: 100%;
    max-height: 800px;
}
.layoutRoot .game canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.layoutRoot .game .best-score {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 14px;
    color: #888888;
}

.layoutRoot .game .dialog {
    width: 85%;
    max-width: 350px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333333;
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}
.layoutRoot .game .dialog h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ff6b6b;
}
.layoutRoot .game .dialog p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #cccccc;
}
.layoutRoot .game .dialog .btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.layoutRoot .game .dialog button {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.layoutRoot .game .dialog button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.layoutRoot .game .dialog button:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .layoutRoot .game .dialog {
        width: 90%;
        padding: 15px;
    }
    .layoutRoot .game .dialog h3 {
        font-size: 20px;
    }
    .layoutRoot .game .dialog button {
        padding: 8px 20px;
        font-size: 14px;
    }
}