﻿body {
	padding: 0;
	margin: 0;
}

/* Set padding to keep content from hitting the edges */
.body-content {
	padding: 30px 15px;
}

h1, h2, h3, h4, p, button, a, input, label {
	font-family: Inder, Arial, sans-serif !important;
}

/*logon määritykset*/
/*.nav-bg > img {
	left: 50%;
	position: relative;
	transform: translateX(-50%);
	box-sizing: border-box;

}*/

.nav-bg {
	 background-image: url(/Images/timehouse_small.jpg);
	 background-repeat: no-repeat;
	 background-position: center;
	 padding: 10px;
	 background-size:25%;
	 height: 150px;

}

/*input- kenttien määritykset*/
#origUrl, #aliasgUrl,
 #search-input,
 #edit-orig-url,
 #edit-alias-url,
 .link-table-filter-input {
	width: 100%;
	display:block;
	max-width:450px;
	padding: 8px 10px;
	margin: 0px 0px 15px;
	box-sizing: border-box;
	border: 3px solid #ccc;
	-webkit-transition: 0.5s;
	transition: 0.5s;
	outline: none;
}

/*ylimääräinen luokka input- kentille, jotka eivät saa olla tyhjiä*/
.yellow-background {
  background-color:yellow;  
}

/*input- kenttien focus- ominaisuudet*/
#origUrl:focus,
 #aliasgUrl:focus,
 #search-input:focus,
 #edit-orig-url:focus,
 #edit-alias-url:focus,
 .link-table-filter-input:focus {
	 border: 3px solid #fff;
	 background-color:#ccedbd; 
}

/*rajapinta painikkeelle omat määritykset*/
.button-rajapinta {
	display:inline-block;
	background-color: #4CAF50;
	text-decoration:none !important;
	text-align:center;
	color: #fff !important;
	border: none;
	padding: 10px;
	border-radius:0.300em;
    margin: 5px 2px 5px 2px;
    font-size: 0.9em !important;
    font-family: Arial !important;
	cursor: pointer;
	transition-duration: 0.3s;
}

/*painikkeiden tyyli*/
.button-small {
	display:inline-block;
	background-color: #4CAF50;
	text-decoration:none !important;
	text-align:center;
	color: #fff !important;
	border: none;
	padding: 10px;
	border-radius:0.300em;
    margin: 5px 2px 5px 2px !important;
    font-size: 0.9em !important;
    font-family: Arial !important;
	cursor: pointer;
	transition-duration: 0.3s;
}

/*painikkeiden tyyli hover- tilassa*/
.button-small:hover {
	color:#000 !important;
	background-color: #95d097;
	box-shadow: 0 5px 16px 0 rgba(0,0,0,0.24), 0 5px 50px 0 rgba(0,0,0,0.19);
}

/*linkkien poisto- ja editointipainikkeiden tyyli*/
.delete-icon, .edit-icon {
	background-image: url(/Images/delete_icon.png);
	background-color: transparent !important;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 50%;
	padding: 0;
	min-width: auto;
	width: 30px;
	height: 30px;
}

/*divien tyyli*/
.paramBox {
    display: block;
    margin: 10px;
	margin-bottom: 10px !important;
    padding: 5px;
}

/*linkkilistan tyyli*/
.link-table-wrapper {
	margin: 0 auto;
	max-width:70%;
	box-shadow: 0 5px 16px 0 rgba(0,0,0,0.24), 0 5px 50px 0 rgba(0,0,0,0.19);
}

/*suodatuksen inputien tyyli*/
.input-wrapper {
	margin-left: 155px;
}

/*rajapintainfon tyyli*/
.rest-api-table {
	width: 100%;
	box-sizing: border-box;
}

/*sivutuksen tyyli*/
.pagination {
	margin-left: 500px;

}

/* ul-elementistä table */
.link-table-wrapper ul, 
.rest-api-table ul {
	display: table;
	margin:0;
	padding:0;
	width:100%;
}

/* li- elementistä table row */
.link-table-wrapper ul > li, 
.rest-api-table ul > li {
	display: table-row;
}

/* otsikkorivin väri */
.link-table-wrapper ul > li.header-row > div, 
.rest-api-table ul > li.header-row > div {
	background:  #5fb962;
	font-weight:bold;
}

/* solujen tyyli */
.link-table-wrapper ul > li > div, 
.rest-api-table ul > li > div {
	background-color: #ccedbd;
	display: table-cell;
	padding: 4px;
	vertical-align: top;
	border-right: 1px solid #ccc;
}

/* joka toinen solu eriväriseksi */
.link-table-wrapper ul > li.alt > div {
	background-color: #fff;
}

/* Lyhyt linkki- ja Kohde- solujen teksti katkeaa */
.link-table-wrapper ul > li > div.alias-cell,
.link-table-wrapper ul > li > div.orig-cell {
	word-break:break-all;
}

#foundTinyUrl-list {
	list-style-type: none;
	display: table;
	margin: 0;
	padding: 5px;
	width: 70%;
}


#foundTinyUrl-list > li {
	box-shadow: 0 5px 16px 0 rgba(0,0,0,0.24), 0 5px 10px 0 rgba(0,0,0,0.19);
	display: table-cell block;
	margin-bottom: 10px !important;
	padding: 10px !important;
	width: 100%;
}


/* Mobile */

@media screen and (max-width: 700px) {

	.nav-bg {
	 background-size:50%;
	}

	.button-rajapinta{
		margin-bottom: -20px !important;
	}

	.pagination {
	margin-left: 100px !important;
	}

	.input-wrapper {
		margin: 30px;
		margin-left: 55px;
	}

	
	#origUrl, #aliasgUrl,
	#search-input,
	#edit-orig-url,
	#edit-alias-url,
	.link-table-filter-input {
		width: 80%;
		
	}

	.link-table-wrapper ul > li {
		display: block;
	}

	.link-table-wrapper ul > li.header-row {
		display:none !important;
	}

	.link-table-wrapper ul > li > div {
		display: block;
		border-bottom: 1px solid #ccc;
		border-left: hidden;
		border-right: hidden;
	}

	 /* mobiilinäkymässä otsikot lihavoituina */
	.link-table-wrapper ul > li > div.date-cell:before,
	.link-table-wrapper ul > li > div.alias-cell:before,
	.link-table-wrapper ul > li > div.orig-cell:before
	{
		display: block;
		font-weight:bold;
	}

	/* mobiilinäkymässä otsikot tekstiä ennen */
	.link-table-wrapper ul > li > div.date-cell:before { content: 'Luonti pvm'; }
	.link-table-wrapper ul > li > div.alias-cell:before { content: 'Lyhyt linkki'; }
	.link-table-wrapper ul > li > div.orig-cell:before { content: 'Kohde'; }
} 

@media (max-width: 992px) {

	.nav-bg {
	 background-size:50%;
	}


	/*siirtää uloskirjautumis- painikkeen ja käyttäjän nimen logon alle pienellä ruudulla*/
	#top {
		margin-top: 120px !important;
	}
	.right{
		margin-top: 110px !important;
	}
	.button-rajapinta{
		margin-left: 100px !important;
	}
}   

@media screen and (min-width: 601px) and (max-width: 999px) {

	.nav-bg {
	 background-size:50%;
	}

	.pagination {
	margin-left: 320px;
	}

	#origUrl, #aliasgUrl,
	#search-input,
	#edit-orig-url,
	#edit-alias-url,
	.link-table-filter-input {
		width: 80%;	
	}

	.input-wrapper {
		margin: 30px;
		margin-left: 90px;
	}
}

@media screen and (min-width: 1200px) and (max-width: 1000px) {

	.nav-bg {
	 background-size:50%;
	}

	.pagination {
	margin-left:430px;
	}

}
/*Mobile - End */


.left-col {
	float: left;
	width: 50%;
}

.left-col-40 {
	float: left;
	width: 40%;
}

.col-100 {
	width: 100%;
}

.left-col-30 {
	float: left;
	width: 40%;
}

.right-col {
	float: right;
	width: 50%;
}

.field-validation-error {
	color: red !important;
}

nav {
	padding: 10px;
}

.left {
	float: left;
}

.right {
	float: right;
}

.login-title {
	padding-top: 15px;
	text-size-adjust:50%;
	text-align: center;
	font-family: Inder, Arial, sans-serif;
}

footer {
	margin-top: 30px;
}

.login-wrapper {
	max-width: 400px;
	width:100%;
	height: 340px;
	background: #e4e4e4 linear-gradient(hsla(0,0%,100%, 0.4), transparent);
	margin: 15px auto;
	border-radius: .5em;
	box-shadow: 10px 10px 5px #dad9d9;
}

	.login-wrapper .row-area {
		text-align: center;
		height: 50px;
		display: block;
		margin-top: 20px;
		margin-bottom: 30px;
	}

.row-area input {
	height: 50px;
	padding-left: 10px;
	width: 80%;
	border: 0;
	box-sizing:border-box;
}

.navbar .navbar-collapse {
  text-align: center;
}

.nav-bg-green {
	background-color: antiquewhite;
	border-radius: 0.3em;
}

.clear, .nav-bg:after {
	content: ' ';
	clear: both;
	display: block;
}


nav a {
	color: white;
}
/* Set width on the form input elements since they're 100% wide by default 

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    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 */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
	box-sizing: border-box;
}

.edit-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
	border-radius: 3%;
    width: 30%;
	min-width:150px;
	max-width:300px;
	box-sizing: border-box;
}

th {margin-bottom:5px;}

/* The Close Button */
.close-modal {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
/*end - modal*/
