@media all and (min-height: 480px) and (min-width: 480px) {
    #frame {
        width: 465px;
        height: 465px;
    }

    #right, #left {
        font-size: 25px;
    }

    #instructions {
        font-size: 15px;
        height: 320px;
        top: 100px;
    }

    #stimul {
        font-size: 25px;
        height: 320px;
        top: 100px;
    }

    #stimul img {
        max-height: 300px;
		max-width: 400px;
    }

    #error {
        font-size: 70px;
        bottom: 10px;
    }

    .or {
        font-size: 20px;
    }

    #bottom_instr {
        font-size: 20px;
    }

}

@media all and (min-height: 768px) and (min-width: 768px) {
    #frame {
        width: 752px;
        height: 752px;
    }

    #right, #left {
        font-size: 40px;
    }

    #instructions {
        font-size: 26px;
        height: 540px;
        top: 110px;
    }

    #stimul {
        font-size: 40px;
        height: 540px;
        top: 110px;
    }

    #stimul img {
        max-height: 300px;
		max-width: 400px;
    }

    #error {
        font-size: 120px;
        bottom: 10px;
    }

    .or {
        font-size: 30px;
    }

    #bottom_instr {
        font-size: 30px;
    }
}

#frame {
    margin: -20px auto 20px;
    border: 3px solid #000;
    padding: 5px;
    text-align: center;
    position: relative;
}

#right {
    float: right;
}

#left {
    float: left;
}

#stimul td {
    vertical-align: middle;
    width: 100%;
}

#instructions {
    width: 100%;
    position: absolute;
}

#stimul {
    width: 100%;
    position: absolute;
    overflow-x: hidden;
}

#stimul img {
    text-align: center;
}

#error {
    color: #f00;
    width: 100%;
    position: absolute;
}

.attr {
    color: green;
}

.targ {
    color: black;
}

#bottom_instr {
    text-align: center;
}