@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600');

body, html {
	height: 100%;
}
body {
	margin: 0px auto;
	background: url('../img/welcome-bg.jpg') right top no-repeat #FAFAFA;
    background-size: contain;
	font-size: 16px;
	color: #777777;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
}
body[dir=rtl] {
    background-position: left top;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

input,select,option,p,form,ul,li,h1,h2,h3,h4,h5,h6,td,img,table {
	margin: 0;
	padding: 0;
	border: 0;
}
::selection {
	background: #707070;
	color: white;
}
::-moz-selection {
	background: #707070;
	color: white;
}

img {
	vertical-align: middle;
}

a:link,
a:visited {
	color: #cda154;
	text-decoration: none;
	font-size: 1em;
	cursor: pointer;

	transition: color 0.3s ease;
}
a:hover,
a:active {
	color: black;
}

.d-flex {
  display: -ms-flexbox !important;
  display: flex !important;
}

.main-wrapper {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    align-items: left;
}

.welcome {
    margin-top: 6%;
}

#logo img {
    max-width: 100%;
}

h3 {
	color: #242221;
	margin-top: 55px;
	font-size: 1.625em;
	font-weight: 400;
}
nav.buttons {
	margin-top: 62px;
}

a.button {
	background: #c4aa77;
    height: 44px;
    padding: 0 60px 2px;
    color: white;
    font-size: 0.813em;
    text-transform: uppercase;
    font-weight: 300;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    -webkit-appearance: none;
    border-radius: 4px;
    -webkit-font-smoothing: antialiased;
    font-weight: 600;
    line-height: 42px;
    display: inline-block;

    transition: background 0.3s ease;
}
a.button:hover {
	background: #cda154;
	text-decoration: none;
}
a.exit {
	color: #cc0000;
	padding-left: 99px;
	padding-right: 1px;
    margin-left: 30px;
    font-weight: 400;
}
body[dir=rtl] a.exit {
    margin-left: 0;
    margin-right: 30px;
}
a.exit:hover {
	color: #c4aa77;
}

div.message,
div.cp {
	font-size: 0.875em;	
    font-weight: 400;
}
div.message {
	line-height: 22px;
	margin-top: 65px;
}
div.cp {
	margin: 60px 0 20px;
}
div.cp a {
    color: #777777;
}

@media screen and (max-width: 767px) {
    body {
        background: #FAFAFA;
    }
    .main-wrapper {
        max-width: 480px;
        min-width: 320px;
        text-align: center;
    }
    .welcome {
        margin-top: 50px;
    }
    .welcome > div {
        padding: 0 20px;
    }
    .message br {
        display: yes;
    }
    nav.buttons {
        margin-top: 42px;
    }
    a.button,
    a.exit {
        width: 70%;
    }
    a.exit {
        display: block;
        margin: 30px 0 0 0 !important;
    }
    div.message {
        margin-top: 40px;
    }
    div.cp {
        margin-top: 30px;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .main-wrapper {
        max-width: 720px;
    }
    body {
        background-position: calc(100% + 110px);
    }
    body[dir=rtl] {
        background-position: -110px top;
    }
}
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .main-wrapper {
        max-width: 940px;
    }
}
@media screen and (min-width: 1200px) {
    .main-wrapper {
        max-width: 1140px;
    }
}
@media screen and (min-width: 1440px) {
    .main-wrapper {
        max-width: 1380px;
    }
    body {
        background-position: calc(100% - 200px);
    }
    body[dir=rtl] {
        background-position: 100px top;
    }
}

/* Dark Mode */
.dark-theme {
    color: #A7A6A6;
    background-color: #211f1e;
    background-image: url('../img/welcome-bg-dark.jpg');
}
.dark-theme a {
    color: #FF4DAA;
}
.dark-theme a:hover {
    color: #FF9B34;
}
.dark-theme a.button {
    background-color: #FFAA53;
    color: #111111;
}
.dark-theme a.button:hover {
    background-color: #FFCA94;
}
.dark-theme h3 {
    color: white;
}
.dark-theme div.cp a {
    color: #A7A6A6;
}
@media screen and (max-width: 767px) {
    body.dark-theme {
        background: #211f1e;
    }
}
