
:root {
  color-scheme: light dark;
}

body{
	font-family: sans-serif;
}

a {
  color: #000;
  position: relative;
  text-decoration: none;
}

@media (hover: hover) {
	a::before {
	  background: hsl(45 100% 70%);
	  content: "";
	  inset: 0;
	  position: absolute;
	  transform: scaleX(0);
	  transform-origin: right;
	  transition: transform 0.2s ease-in-out;
	  z-index: -1;
	}

	a:hover::before {
	  transform: scaleX(1);
	  transform-origin: left;
	}

	.title:hover {
	  transform: scale(1.1);
	  z-index: 1200;
	}
}

h1{
	font-size: 2em;
}

p{
	margin: 0 0 0.5em;
}

.options{
	font-size: 1.5em;
}

.main{
	text-align: center;
	margin-top: 20px;
}

#titles, #search_results{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 15px;
	max-width: calc(100vw - 2rem);
	margin-bottom: 15px;
}

.title{
	width: 200px;
	height: 300px;
	position: relative;
	box-shadow: black 0px 0px 16px;
	transition: transform .2s;
	z-index: 100;
}

#search_results .title .cover .overlay{
	background-color: #fff;
	opacity: 50%;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.title .title_GB, .title .title_original{
	font-size: 0.8em;
	line-height: 0.8em;
}

.title .depository{
	text-align: left;
	width: fit-content;
	background-color: #000000ce;
	padding: 4px;
}

.title .favorite{
	top: 0px;
	right: 0px;
}
.title .watchlist{
	top: 28px;
	right: 0px;
}
.title .medium{
	top: 28px;
	left: 0px;
	width: 40px;
	height: 28px;
	position: absolute;
	background-color: #000000ce;
	padding: 4px;
}

i.dvd{
	background: url('../img/dvd.svg') no-repeat center;
}

i.blu-ray{
	background: url('../img/blu-ray.svg') no-repeat center;
}

i.dvd_blu-ray{
	background: url('../img/dvd_blu-ray.svg') no-repeat center;
}

i.dvd, i.blu-ray, i.dvd_blu-ray{
	display: inline-block;
	width: 32px;
	height: 14px;
	background-size: contain;
}

.title .favorite, .title .watchlist{
	width: 28px;
	height: 28px;
	position: absolute;
	background-color: #000000ce;
	padding: 4px;
}

details{
	margin: 0 0 0.5em;
}

#highlight{
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	background-color: #ffffffce;
  z-index: 2000;
}

#highlight #content{
	position: absolute;
	width: 620px;
	min-height: 390px;
	left: calc(50% - 310px);
	top: calc(50% - 245px);
	background-color: #000000ce;

	font-family:Arial,sans-serif;
	background:#f9f9f9;
	border:1px solid #ccc;
	border-radius:8px;
	padding:16px;
	padding-right: 24px;
	margin:16px;

	overflow-x: scroll;
}

#highlight #content .info{
	display: flex;
}

#highlight #content img{
	height: 300px;
	width: auto;
	border-radius:8px;
	margin-right: 20px;
	margin-left: 15px;
	float: left;
}

#highlight .close{
	position: fixed;
	top: 20px;
	right: 20px;
	font-size: 2em;
	font-style: bold;
	z-index: 1201;
}

#highlight #content .modify{
	position: absolute;
	bottom: 20px;
	right: 20px;
	font-size: 2em;
	font-style: bold;
	z-index: 1199;	
}

.menu.sorting_filtering{
	font-size: 1em;
}

#actionbar{	
	display: none;
	position: fixed;
	z-index: 1510;
	background-color: #000c;
	top: 40px;
	right: 0;
	margin: 0;
	padding: 30px;
}

#actionbar .options.sort:first-child{
	margin: 0 0 20px 0;
}

#actionbar .options.sort select, .header.sorting select{
	width: auto;
}

#actionbar .options.filter .label, .header.filtering .label{
	margin: 10px 0 5px 0;
}

#actionbar .options.filter h2{
	margin: 0;
}

#actionbar .options.filter select, .header.filtering select{
	width: 160px;
}

#actionbar .options.filter span, .header.filtering select{
	width: 100px;
}

.header.sorting select, .header.filtering select{
	font-size: 1.5em;
}
.header.filtering select{
	width: 140px;
}

input.item[type="submit"]{
	width: 100%;
}

@media only screen and (max-width: 600px) {
	.title{
		width: calc(50% - 30px);
	}
}

@media only screen and (max-width: 380px) {
	.title{
		width: 200px;
	}
}

.title .content{
	position: absolute;
	bottom: 0px;
	padding: 5px;
	width: 100%;
	background-color: #ffffffce;
}

.title .cover{
	position: absolute;
	top: 0;
	left: 0;
	z-index: -100;
	height: 100%;
	width: 100%;
}

.title .cover img{
  object-fit: cover;
	height: 100%;
	width: 100%;
}

table img.cover{
	max-width: 200px;
}

#errorfield, #successfield{
    margin-bottom: -20px;
    display: none;
}

.footer{
		text-align: right;
    right: 0;
    bottom: 0;
    margin: 10px;
    padding: 5px;
    z-index: 1200;
}

.footer.fixed{
	background-color: rgba(255,255,255,0.5);
  position: fixed; 
}

#debugging{
	display: none;
}

#debugging pre{
	overflow-y: scroll;
}

@media only screen and (min-width: 1200px) and (max-width: 1919px) {
  .ui.page.grid {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 5%;
    padding-right: 5%;
  }
}

nav.ui.fixed.menu.navbar{
	z-index: 1500;
}

.results_counter_container{
	margin-bottom: 20px;
}

.mod{
	position: absolute;
  top: 0px;
  background-color: #fffc;
  width: 100%;
  min-height: 100%;
  z-index: 1200;
  padding: 40px 16px 16px 16px;
  margin-left: -16px;
}

.mod table td{
  padding: 4px;
}

.delete_link a{
	line-height: 3em;
	color: red;
}

input, select{
	width: 180px;
}

input[type="submit"]{
	width: 120px;
}

td.center{
	text-align: center;
}

.right.menu .item.search{
	max-width: 160px;
}


@media only screen and (min-width: 661px) {

	.mobile-only{
		display: none !important;
	}

}

@media only screen and (max-width: 660px) {

	.right.menu .item.search{
		max-width: 100%;
	}

	.footer{
		padding: 5px 5px 50px 5px;
	}

	.desktop-only{
		display: none !important;
	}

	#highlight #content img{
		float: none;
	}

	#highlight #content{
		width: calc( 100% - 32px);
	  height: calc( 100% - 32px);
	  left: 0;
	  top: 0;
	  text-align: center;
	}

	#highlight #content .mod form{
		text-align: left;
	}

	#highlight #content .mod form table{
		margin: 15px auto 5px auto;
	}

	nav .item .item-label{
		display: none;
	}


	#highlight #content .info{
		display: block;
	}

}

@media only screen and (min-width: 1920px) {
  .ui.page.grid {
    padding-left: 10%;
    padding-right: 10%;
  }
}


@media (prefers-color-scheme: dark) {
	body {
		background-color: #323232;
		color: #ccc;
	}

	h1, h2, h3, p, a{
		color: #ccc;
	}

	.footer.fixed{
    background-color: #0008;
  }

	.title .content{
		background-color: #000c;
	}

	#highlight{
		background-color: #000c;
	}

	#highlight #content{
		background:#191919;
	}

	.mod{
	  background-color: #000c;
	}

	.ui.input, .ui.input > input.prompt{
		color: #fffe;
	}
}
