/* html objects */

* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    background: #FAFAFA;
    padding: 0;
    margin: 0;
	height: 100%;
    width: 100%;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
    color: #1976d2;
}

h1 {
    color: #444;
    font-size: 2rem;
}

input[type=text], input[type=email], input[type=password]  {
	border: thin solid black;
	border-radius: .6rem;
	box-sizing: border-box;
	padding: .5rem;
}

/* single objects */

#back-arrow {
    height: 2rem;
    margin-right: .8rem;
}

#body {
    box-sizing: border-box;
    display: inline-block;
    font-size: 1.6rem;
    height: calc(100% - 3rem);
    margin: 3rem 0 0 0;
    width: 100%;
}

#body-left {
    background: white;
    display: block;
    padding: 2.4rem;
    width: 100%;
    flex: 1;
}

#body-right {
    background: #bbdefb;
    display: block;
    width: 33.33333%;
    max-width: 340px;
    padding: 16px;
}

#bottom-nav {
    background: #e3f2fd;
    border-top: 2px solid #0069c0;
    bottom: 0;
    display: flex;
    justify-content: space-evenly;
    height: 4em;
    position: fixed;
    width: 100%;
}

#bottom-nav a {
    align-items: center;
    color: white;
    display: flex;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 5rem;
    padding: 1rem;
    text-decoration: none;
}

#bottom-nav a img {
    height: 2.5rem;
}

#hyplern-title {
    display: none;
}

#logo-small {
    height: 2rem;
}

#profile-head {
	height: 2rem;
    padding: 0 1rem;
    width: 2rem;
}

#profile-head:hover {
    filter: sepia(80%);
}

#title {
	align-items: center;
	background: #1976d2;
	display: flex;
	height: 3rem;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
}

#title-brand {
    align-items: center;
    color: white;
    display: flex;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 3.5rem;
    padding: 0 1rem;
    text-decoration: none;
}

#title-middle {
    flex-grow: 1;
    text-align: right;
}

#title-right {
    justify-content: center;
    position: relative;
}

/* classes */

.language-current:hover {
    border-color: #6ec6ff;
    cursor: pointer;
}

.language-current:hover + .language-container {
    display: block;
}

.language-flag {
    border: 4px solid white;
    border-radius: 5rem;
    height: 2rem;
    line-height: 2rem;
    transition: .4s;
    width: 2rem;
}

.language-flag:hover {
	border-color: #90CAF9;
}

.language-flag-large {
	border: 5px solid #eee;
	border-radius: 1rem;
	color: white;
	font-size: 4rem;
	font-weight: bold;
	height: 7.6rem;
	margin: 0.5rem;
	transition: .2s;
	width: 10rem;
}

.language-flag-large:hover {
	border-color: #90CAF9;
}

/* basic styles shared throughout pages */

.background-white {
    background: white;
}

.back-icon {
    margin-right: .8em;
}

.back-icon::before {
    content: "<";
    font-size: 3rem;
    vertical-align: middle;
}

.back-link {

}

.back-text {
    vertical-align: middle;
}

.block {
	display: block;
}

.container {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1200px;
	width: 100%;
}

.container-center {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-flex {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    max-width: 1400px;
    height: 100%;
}

.flex {
	display: flex;
}

.menu-container {
    position: relative;
    display: flex;
    align-content: center;
}

.menu-icon {
    transition: .4s;
}

.menu-icon:hover {
    cursor: pointer;
}

.menu-options-container {
    background: white;
    border: thin solid #606060;
    border-radius: 1rem;
    display: none;
    font-size: 1.6rem;
    right: 0;
	max-height: 32rem;
    overflow-y: hidden;
    position: absolute;
    top: 3rem;
}

.menu-options-fixed {
	background: #E1BEE7!important;
	box-sizing: border-box;
	bottom: 0;
	color: #333;
	text-align: center;
	transition: .4s;
}

.menu-options-fixed:hover {
	background: #CE93D8!important;
}

.menu-options-fixed:hover {
	color: black;
}

.menu-options-inner-container {
    overflow-y: scroll;
	max-height: 32rem;
}

.menu-row {
    align-items: center;
    background: #e3f2fd;
    display: flex;
    padding: 1rem;
    transition: .4s;
}

.menu-row:hover {
    background: #bbdefb;
    cursor: pointer;
}

.menu-row:hover .language-flag {
	border-color: #6ec6ff;
}

.menu-row:not(:last-child) {
    border-bottom: thin solid #606060;
}

.mr-1 {
	margin-right: 1rem;
}

.mr-2 {
	margin-right: 2rem;
}

.p-1 {
	padding: 1rem;
}

.sub-title {
    display: none;
}

.sub-title a {
    color: #888;
    transition: .4s;
}

.sub-title a:hover {
    color: #0d47a1;
}

.sub-title div {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text {
	color: #333;
	font-size: 1.5rem;
	padding: .5rem 0;
}

.text-sm {
	font-size: 1.1rem;
	padding: .5rem 0;
}

*:focus {
    outline: none;
}

/* Buttons */

.btn {
    background: #2196f3;
    border-color: #174bf3;
    border-style: solid;
    border-width: 0 0 4px;
    border-radius: .8rem;
    font-weight: bold;
    font-variant: small-caps;
    color: white;
    display: inline-block;
    font-size: 1rem;
    margin-right: 5px;
    padding: 5px;
    text-decoration: none;
}

.btn:hover {
    background: #174bf3;
    box-shadow: 0 0 2px black;
    cursor: pointer;
}

.btn-block {
    display: block;
    margin: auto;
    text-align: center;
}

.btn-color1 {
    background: #0E9C42;
    border-color: #0e863d;
}

.btn-color1:hover {
    background: #0e863d;
}

.btn-color2 {
    background: #7814DB;
    border-color: #550E9C;
}

.btn-color2:hover {
    background: #550E9C;
}

.btn-color3 {
    background: #FA2B28;
    border-color: #BA201E;
}

.btn-color3:hover {
    background: #BA201E;
}


.btn-disabled {
    opacity: 50%;
}

/* Desktop */

@media only screen and (min-width: 992px) {
    #back-arrow {
        display: none;
    }

    #body {
		height: calc(100% - 4.5rem);
		margin-top: 4.5rem;
        padding: 0;
    }

    #bottom-nav {
        display: none;
    }

    #hyplern-title {
        display: inline-block;
    }

	#logo-small {
		height: 3rem;
	}

	#profile-head {
		height: 3rem;
		width: 3rem;
	}

	#title {
		height: 4.5rem;
	}

    .btn {
        transition: .4s;
    }

	.btn-block {
		max-width: 20em;
	}

	.language-flag {
		height: 3rem;
		line-height: 3rem;
		width: 3rem;
	}

    .sub-title {
		align-items: center;
        background: #bbdefb;
        display: flex;
        font-size: 1.3rem;
        min-height: 3rem;
        max-width: 100%;
		padding-left: 1rem;
    }
}