*,
*::before,
*::after {
  	margin: 0;
  	padding: 0;
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    font-family: 'roboto', sans-serif;
  	font-size: 10px;
  	-webkit-font-smoothing: antialiased;
  	-moz-osx-font-smoothing: grayscale;
}

body {
  	background-color: #4276c9;
}

a {
	padding: 0 2rem;
	text-decoration: none;
	color: #c1c4c8;
	font-size: 1.6rem;
	font-weight: bold;
}

a:visited {
	padding: 0 2rem;
	text-decoration: none;
	color: #c1c4c8;
	font-size: 1.6rem;
	font-weight: bold;
}

.login {
  	width: 400px;
  	background-color: #ffffff;
  	box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  	margin: 100px auto;
}
.login h1 {
  	text-align: center;
  	color: #5b6574;
  	font-size: 2.4px;
  	padding: 2rem 0 2rem 0;
  	border-bottom: .1rem solid #dee0e4;
}
.login form {
  	display: flex;
  	flex-wrap: wrap;
  	justify-content: center;
  	padding-top: 2rem;
}
.login form label {
  	display: flex;
  	justify-content: center;
  	align-items: center;
  	width: 5rem;
  	height: 5rem;
  	background-color: #3274d6;
  	color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"] {
  	width: 31rem;
  	height: 5rem;
  	border: .1rem solid #dee0e4;
  	margin-bottom: 2rem;
  	padding: 0 1.5rem;
}
.login form input[type="submit"] {
  	width: 100%;
  	padding: 1.5rem;
 	margin-top: 2rem;
  	background-color: #3274d6;
  	border: 0;
  	cursor: pointer;
  	font-weight: bold;
  	color: #ffffff;
  	transition: background-color 0.2s;
}
.login form input[type="submit"]:hover {
	background-color: #2868c7;
  	transition: background-color 0.2s;
}

.navtop {
	background-color: #2f3947;
	height: 6rem;
	width: 100%;
	border: 0;
}
.navtop div {
	display: flex;
	margin: 0 auto;
	width: 100rem;
	height: 100%;
}
.navtop div h1, .navtop div a {
	display: inline-flex;
	align-items: center;
}
.navtop div h1 {
	flex: 1;
	font-size: 2.4rem;
	padding: 0;
	margin: 0;
	color: #eaebed;
	font-weight: bold;
}
.navtop div a {
	padding: 0 2rem;
	text-decoration: none;
	color: #c1c4c8;
	font-size: 1.6rem;
	font-weight: bold;
}
.navtop div a i {
	padding: .2rem .8rem 0 0;
}
.navtop div a:hover {
	color: #eaebed;
}

body.loggedin {
	background-color: #f4f4f4;
}
.content {
	width: 60%;
	margin: 0 auto;
}
.content h2 {
	margin: 0;
	padding: 2.5rem 0;
	font-size: 2.2rem;
	border-bottom: .1rem solid #e0e0e3;
	color: #4a536e;
}
.content h3 {
	margin: 0;
	padding: 2.5rem 0;
	font-size: 1.9rem;
	color: #4a536e;
}

.content p{
    font-size: 1.6rem;
}
.content > p, .content > div {
	box-shadow: 0 0 .5rem 0 rgba(0, 0, 0, 0.1);
	margin: 2.5rem 0;
	padding: 2.5rem;
	background-color: #fff;
}
.content > p table td, .content > div table td {
	padding: .5rem;
}
.content > p table td, .content > div table td {
	font-weight: bold;
	color: #4a536e;
	padding-right: 1.5rem;
}
.content > div p {
	padding: .5rem;
	margin: 0 0 1rem 0;
}

/* Section is used for centering items */
.section{
    width: 100%;
    height: 100vh;
    background-color: blue;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-container{
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.accordion-item{
    background-color: #2980b9;
    border-radius: .4rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: .5rem 2px .5rem rgba(0,0,0,.1);
}

.accordion-link{
    font-size: 1.8rem;
    color: #FFFFFF; /* Fallback color before rgba() */ 
    color: rgba(255,255,255,.8);
    text-decoration: none;
    background-color: #2980b9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
}

.accordion-link i {
    color: #FFFFFF;
    padding: .5rem;
    
}

.accordion-link .fa-minus {
    display: none;
}

/* Hiding the info part as default */
.accordion-info{
    max-height: 0;
    overflow: hidden;
    position: relative;
    background-color:  #154360;
    transition: max-height 350ms;
}

/* Pseudo-element */
.accordion-info::before{
	content: "";
	position: absolute;
	width: .6rem;
	height: 90%;
	background-color: #34495e;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}

.accordion-item .accordion-info p {
    font-size: 1.4rem;
    color: #FFFFFF; /* Fallback color before rgba() */ 
    color: rgba(255,255,255,.6);
    padding: 0 1.5rem;
}

.accordion-item .accordion-info i {
    color: #FFFFFF;
    font-size: 1.5rem;
    padding: .5rem;
    
}

.accordion-item:target .accordion-info{
    max-height: 50rem;
}

/* When more info is clicked (open), don't show the plus icon */
.accordion-item:target .accordion-link .fa-plus{
    display: none;
}

/* When more info is clicked (open), show minus icon */
.accordion-item:target .accordion-link .fa-minus{
    display: block;
}

.allbuttons {
    border: none;
    color: #FFFFFF;
    background-color: #2F3947;
    padding: 1.6rem 3.2rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    font-size: 1.6rem;
    margin: .4rem .2rem;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: .8rem;
}

.allbuttons:hover {
  background-color: #A4A4A4;
  color: #2F3947;
}

.allbuttons i {
    /* Top - Right - Bottom - Left */
	padding: .1rem 1rem .1rem 1rem;
}


.footer {
  width: 30rem;
  margin: 5rem auto;
}

.uusimmat_hakutulokset {
    width: 100%;
}

.uusimmat_hakutulokset a, a:visited {
	padding: 0 2rem;
	text-decoration: none;
	color: #000000;
	color: rgba(0,0,0,.6);
	font-size: 1.6rem;
	font-weight: bold;
}

.uusimmat_hakutulokset table {
    padding: 3rem;
    border: .1rem solid black;
    font-size: 1.3rem;
    text-align: left;
    text-transform: uppercase;
    margin: 2rem auto;
}

/* For zebra-striped tables, use the nth-child() selector and 
add a background-color to all even (or odd) table rows */
.uusimmat_hakutulokset tr:nth-child(even) {
    background-color: #f2f2f2;
}

.content .lomakkeet table {
    padding: 15px;
    text-align: left;
    border: 1px solid black;
    text-transform: uppercase;
    margin: 2rem;
}

.content .lomakkeet th, td {
  padding: 15px;
  text-align: left;
}

.fa-check-circle{
    color: green;
    padding: 1.5rem;
}
.fa-times-circle{
    color: red;
    padding: 1.5rem;
}


.poistononnistuminen {
    /* TO DO */
}

.lisayksenonnistuminen {
    /* TO DO */
}
