body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #f7f5ff, #eef6ff);
    color: #222;
}

.page {
    text-align: center;
    padding: 35px 20px 60px;
}

h1 {
    margin-bottom: 10px;
    font-size: 34px;
    letter-spacing: 1px;
}

.intro {
    max-width: 760px;
    margin: 0 auto 30px;
    line-height: 1.6;
    font-size: 16px;
    color: #555;
}

#frame {
    width: 840px;
    margin: 0 auto;
    padding: 18px;
    background-color: #ffffff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

#artboard {
    width: 780px;
    height: 560px;
    margin: 0 auto;
    position: relative;
    background-color: #faf8f1;
    border: 8px solid #111111;
    overflow: hidden;
}

.shape {
    position:absolute;
    box-sizing: border-box;
    border: 4px solid #111111;
}

.circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.square {
    width: 82px;
    height: 82px;
}


.big-square {
    width: 210px;
    height: 210px;
}

.rect-h {
    width: 150px;
    height: 58px;
}

.rect-v {
    width: 40px;
    height: 160px;
}

.bar-h {
    width: 100px;
    height: 18px;
}

.red {
    background-color: #ff4d4d;
}

.blue {
    background-color: #3d6cff;
}

.yellow {
    background-color: #ffd93d;
}

.green {
    background-color: #49d46c;
}

.orange {
    background-color: #ff9636;
}

.pink {
    background-color: #ff58c7;
}

.purple {
    background-color: #8b63ff;
}

.teal {
    background-color: #20c9c3;
}

.cyan {
    background-color: #63e4ff;
}

.lime {
    background-color: #b8ef3c;
}

.white {
    background-color: #ffffff;
}

#c1 { top: 28px; left: 28px; }
#c2 { top: 28px; left: 98px; }
#c3 { top:28px; left: 168px; }

#r1 { top: 26px; left: 260px; }
#r2 { top: 26px; left: 426px; width: 118px; }
#r3 { top: 26px; left: 560px; width: 170px; }

#b1 { top: 145px; left: 38px; }
#b2 { top: 177px; left: 38px; }
#b3 { top: 209px; left: 38px; }
#b4 { top: 241px; left: 38px; }

#s1 { top: 142px; left: 150px; }
#s9 { top: 250px; left: 164px; }
#s10 { top: 330px; left: 118px; width: 124px; }

#big1 { top: 128px; left: 270px; }

#s2 {
    top: 164px;
    left: 304px;
    width: 70px;
    height: 70px;
}

#s3 {
    top: 164px;
    left: 394px;
    width: 70px;
    height: 70px;
}

#s11 { top: 262px; left: 312px; }
#s12 { top: 262px; left: 392px; }

#b5 {
    top: 360px;
    left: 294px;
    width: 170px;
}

#b6 {
    top: 392px;
    left: 294px;
    width: 170px;
}

#c7 { top: 142px; left: 575px; }
#c8 { top: 142px; left: 645px; }
#c9 { top: 218px; left: 575px; }
#c10 { top: 218px; left: 645px; }

#v1 {
    top: 142px;
    left: 712px;
}

#s4 { top: 312px; left: 580px; }

#s5 {
    top: 312px;
    left: 670px;
    width: 70px;
    height: 70px;
}

#r5 {
    top: 404px;
    left: 568px;
    width: 172px;
}

#s6 { top: 430px; left: 36px; }
#s7 { top: 430px; left: 128px; }
#s8 { top: 430px; left: 220px; }

#c11 { top: 444px; left: 338px; }
#c12 { top: 444px; left: 408px; }
#c13 { top: 444px; left: 478px; }

#b7 {
    top: 500px;
    left: 340px;
    width: 74px;
}

#b8 {
    top: 500px;
    left: 428px;
    width: 74px;
}

.caption {
    margin-top: 18px;
    font-size: 14px;
    color: #666;
}

.back-link a {
    color: #2f57c8;
    text-decoration: none;
    font-weight: bold;
}

.back-link a:hover {
    color: #ff4d4d;
    text-decoration: underline;
}

.back-link a:focus {
    outline: 3px solid #2f57c8;
    outline-offset: 3px;
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    #frame {
        width: 100%;
        max-width: 840px;
        overflow-x: auto;
    }

    #artboard {
        transform: scale(0.75);
        transform-origin: top left;
    }
}

@media screen and (max-width: 600px) {
    #frame {
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #artboard {
        transform: scale(0.48);
        transform-origin: top left;
    }
}