﻿body
{
    background: #282828;
    font-family: Arial, Helvetica, sans-serif;
    color: lightgrey;
    margin: 0;
    user-select: none;
}

button
{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border-style: none;
}

h1
{
    margin: 5% auto 10% auto;
    grid-area: a;
}

input[type=number]
{
    width: 92.8px;
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button
{
    -webkit-appearance: none;
}

input[type=checkbox]
{
    width: fit-content;
    margin: 0;
}

select
{
    width: 100px;
}

#btnMenu
{
    background-color: rgb(208, 09, 09);
    color: white;
}

#btnMenu:hover
{
    background-color: rgb(160, 0, 0);
    cursor: pointer;
}

#btnMenu2
{
    display: none;
    background-color: rgb(208, 09, 09);
    color: white;
}

#btnMenu2:hover
{
    background-color: rgb(160, 0, 0);
    cursor: pointer;
}

#btnConfirmGuess
{
    background-color: rgb(40, 156, 40);
    color: white;
}

#btnConfirmGuess:hover
{
    background-color: green;
    cursor: pointer;
}

#btnConfirmGuess:disabled
{
    background-color: gray;
    color: white;
}

#btnConfirmGuess:disabled:hover
{
    cursor: not-allowed;
}

#btnNextRound
{
    background-color: dodgerblue;
    color: white;
}

#btnNextRound:hover
{
    background-color: rgb(24, 107, 190);
    cursor: pointer;
}

#btnNewGame
{
    background-color: dodgerblue;
    color: white;
}

#btnNewGame:hover
{
    background-color: rgb(24, 107, 190);
    cursor: pointer;
}

#btnReady
{
    background-color: rgb(40, 156, 40);
    color: white;
}

#btnReady:hover
{
    background-color: green;
    cursor: pointer;
}

#btnReady:disabled
{
    background-color: gray;
    color: white;
}

#btnReady:disabled:hover
{
    cursor: not-allowed;
}

#btnRepeatGame
{
    background-color: dodgerblue;
    color: white;
}

#btnRepeatGame:hover
{
    background-color: rgb(24, 107, 190);
    cursor: pointer;
}

#btnShowSummary
{
    background-color: dodgerblue;
    color: white;
}

#btnShowSummary:hover
{
    background-color: rgb(24, 107, 190);
    cursor: pointer;
}

#btnStartCustom
{
    margin: auto auto 0 auto;
    background-color: rgb(40, 156, 40);
    color: white;
    grid-area: bb;
}

#btnStartCustom:hover
{
    background-color: green;
    cursor: pointer;
}

#cnvGuess
{
    width: 100%;
}

#cnvMap
{
    width: 100%;
}

#dvButtons
{
    margin: 0;
    height: 10%;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 5%;
}

#dvCheckBoxes
{
    display: flex;
    flex-direction: row-reverse;
    height: 22px;
    padding: 2.5% 0 2.5% 0;
}

#dvCustomMode
{
    width: max(50%, 600px);
    display: grid;
    grid-template-areas: "a . . . ."
                         "b c . d d";
}

#dvCustomLabels
{
    display: grid;
    grid-template-columns: 1fr;
    grid-area: b;
}

#dvCustomParameters
{
    display: grid;
    grid-template-columns: 1fr;
    grid-area: c;
}

#dvCustomSubmit
{
    grid-area: d;
    display: grid;
    grid-template-areas: "aa"
                         "bb"
                         "bb";
    grid-template-rows: repeat(3, 1fr);
    gap: 5%;
}

#dvGameInfo
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#dvGameInfo > p
{
    margin-bottom: 0;
}

#dvGameModes
{
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10%;
    justify-items: center;
}

#dvPremadeModes
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5%;
    width: 100%;
}

#gaLeft
{
    border-width: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
}

#gaLeftBottom
{
    display: grid;
    grid-template-rows: 5fr 1fr;
}

#rrTitle
{
    margin-bottom: 0;
    padding: 10px;
    background: #444444;
    font-size: 2vmin;
}

#roundResults
{
    overflow: auto;
    list-style-type: none;
    background: #444444;
    flex: 1 1 0;
    min-height: 30px;
    padding: 10px;
    margin-top: 0;
    user-select: text;
}

#shareCodeInput
{
    grid-area: aa;
    width: auto;
}

#welcomeArea
{
    display: flex;
    flex-direction: column;
    width: 90vw;
    height: 43vw;
    max-height: 90vh;
    max-width: min(182.25vh, 75%);
    margin: 2.5% auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.premadeMode
{
    border-style: solid;
}

.btnStartGame
{
    display: grid;
    grid-template-rows: 1fr 2fr;
    text-align: start;
    background-color: rgb(40, 156, 40);
    color: white;
    font-weight: normal;
}

.btnStartGame:hover
{
    background-color: green;
    cursor: pointer;
}

.btnStartGame > h3
{
    text-align: center;
}


/* @media (orientation : landscape)
{ */
#gameArea
{
    display: none;
    grid-template-columns: 1fr 1fr;
    grid-gap: 2.5%;
    /*aspect ratio of 2.025/1, good enough for what i want to show. 2.025 because grid gap */
    /*https://stackoverflow.com/questions/20590239/maintain-aspect-ratio-of-div-but-fill-screen-width-and-height-in-css*/
    width: 90vw;
    height: 43vw;
    max-height: 90vh;
    max-width: 182.25vh;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
/*}*/

/* @media (orientation : portrait)
{
    #gameArea
    {
        display: none;
        grid-gap: 2.5%;
        width: 90vw;
        height: 270vw;
        max-height: 90vh;
        max-width: 40vh;
        margin: auto;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
} */
