@font-face {
    font-family: Pixel;
    src: url('../fonts/PixelPoint.ttf');
}

@font-face {
    font-family: Play;
    src: url('../fonts/Play-Regular.ttf');
}

body,
html {
    margin: 0;
    padding: 0;
    background: #fff;
    height: 100%;
}

#calculator {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: #3a5872;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 1vw;
    box-sizing: border-box;
}

.logo {
    margin-top: 10px;
    margin-left: 15px;
    margin-bottom: 5px;
    float: left;
    font-style: bold;
    font-weight: 700;
    font-family: 'Play', 'Russo One', sans-serif;
    font-size: 1.4em;
    color: #acb4c1;
    -webkit-user-select: none;
}

.v {
    font-size: 0.6em;
    margin-top: 20px;
    margin-right: 18px;
    color: #acb4c1;
    float: right;
    font-family: 'Play', 'Russo One', sans-serif;
    -webkit-user-select: none;
}

.raad {
    font-size: 0.7em;
    margin-top: 3px;
    margin-right: 22px;
    color: #acb4c1;
    float: right;
    font-family: 'Play', 'Russo One', sans-serif;
}

.form-control {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.calc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#display-box {
    position: relative;
    padding: 10px;
    width: auto;
    min-height: 15vh;
    margin-bottom: 10px;
    font: 8vh bold;
    font-family: "Pixel";
    text-align: right;
    border-radius: 5px;
    background: #b6d1c2;
    box-shadow: 0px 0px 40px #2b4753;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.notification {
    position: absolute;
    z-index: 1;
    left: 65px;
    top: 58px;
    font-size: 12px;
    font-family: "Pixel";
}

.calc-rad {
    position: absolute;
    padding: 2px;
    padding-left: 5px;
    bottom: 2px;
    font-size: 14px;
    line-height: 14px;
    outline-width: 5px;
}

.calc-hold {
    position: absolute;
    z-index: 1;
    right: 8px;
    top: 58px;
    font-size: 12px;
    font-family: "Pixel";
}

.calc-top {
    margin: 7px;
    display: inline-block;
}

.key-section {
    flex: 1;
    display: flex;
    gap: 1vw;
}

.calc-left {
    flex: 2.3;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 1vw;
    box-sizing: border-box;
}

.sign {
    position: absolute;
    left: 39px;
    bottom: 4px;
    font-size: 8px;
    font-family: inherit;
    color: inherit;
}

.calc-down {
    margin: 0;
    display: flex;
}

.calc-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1vw;
}



.trigo-keys {
    font-size: 2.5vh;
    color: #fff;
    margin: 0;
    cursor: pointer;
    background: #2b4753;
    border: 1px solid #1a2f38;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Play', 'Russo One', sans-serif;
}

.calc-second {
    background-color: #222;
    width: 100%;
    height: 100%;
    font-size: 2em;
    color: #d86672;
    margin: 3px;
    cursor: pointer;
    background: #2b4753;
    border: 1px solid #1a2f38;
    border-radius: 5px;
    display: inline-block;
    font-family: 'Play', 'Russo One', sans-serif;
    vertical-align: middle;
}

.trigo-keys:hover {
    background: #345361;
    border: 1px solid #1a2f38;
    border-radius: 5px;
}

.trigo-keys:active {
    font-size: 1em;
    color: #fff;
    background: #2b4753;
    border: 1px solid #000;
    border-radius: 5px;
}

.keys {
    padding: 0px;
    color: #fff;
    font-family: 'Play', 'Russo One', sans-serif;
    font-size: 3.5vh;
    cursor: pointer;
    margin: 0;
    width: auto;
    height: auto;
    border: 2px solid #697394;
    border-radius: .6em;
    background: #8696a5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keys:hover {
    color: #fff;
    background: #91a4b5;
}

.keys:active {
    color: #fff;
    background: #758492;
    border: 2px solid #3f4969;
}

.keys2 {
    background: #4a5f73;
}

.keys2:hover {
    background: #52687d;
}

.keys2:active {
    background: #425669;
    border: 2px solid #3f4969;
}

.del-ac {
    background: #c86e78;
    grid-column: span 2;
}

.del-ac:hover {
    background: #da7d88;
}

.del-ac:active {
    color: #fff;
    background: #bb626c;
    border: 2px solid #3f4969;
}

.equal {
    grid-column: span 2;
    /*    background: #3f4661;*/
}

.calc-buttons {
    display: none;
}

.calc-blank {
    position: absolute;
    z-index: -1;
    opacity: 0;
    width: 0px;
    height: 0px;
    padding: 0px;
    margin: 0px;
}

.calc-active {
    box-shadow: 0px 0px 3px #91a4b5;
}

@media (max-width: 768px) {
    .key-section {
        flex-direction: column;
    }

    .calc-left,
    .calc-right {
        width: 100%;
    }

    .calc-left {
        grid-template-columns: repeat(5, 1fr);
        margin-bottom: 1vw;
    }

    .calc-right {
        grid-template-columns: repeat(4, 1fr);
    }

    #display-box {
        min-height: 20vh;
        font-size: 8vh;
    }

    .trigo-keys {
        font-size: 2vh;
    }

    .keys {
        font-size: 3vh;
    }
}

@media (max-width: 480px) {
    .calc-left {
        grid-template-columns: repeat(4, 1fr);
    }

    .calc-right {
        grid-template-columns: repeat(3, 1fr);
    }

    .del-ac,
    .equal {
        grid-column: span 1;
    }
}