/*
*
* @copyright Copyright (c) Open-Xchange GmbH, Germany <info@open-xchange.com>
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.

* You should have received a copy of the GNU Affero General Public License
* along with OX App Suite. If not, see <https://www.gnu.org/licenses/agpl-3.0.txt>.
*
* Any use of the work other than as authorized under this license or copyright law is prohibited.
*
*/

@font-face {
    font-family: 'C64';
    src: url('apps/3rd.party/fonts/c64.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@-webkit-keyframes blink {
    0%   { background: rgb(165, 165, 255); }
    49%  { background: rgb(165, 165, 255); }
    50%  { background: transparent; }
    100% { background: transparent; }
}

.c64 {

    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgb(165, 165, 255);
    z-index: 100000;

    @size: 16px;

    .inner {

        font-family: C64;
        font-size: @size;
        line-height: @size + 2;
        color: rgb(165, 165, 255);
        background-color: rgb(66, 66, 231);

        position: absolute;
        top: 50px;
        bottom: 50px;
        left: 50%;
        width: 640px;
        margin-left: -320px;

        white-space: pre;

        overflow-x: hidden;
        overflow-y: auto;

        .user-select(text);
        outline: 0;
    }

    .cursor {
        position: absolute;
        top: 24 * (@size + 2);
        width: @size;
        height: @size;
        background-color: rgb(165, 165, 255);
        -webkit-animation: blink 1.25s linear 0s infinite;
    }
}

@media (min-width: 1024px) {
    .c64 {
        @size: 20px;
        .inner {
            font-size: @size;
            line-height: @size + 2;
            width: 800px;
            margin-left: -400px;
        }
        .cursor {
            top: 24 * (@size + 2);
            width: @size;
            height: @size;
        }
    }
}
