@font-face {
    font-family: "OCR";
    src: url("../PuzMono.otf");
}

@font-face {
    font-family: "data";
    src: url("../PuzSansVF.ttf");
}

@keyframes shake {
    from {
        transform: translateY(20px);
    }

    to {
        transform: translateY(0px);
    }
}

/* variables */
:root {
    --bg: #1210ca;
    --primary: #2cf136;
}



@media (orientation: portrait) {
    div.main {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }

    body {
        background-color: var(--bg);
        color: var(--primary);
        box-sizing: border-box;
        margin: 0;
        padding: 10px;
        height: 100%;
        font-family: "OCR";
        background-image: url("images/logo.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    section {
        background-color: rgba(0,0,0,0.5);
        margin-bottom: 20px;
        border: 2px solid var(--primary);
        box-shadow: 0px 0px 10px var(--primary);
    }
    .data {
        display: flex;
        flex-direction: column;
    }
    
    button {
        font-size: 16px;
    }
    .preview {
        height: 25rem;
    }
}

@media (orientation: landscape) {
    div.main {
        display: grid;
        grid-template-columns: repeat(2, 5fr) 3.7fr;
        grid-template-rows: 1fr;
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }

    body {
        background-color: var(--bg);
        color: var(--primary);
        box-sizing: border-box;
        margin: 0;
        padding: 10px;
        font-family: "OCR";
        background-image: url("images/logo.svg");
        background-position: center;
        background-repeat: no-repeat;
    }

    section {
        background-color: rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        border: 2px solid var(--primary);
        height: calc(100vh - 30px);
        box-shadow: 0px 0px 10px var(--primary);
        overflow: scroll;
    }


    
}



.angles {
    grid-area: 1 / 1 / 2 / 2;
}

.outfits {
    grid-area: 1 / 2 / 2 / 3;
}

.data {
    grid-area: 1 / 3 / 2 / 4;
}

h1 {
    margin: 0;
    padding: 10px;
    font-size: 16px;
    border-bottom: 2px solid;
    font-family: "data";
    text-align: center;
}

h2 {
    text-align: center;
    margin: 10px 0px;

}

h3 {
    margin: 0;
    text-align: center;
    font-family: "data";
    padding: 5px;
    font-size: 20px;
    letter-spacing: 2px;;
    border-bottom: 1px solid;
    text-transform: uppercase;
}

h5 {
    font-family: "data";
    margin: 0;
}

.tableSeparator {
    margin: 0;
    text-align: center;
    font-family: "OCR";
    padding: 5px;
    font-size: 12px;
    border-bottom: 1px solid;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#title {
    display: flex;
    justify-content: center;

}

ul {
    margin: 0;
    padding-left: 15px;
}

#title h2 {
    width: 100%;
    font-family: "data";
}

#title img {
    padding: 10px;;
}
.selector {
    display: flex;
    width: 100%;
    font-size: 18px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    justify-content: space-between;
    box-sizing: border-box;
}

.preview {
    flex: 1;
    overflow: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

img.bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
}

.selector b {
    font-family: "data";
}

.selector button {
    display: block;
}

.selector button:hover {
    transform: scale(1.1);
}

.selector button:active {
    transform: scale(0.9);
}

table {
    font-size: 14px;
    width: 100%;
}

td {
    border-bottom: 1px dotted;
    font-family: "data";
}

th {
    font-family: "data";
    border-right: 1px solid;
    border-bottom: 1px dotted;
    text-align: right;
    padding-right: 3px;
}

.rowfit {
    width: 1%;
    white-space: nowrap;
}

.hasTooltip {
    border-bottom: 1px dashed white;
}

section.data {
    display: flex;
    justify-content: initial !important;
}

.hex {
    font-family: "OCR";
    letter-spacing: 1px;
}

.ocr {
    font-family: "OCR";
    font-size: 10px;
}


table tr td {
    border-right: 1px dotted;

}

td button {
    background-color: var(--primary);
    color: black;
    border: 0;
    font-family: "OCR";
}

button:hover {
    background-color: white;
}

button:active {
    background-color: black;
    color: white;
}

.selector button {
    background-color: var(--primary);
    color: var(--bg);
    border: 0;
    border-radius: 30%;
}

h6 {
    margin: 2px;
}
h6 a {
    padding-left: 5px;
    font-family: "data";
    font-weight: normal;
    font-style: italic;
    color: rgba(255,255,255,0.6);
}

h6 a:hover {
    color: rgba(255,255,255,1);
}

.toggle {
    display: inline;
    position: absolute;
    top: 60px;
    left: 20px;
}

.toggle form {
    font-family: "data";
    font-size: 10px;
}

.toggle form input {
    width: 10px;
    height: 10px;
}