
* 
{
    margin: 0;
    padding: 0;
}

html
{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body
{
    margin: 0;
    padding: 0;
    background: black url(../images/home/background.jpg) no-repeat center center;   
	background-attachment: fixed;
    background-size: cover;
}

hr
{
    visibility: hidden;
    clear: both;
}

h1
{
    font-size: 20px;   
    font-weight: normal;
}

h2
{
    font-size: 18px;
    margin-bottom: 15px;
    color: #6dcbef;
}

#title
{
    position: absolute;
    width: 200px;
    top: 10px;
    left: 50%;
    margin-left: -95px;
    z-index: 10;
}

#tagline
{
    position: absolute;
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    text-align: center;
    color: white;
}

#tagline h1
{
    font-size: 28px;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: normal;
}

#tagline #taglineSubtitle
{
    margin: 6px 0 0 0;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d9a94e;
    font-weight: normal;
}

#tagline p
{
    margin: 14px 0 0 0;
    font-size: 16px;
    color: rgb(255 255 255 / 61%);
    line-height: 1.5;
}

#authArea
{
    position: absolute;
    margin: auto;
    top: 330px;
    left: 0;
    right: 0;
    width: fit-content;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

#login_area, #newPlayerArea
{
    position: relative;
    height: 274px;    
    padding: 40px 60px;
    color: white;
    border-radius: 12px;
    backdrop-filter: blur(7px);
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#login_area
{
    width: 350px;
    background-image: linear-gradient(360deg, #273039, #293339f2, #466773ab);
    border: 1px solid #69b9e7;
}    

#newPlayerArea
{
    width: 370px;
    background-image: linear-gradient(360deg, #393427, #393429f2, #736746ab);
    border: 1px solid #e7cc69;
}

#newPlayerLabel, #oldPlayerLabel
{    
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

#newPlayerLabel
{
    color: #d9a94e;
    margin-bottom: 20px;
}

#oldPlayerLabel
{
    color: #4ebed9;
}

#newPlayerArea h3
{
    margin: 8px 0;
    font-size: 22px;
    text-transform: uppercase;
    color: white;
}

#newPlayerArea p
{
    font-size: 13px;
    color: rgb(255 255 255 / 75%);
    line-height: 1.5;
    margin-bottom: 20px;
}

#createEmpireButton, #connectButton
{
    border: none;
    padding: 12px 20px;
    text-transform: uppercase;
    cursor: url(../images/cursor/select.cur), auto;
    transition: all 0.3s ease-out;
}

#createEmpireButton
{
    background-color: #d9a94e;
}

#connectButton
{
    background-color: #2a7aa0;
}

#createEmpireButton:hover
{
    background-color: #f0c169;
    box-shadow: 0 2px 30px 0 rgba(255, 200, 100, 0.8);
}

#connectButton:hover
{
    background-color: #3a9ad0;
    box-shadow: 0 2px 30px 0 rgba(83, 187, 247, 0.8);
}

#rememberRow
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

#connectButton
{
    display: block;
    width: 97%;
    box-sizing: border-box;
    text-align: center;
    float: none;
    margin-top: 15px;
}

.sessionButton
{
    border: solid 1px rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    background: none;
    margin-bottom: 10px;
}

.sessionButton:hover
{
    background-color: rgb(108, 148, 183);
    box-shadow: 0 2px 30px 0 rgba(0, 160, 255, 0.8);
}

#form_inputs
{                         
    color: #c5daeb;
}

#form_inputs textarea
{
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: solid 1px #aaa; 
    color: #ffffbd;
    margin-top: 5px;
}

#register_wait
{
    background-color: #193149;
    text-align: center;
    padding: 50px;
    margin: auto;
    margin-top: 20px;
    height: 50px;
    border-radius: 10px;
    border: solid 1px #243e59;
    font-size: 16px;
    color: #cadcef;
}

#register_answer
{
    background-color: rgba(37, 96, 39, 0.5);
    padding: 20px;
    border-radius: 10px;
    color: #dbf4dc;
    border: solid 1px #2a5a2b;
}

.bt-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #222;
    border-top: 2px solid #03A9F4;
    -webkit-animation: 1s spin linear infinite;
    animation: 1s spin linear infinite;
    margin: auto;
    margin-top: 10px;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#login_message
{
    text-align: center;
    line-height: 200%;      
}

#content
{
    position: relative;
    width: 450px;
    top: 20px;
    padding: 30px 80px 50px 80px;
    font-size: 15px;
    margin: auto;
    color: #fdebce;
    margin-bottom: 30px;
    line-height: 150%;
    text-align: left;
    backdrop-filter: blur(6px);
    background-color: #17303fd1;
}

#contentTitle
{
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    margin-bottom: 20px;
}

#contentBack
{
    color: #0095ff;
    cursor: url(../images/cursor/select.cur), auto;
    width: fit-content;
}

#contentBack:hover
{
    color: #6fc3ff;
}

.contentSeparator
{
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

#back
{
    position: relative;
    top: -3px;
    width: 22px;
    height: 26px;
    float: left;
    margin-right: 10px;
    background-image: url(../images/home/back.png);
    cursor: url(../images/cursor/select.cur), auto;
}

#error
{
    color: #FFC4C4;
    font-weight: bold;
}

#topBar
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#menuBar
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: wrap;
}

#forumLinkMobile
{
    display: none;
}

.menu_item, #story
{
    height: 15px;
    margin: 2px;
    cursor: url(../images/cursor/select.cur), auto;
    text-transform: uppercase;
    font-size: 13px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    padding: 5px;
}

.menu_item
{
    color: #ffffff;
    margin-right: 20px;
}

.menu_item img, #story img
{
    height: 21px;
    margin-right: 2px;
    vertical-align: middle;
}

.menu_item:hover, #story:hover
{
    opacity: 1;
}

#story
{                             
    width: 217px;
    padding: 5px;
    color: #f9e5aa;
}

#story img
{
    margin-right: 5px;
}

#storyArea
{
    position: absolute;
    width: 840px;
    height: 640px;
    top: 110px;
    left: 50%;
	margin-left: -420px;
    background-color: #111;
    border: solid 1px #222;
    border-radius: 10px;
    box-shadow: 0px 0px 10px black;
    z-index: 100;
}

#closeHistory
{
	left: 797px;
	top: 2px;
	position: absolute;
	min-width: 0px;
}

#storyContent
{
    width: 800px;
    height: 600px;
    position: absolute;
    left: 20px;
    top: 20px;
    border-radius: 10px;
}

#storyText
{
    position: absolute; 
    top: 200px; 
    left: 50px; 
    width: 660px; 
    height: 340px; 
    border-radius: 10px; 
    background-color: #0000008a;
    backdrop-filter: blur(24px);
    padding: 20px;
    color: white; 
    line-height: 150%;   
    font-size: 14px;
    text-align: justify;
}

#historyTime
{
    font-size: 10px;
}

#historyName
{
    font-size: 14px; 
    font-weight: bold;
}

#historyNext, #historyPrevious
{
    position: absolute;    
    top: 340px;
    cursor: url(../images/cursor/select.cur), auto;
}

#historyPrevious
{
    left: 20px;     
}

#historyNext
{
    left: 650px;     
}

#trailerArea
{
    padding: 20px;
    background-color: black;
    border-radius: 10px;
    border: solid 1px #191a1a;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
}

#trailerVideo
{
    outline: none;
    width: 100%;
}

#trailerClose
{
    position: absolute;
    top: 7px;
    left: 2px;
}

.center
{
    margin: auto;
    text-align: center;
}

#nextTurnArea
{
    position: absolute;
    top: 620px;
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgb(217 169 78 / 40%);
    border-radius: 8px;
    color: #a19784;
    font-size: 12px;
    text-align: center;
    backdrop-filter: blur(6px);
}

#nextTurnCountdown
{
    color: #d9a94e;
    font-weight: bold;
}

#featuresBar
{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 40px 0 40px;
    background-color: rgba(0, 0, 0, 0.62);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 5;
}

.featureItem
{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    max-width: 180px;
}

.featureItem img
{
    margin-bottom: 8px;
    border-radius: 50%;
}

.featureItemYellow img
{
    border: solid 2px #bf9a466b;
    box-shadow: 0 0 16px #ffe18c4f;
}

.featureItemBlue img
{
    border: solid 2px #468bbf6b;
    box-shadow: 0 0 16px #8ce0ff4f;
}

.featureItem h4
{
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: normal;
}

.featureItemBlue h4
{
    color: #a7d3ff;
}

.featureItemYellow h4
{
    color: #ffce71;
}

.featureItem p
{
    font-size: 11px;
    color: rgb(255 255 255 / 70%);
    line-height: 1.4;
}

.featureItemSeparator
{
    width: 1px;
    height: 145px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

@media screen and (max-width: 500px)
{
    body
    {
        min-height: 100vh;
    }

    #topBar
    {
        position: relative;
        justify-content: center;
    }

    #title
    {
        position: relative;
        top: auto;
        left: auto;
        margin: 20px auto 10px auto;
        display: block;
    }

    #tagline
    {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto 10px auto;
    }

    #story
    {
        display: none;
    }

    body .fb_iframe_widget_fluid
    {
        display: none;
    }

    #menuBar
    {
        display: none;
    }

    #forumLinkMobile
    {
        color: #9d9d9d;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 1px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 3px;
    }

    #forumLinkMobile img
    {
        height: 15px;
        width: auto;
    }

    #forumLinkMobile:hover
    {
        opacity: 1;
    }

    #content
    {
        width: auto;
        padding: 30px;
        text-align: left;
    }

    #login_area
    {
        position: relative;
        width: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin: 0 15px 20px 15px;
        padding: 30px 25px;
        box-sizing: border-box;
    }

    #authArea
    {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px;
    }

    #newPlayerArea
    {
        width: auto;
        height: auto;
        margin: 0 15px;
        padding: 30px 25px;
    }

    #nextTurnArea
    {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: auto;
        width: 220px;
        margin-bottom: 15px;
    }

    #featuresBar
    {
        position: relative;
        bottom: auto;
        flex-direction: column;
        align-items: center;
        background-color: #000000a3;
        padding: 20px 20px 30px 20px;
    }

    .featureItemSeparator
    {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape)
{
    #login_area
    {
        padding: 12px 60px;
        margin-top: 20px;
    }
}