* {
    border: 0;
    margin: 0;
    padding: 0;

    font-family: 'sg1414';
    line-height: 1.0;
}

body {
    background-color: black;
    color: white;
}

button {
    background-color: white;
    border: 8px solid transparent;
    border-image: url("../images/border_button.png") 8 8 stretch;
    -webkit-border-image: url("../images/border_button.png") 8 8 stretch;
    cursor: pointer;
    width: 40%;
}

/*button:hover {
    background-color: grey;
}*/

canvas {
    /*border: 2px solid red;
   display: inline;
    position: relative;*/
    vertical-align:top;
}

h1 {
    font-size: 4.10156vw;
}

/* -------------------- */

.font1 {
    font-size: 2.34375vw;
}

.font2 {
    font-size: 3.125vw;
}

/* ---------------------- */

#idintro {
    background-color: #c00;
    border: 0px;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    #visibility: hidden;
}

.col1 {
    float: left;
    padding: 2%;
    padding-top: 6%;
    width: 33%;
}

.col1 img {
    width: 80%;
}

.col2 {
    padding: 2%;
    padding-top: 6%;
    text-align: left;
}

#idinstruction {
    background-color: #c00;
    display: none;
    border: 0px;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

#idtable {
    border: 0px;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

#idtable td {
    padding: 4px;
}

#idtable td:nth-child(1) {
    text-align: right;
    width: 19%;
}

#idtable td:nth-child(2) {
    text-align: left;
    width: 31%;
}

#idtable td:nth-child(3) {
    text-align: right;
    width: 19%;
}

#idtable td:nth-child(4) {
    text-align: left;
    width: 31%;
}

#idtable td img {
    width: 77.25%;
}

.col3 {
    color: black;
    padding-top: 4%;
}

.col4 {
    padding-top: 3%;
    padding-bottom: 2%;
}

/* -------------------- */

#idcontrol {
    background-color: rgba(0,0,0, 0.5);
    color: white;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    text-align: left;
    visibility: hidden;
}

#idcontrol div {
    padding: 0.4%;
}

#col3 {
    float: left;
    width: 50%;
}

#idcontrol img {
    width: 3%;
}

#idcontrol div:last-child {
    text-align: right;
}

#idsound {
    cursor: pointer;
}

/* ------------------ */

.contact {
    color: #ccc;
    font-family: monospace;
    font-size: 0.8em;
    margin-top: 4px;
    text-align: center;
}

#msggreen {
    color: green;
    display: none;
}

#msgred {
    color: red;
    display: none;
}

#msgfinish {
    color: green;
    display: none;
}

#idwarn {
    display: none; /* block */
    text-align: center;
}

#idgame {
    display: none; /* block */
    text-align: center;
}

#box {
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    height: 100px;
    border: 3px solid #73AD21;
}

#idcontent {
    border: 2px solid yellow;
    display: inline-block;
    height: fit-content;
    margin: 0px auto;
    margin-top: 32px;
    position: relative;
    width: fit-content;
}

#btnMusic {
    cursor: pointer;
}

#idmessage {
    display: none; /* block */
    position: absolute;
    top: 0px;
    left: 0px;
    padding-top: 15%;
    text-align: center;
    width: 100%;
    height: 100%;
}

#idmessage div {
    background-color: white;
    border: 1px solid #ccc;
    margin: 0px auto;
    width: 31.25%;
}

#idmessage div p {
    padding: 2%;
}

#idmessage div button {
    border-image: url("../images/border_white.png") 8 8 stretch;
    -webkit-border-image: url("../images/border_white.png") 8 8 stretch;
    width: 64%;
}

/* 1048 = 1024 + 24 kleiner Rand */
@media (min-aspect-ratio: 1024/576) and (max-width: 1048px) {
    .contact { display: none; }
}

@media (max-aspect-ratio: 1024/576) and (min-width: 1024px) {
    .font2 { font-size: 32px; }
    h1 { font-size: 48px; }
    .font1 { font-size: 24px; }
}

@media (min-aspect-ratio: 1024/576) and (min-height: 576px) {
    .font2 { font-size: 32px; }
    h1 { font-size: 48px; }
    .font1 { font-size: 24px; }
}

@media (min-aspect-ratio: 1024/576) and (max-height: 576px) {
    .font2 { font-size: 5.55555vh; }
    h1 { font-size: 7.29166vh; }
    .font1 { font-size: 4.166658vh; }
}
