/* Start with small resolution and adjust with javascript later
   Target screen size: 1136x640 (modern iphones 5 and up)
 */
#page-layout { width: 1136px; height: 640px; }
#page-body { width: 1136px; height: 605px; font-size: 12px; }
#page-header { width: 1136px; height: 20px; font-size: 12px; }
#page-footer { width: 1136px; height: 15px; font-size: 10px; }

#game-board { width: 1136px; height: 605px; }
#game-overlay { width: 1136px; height: 605px; }

/* Can adjust this later with either media, javascript, or a little of both */


/* Standard style configuration; These do not change based on screen resolution */
#page-layout
{
    position: relative;
}
#page-header
{
    border-bottom-width: 1px;
    border-bottom-color: #000000;
    border-bottom-style: solid;
}
#page-header-title
{
    font-weight: bold;
    font-size: 15px;
    padding-left: 20px;
    padding-right: 20px;
}
#page-header a
{
    color: #000000;
    text-decoration: none;
}
#page-header a:visited,a:hover
{
    color: #000000;
    text-decoration: none;
}
#page-body
{
    position: relative;
}
#page-footer
{
    border-top-width: 1px;
    border-top-color: #000000;
    border-top-style: solid;
}

/* Styles for the main game windows */
#game-board
{
    position: absolute;
    background-color: #f1f1f1;
}
#game-overlay
{
    position: absolute;
}
#game-player-hand-overlay
{
    position: absolute;
}

/* This is for the section that displays text for the player to announce winner */
#game-winner-announce
{
    width: 100%;
    height: 100px;
    line-height: 100px;
    margin-top: 20px;
}
#game-winner-announce p
{
    width: 400px;
    height: 75px;
    font-size: 25px;
    margin: auto;
    line-height: 1.5;
    text-align: center;
}

/* Main menu styles */
#mainmenu
{
    width: 110px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    background-color: #BDBDBD;
}
#mainmenu button
{
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100px;
    height: 50px;
    position: relative;
    margin: 5px;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    background-color: #FFFFFF;
}

/* Configuration menu styles */
#game-config-form
{
    width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    background-color: #BDBDBD;
}
#game-config-buttondiv
{
    width: 100%;
    display: flex;
    flex-direction: row;
}
#game-config-form button
{
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100px;
    height: 50px;
    margin-top: 5px;
    margin-left: 0;
    margin-right: 5px;
    margin-bottom: 0;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    background-color: #FFFFFF;
}
#game-config-form label
{
    background-color: #2C3E50;
    color: #FFFFFF;
    padding-top: 2px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 2px;
    border: 0;
    border-radius: 4px;
}
#game-config-cardsort-group
{
    -webkit-appearance: none;
    -mox-appearance: none;
    padding: 5px;
    border: 1px solid #000000;
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
}
#game-config-cardsort-group legend
{
    color: #FFFFFF;
    background-color: #2C3E50;
    border: 0;
    border-radius: 4px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
}
#game-config-cardsort-group label
{
    background-color: transparent;
    color: #000000;
}
#game-config-cardsort-npcdiv
{
    margin-top: 10px;
    margin-left: 0;
}
#game-config-cardsort-npcdiv span
{
    margin-left: 10px;
}
#game-config-cardsort-npcselectspan
{
    /* This needs to override the above span */
    margin-left: 0;
    background-color: #2C3E50;
    color: #FFFFFF;
    padding-top: 4px;
    padding-right: 10px;
    padding-bottom: 4px;
    border: 0;
    border-radius: 4px;
}
#game-config-cardsort-npcselectspan label
{
    color: #FFFFFF;
    margin-left: 0;
}


/* Option menu when between hands */
#game-option-menu-1
{
    width: 220px;
    /*height: 50px;*/
    position: relative;
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: auto;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    background-color: #BDBDBD;
}

#game-option-menu-2
{
    width: 330px;
    /*height: 120px;*/
    position: relative;
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: auto;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    background-color: #BDBDBD;
}

/* Buttons should have uniform looks to them */
#game-option-menu-1 button
{
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100px;
    height: 50px;
    position: relative;
    margin: 5px;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    background-color: #FFFFFF;
    clear: all;
}
#game-option-menu-2 button
{
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100px;
    height: 50px;
    position: relative;
    margin: 5px;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    background-color: #FFFFFF;
    clear: all;
}



/* Styles for the popups */
/* This was basically taken from w3schools.com with some modification */
#popup-modal-background
{
    /*position: absolute;*/
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#popup-modal-container
{
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



/* Styles for the user information forms */








