:root {
  --frame-width: 400px ;
  --frame-height: 600px;
}

html {
      background-color: rgb(32, 32, 32);
  background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black), linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black), linear-gradient(to bottom, rgb(8, 8, 8), rgb(32, 32, 32));
  background-size: 10px 10px, 10px 10px, 10px 5px;
  background-position: 0px 0px, 5px 5px, 0px 0px;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
body {
    box-sizing: border-box;
    font-size: 20px;
    font-family: arial, sans-serif;
    /*background: #000;*/

    background-color: rgba(255, 255, 255, .1);
}
body * {
    box-sizing: border-box;
    touch-action: manipulation;
}
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
    supported by Chrome, Edge, Opera and Firefox */
}
#ver {
    display: block;
    position: absolute;
    font-size: 12px;
    bottom: 2px;
    right: 2px;
    color: #fff;
}
h3 {
    text-align: center;
    margin: 10px 0;
    color: #fff;
}
.frame {
    position: relative;
    width: var(--frame-width);
    height: var(--frame-height);
    margin: 0 auto;
    margin-top: calc((100vh / 2) - (var(--frame-height) / 2));
    margin-left: calc((100vw / 2) - (var(--frame-width) / 2));
    padding: 10px;
    border-radius: 8px;
    background: #333;
    -webkit-box-shadow: 5px 5px 13px -4px rgba(0,0,0,0.59);
    box-shadow: 5px 5px 13px -4px rgba(0,0,0,0.59);
}

.frame .inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
}

input {
    width: 100%;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background: #929d97;
    color: #333;
    padding: 4px 10px;
}
input:focus {
    outline: pink;
}
.row {
    margin-bottom: .5%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: stretch;
    column-gap: 10px;
    height: 16%;
    padding-top: 5px;
}
.col {
    flex-grow: 1;
    width: 25%;
}
.col-full {
    width: 100%;
}

.btn {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;

    background-color: #555;

    border: solid 1px #000;
    border-radius: 8px;

    -webkit-box-shadow: 5px 5px 4px -3px rgba(0,0,0,0.26); 
    box-shadow: 5px 5px 4px -3px rgba(0,0,0,0.26);

    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.btn.dark {
    background-color: #444;
}
.btn.calc {
    background-color: #770000;
}

.btn:active {
    background-color: #494949;
    border-width: 2px;
}
.btn.dark:active {
    background-color: #383838;
    border-width: 2px;
}
.btn.calc:active {
    background-color: #690000;
}

.btn.hide {
    display: none;
}

/*@media screen and (max-height: 1080px) {*/
    /*:root {*/
      /*--frame-width: 460px ;*/
      /*--frame-height: 690px;*/
    /*}*/
/*}*/

/*@media screen and (max-height: 900px) {*/
    /*:root {*/
      /*--frame-width: 460px ;*/
      /*--frame-height: 690px;*/
    /*}*/
/*}*/

/*@media screen and (max-height: 720px) {*/
    /*:root {*/
      /*--frame-width: 460px ;*/
      /*--frame-height: 690px;*/
    /*}*/
/*}*/

/*@media screen and (max-height: 600px) {*/
    /*:root {*/
      /*--frame-width: 360px ;*/
      /*--frame-height: 540px;*/
    /*}*/
/*}*/

/*@media screen and (max-width: 1368px) {*/
    /*:root {*/
      /*--frame-width: 400px ;*/
      /*--frame-height: 600px;*/
    /*}*/
/*}*/

/*@media screen and (max-width: 1024px) and (max-height: 600px) {*/
    /*:root {*/
      /*--frame-width: 360px ;*/
      /*--frame-height: 540px;*/
    /*}*/
/*}*/

/*@media screen and (max-width: 480px) {*/
    /*:root {*/
      /*--frame-width: 320px ;*/
      /*--frame-height: 480px;*/
    /*}*/
/*}*/

/*@media screen and (max-width: 320px) {*/
    /*:root {*/
      /*--frame-width: 260px ;*/
      /*--frame-height: 390px;*/
    /*}*/
/*}*/




@media screen and (orientation: landscape ) and (min-height: 320px) {
    .frame {
        transform: scale(.5);
    }
}

@media screen and (orientation: landscape ) and (min-height: 600px) {
    .frame {
        transform: scale(.9);
    }
}

@media screen and (orientation: landscape ) and (min-height: 700px) {
    .frame {
        transform: scale(1.1);
    }
}

@media screen and (orientation: landscape ) and (min-height: 900px) {
    .frame {
        transform: scale(1.4);
    }
}

@media screen and (orientation: landscape ) and (min-height: 912px) {
    .frame {
        transform: scale(1.4);
    }
}

@media screen and (orientation: landscape ) and (min-height: 1080px) {
    .frame {
        transform: scale(1.7);
    }
}










@media screen and (orientation: portrait ) and (min-width: 390px) {
    .frame {
        transform: scale(.9);
    }
}

@media screen and (orientation: portrait ) and (min-width: 393px) {
    .frame {
        transform: scale(.9);
    }
}

@media screen and (orientation: portrait ) and (min-width: 540px) {
    .frame {
        transform: scale(1.1);
    }
}

@media screen and (orientation: portrait ) and (min-width: 768px) {
    .frame {
        transform: scale(1.6);
    }
}

@media screen and (orientation: portrait ) and (min-width: 912px) {
    .frame {
        transform: scale(2.1);
    }
}

