/* html */

*{margin:0;padding:0;}

html{
    height: 100%;
}

body {
    font-size: 16px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    height: 100%;
}

div#wrap {
    position:relative;
    width: 100%;
    height: auto !important;
    min-height:100%;
    background-color: #ffffff;
}


/*Facciamo in modo che il contenuto abbia un paddig uguale all'altezza del footer*/
div#wrap .grid_9{
    padding: 0 0 100px 0;
}

/*Centriamo il contenuto nella pagina e non gli facciamo toccare i bordi*/
div.grid_9 div.widget {
    margin: auto;
    width: 90%;
    padding-top: 5px;
}

/*Di default i link sono Rosso scuro e non sottolineati*/
a {
    text-decoration: none;
    color: Darkred;
}

a.dark_background {
    color: white;
}

a.dark_background:hover {
    color: grey;
}
/*

Margini tra i vari paragrafi
p {
    margin: 4px;
}
*/


/*Gli elementi centered hanno il testo centrato*/
.centered{
    text-align: center;
    margin-top: 4px;
}

/*Mostra i div centrati orizzontalmente*/
div.centered{
    margin: auto;
}

/*Allinea i figli centralmente*/
div.centered > * {
    vertical-align: middle;
}

/*Mostra i div affiancati uno all'altro e vanno a capo dinamicamente*/
.block {
    display: block;
}

div.block {
    border: 1px solid #7d7d7d47;
    padding: 0 15px 17px;
    margin: 30px 8px 14px;
    background: white;
}

div.flex {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 4px 6px;
}

.flex_icon {
    flex: 0 0;
}

/*sub section of a flex section*/
.flex div {
    flex: 1 1 100%;
    max-width: 100%;
}

.flex_break_line {
    flex-basis: 100%;
    height: 0;
}

.flex .iub_title {
    flex: 1 1;
}

.flex .release_episodes {
    flex: 0 1 auto;
}

/*CSS grid*/
div.css-grid {
    display: grid;
    grid-template-columns: [start-edit] 1fr [start-delete] 1fr [title] 18fr [tags] 6fr [info] 4fr [end];
    grid-template-rows: [row1-start] 1fr [row1-end] 1fr [third-line] auto [last-line];
    grid-template-areas:
    "edit delete tit_t tag_t info"
    "edit delete tit_i tag_i info"
    "other other other other other";
    align-items: center;
}

/*Vertical edit icon*/
i.edit_assignment  {
    grid-area: edit;
    place-self: center;
}
/*Vertical delete icon*/
i.delete_assignment  {
    grid-area: delete;
    place-self: center;
}

/*Tags*/
.info_tag {
    display: inline-flex;
    align-items: center;
    border: solid 1px black;
    padding: 4px 9px;
    border-radius: 5px;
}

.tag_icon {
    height: 23px;
}

/*Additional info*/
div.release_analysis {
    grid-area: other;
}

.analysis_info {
    grid-area: info;
}

/*Resize SVG logos*/
.logo {
    width: 25px;
    padding: 0 5px;
}

.release_line {
    border: 0 solid #7d7d7d47;
    border-bottom-width: 1px;
}

.release_line:hover {
    background-color: #7d7d7d1a;
}

.release_line i:hover {
    color: #c41a89;
    cursor: pointer;
}

/*
 * Mostra una fascia nera
 */
div.dark_back {
	background-color: black;
}

/*Gli elementi vengono mostrati sulla stessa linea*/
p.inline{
    display: inline;
}

/*È titolo minore*/
p.subtitle {
    font-weight: bold;
    font-size: 115%;
    color: Darkred;
    position: relative;
    top: -17px;
    background: white;
    display: inline-block;
    padding: 0 8px;
    border-left: 2px solid #7d7d7d47;
}

label {
    color: darkred;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    margin: 4px 0 0;
    padding: 0 5px;
    border-radius: 3px;
    background-clip: padding-box;
}

form input[type="text"], form input[type="number"], form input[type="password"], form select {
    display: inline;
}

/* I titoli del corpo sono centrati, più grandi e in grassetto */

.grid_9 .main-style div.title {
    text-align: center;
    font-weight: bold;
    font-size: 200%;

}

/* La navbar dell'header */

div.widget-nav {
	overflow: hidden;
}

/*Add mobile icon*/
div#header li.fronte.icon_menu {
    display: none;
}

div#header ul.nav li ul {
    border-style: solid;
    border-width: 1px;
}

div#header ul.nav li ul, div#sidebar ul.nav li ul {
    list-style-type:disc; /* static list type */
}

div#header ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
}

div#header li {
    float: left;
}

div#header li a, .dropbtn {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

div#header li a:hover, .dropdown:hover .dropbtn {
    background-color: DarkRed;
}

div#header li.dropdown {
    display: block;
}

div#header .dropdown-content {
    display: none;
    position: absolute;
    background-color: DarkRed;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 10;
}

div#header .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

div#header .dropdown-content a:hover {
    color: white;
    background-color: black;
}

div#header .dropdown:hover .dropdown-content {
    display: block;
}

div#header li.fronte a {
    -webkit-transition-duration: 0.3s; /* Safari */
    transition-duration: 0.3s;
}

div#header li.fronte-destra {
    float: right;
}

div#header ul li.active {
    background-color: DarkRed;
    color: white;
}

div#header ul li#logout a:hover {
    background-color: #EEEEEE;
    color: #DB0000;
}

/* Le istruzioni del footer */
div#footer {
    height: 40px;
    font-size: 80%;
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    background-color: black;
    color: white;
}

div#footer .widget {
    text-align: center;
	padding: 10px 10px 0 10px;
}


/* typography */

h1 {
    color: #DB271A;
    font-size: 48px;
    font-family: Helvetica, Arial, sans-serif;
	font-weight: normal;
	line-height: normal;
	letter-spacing: 1px;
	padding: 5px 0;
	margin: 0;
	}

h1#main_title {
    padding-top:0;
    padding-left:0;
    padding-right:0;
    text-align:center;
}

h2 {
    color: #212121;
    font-size: 24px;
    font-weight:bold;
	line-height: normal;
	padding: 5px 0;
	margin: 0;
	}

h3 {
	font-weight: bold;
	line-height:normal;
	padding: 5px 0;
	margin: 0;
	}

/* Navigation */

div#navigation ul.nav {
	list-style-type: none;
	margin: 0;
	padding: 0;
	min-height: 34px;
}

div#navigation ul.nav li {
	float: left;
	line-height: 26px;
	height: 26px;
	padding: 4px 0;
	position: relative;
	margin-bottom: 1px
}

div#navigation ul.nav ul {
	padding: 6px;
	margin: 0;
	list-style: none;
	position: absolute;
	min-width: 130px;
	top: 34px;  /* using left instead of display to hide menus because display: none isn't read by screen readers */
	left: 0;
	visibility: hidden;
	z-index: 999;
}

div#navigation ul.nav ul li { /* all list items */
	/* float: left;
	 width: 20em; */ /* width needed or else Opera goes nuts */
	height: auto;
	width: auto;
	display: block;
	float: none;
	position: relative;
	margin: 0 0 0 16px;
	padding: 0;
}

div#navigation ul.nav li a {
	text-decoration: none;
	padding: 3px 8px;
	line-height: 20px
}

div#navigation ul.nav ul li a {
	display: block;
	text-decoration: none;
	padding: 2px 8px 2px 4px;
	font-size: 12px;
	border: none;
}

div#navigation ul.nav ul li a:hover {
	text-decoration: underline;
}

div#navigation ul.nav li:hover ul {
	visibility: visible;
}

/*Autocomplete*/
.ui-autocomplete {
    background: white;
    border-top: 1px solid gray;
    border-bottom: 1px solid gray;
}

.ui-autocomplete li:hover {
    background: darkred;
    color: white;
    font-weight: bold;
}

.ui-autocomplete li {
    padding: 10px 20px;
    border-right: 1px solid gray;
    border-left: 1px solid gray;
    list-style-type: none;
}


/* Loading bar - Analysis */
#myBar {
    width: 0;
    height: 30px;
    background-color: darkred;
    color: white;
    border-radius: 20px;
}

#myBar_text {
    margin: 5px auto;
    position: absolute;
    background: white;
    line-height: 16px;
    padding: 2px;
    border-radius: 7px;
}

#myProgress {
    border: 1px solid #a9a9a952;
    text-align: center;
    border-radius: 20px;
}

/* Tools */

.separator {
    display: none;
    height: 0;
    padding: 3px 0;
}

.tool_separator {
    background: #cccccc3b;
    margin: 0 0;
    border-radius: 11px;
}

.tool_separator h3 {
    padding-left: 25px;
    cursor: pointer;
    border-bottom: 0;
    margin: 15px 0;
}

.tool_separator h3.selected {
    color: darkred;
}

.tool_separator p.subtitle {
    /*! background: #fff; */
    color: #8b0000;
    border-radius: 6px;
}

.tool_separator h3:hover {
    color:darkred;
    font-weight: bold;
}

.tool_description {
    position: relative;
    top: -14px;
    white-space: normal;
}

/*Stile delle textarea */
textarea.tool, textarea.result, textarea.publication {
    border: 3px solid black;
}

textarea.tool {
    width: 100%;
    height: 200px;
}

textarea.result{
    width: 80%;
    height: 200px;
}

textarea.tool:focus, textarea.result:focus, textarea.publication:focus{
    border-color: Darkred;
}

textarea.publication {
    color: #dedede;/* Colore del testo */
    background: #1C1C1C; /* Colore di sfondo */
    width: 650px;
    height: 200px;
}

span.title_publish{
	color: DarkRed;
}

div.release {
	padding: 1em 0;
}

/*Layout dei messaggi in alto*/
p.errore, p.update_notify, p.update_download, p.center, p.bordo {
    white-space: normal;
	margin: 2px;
	border-radius: 8px;
}

p.errore {
    border: 2px solid black;
    background-color: DarkRed;
    text-align: center;
    line-height: 200%;
    color: white;
}

p.spaced {
    margin-top: 30px;
    margin-bottom: 10px;
}

p.errore a{
    font-weight: bold;
    color: white;
}

p.center, p.update_notify {
    border: 2px solid DarkRed;
    text-align: center;
    line-height: 200%;
    color: black;
}

p.update_download {
    background-color: #003399;
    text-align: center;
    font-weight: bold;
    line-height: 200%;
    color: white;
    border: 2px solid black;
}

.inline-img {
    height: 1em;
    width: 1em;
    padding: 2px 4px;
    vertical-align: middle;
    line-height: inherit;
}

span.title_release {
	font-weight: bold;
}

/*Barra lettere*/

#barra_lettere button {
    min-width: 50px;
    margin: auto;
}

p.bordo {
    border: 2px solid black;
    text-align: center;
    font-size: 20px;
}

p.titolo {
    text-align: center;
    font-size: 22px;
    color: #555;
    font-weight: 100;
    margin-top: 0;
}

/*LINK DELLE LETTERE*/
a.lettera {
    font-weight: bold;
    font-family: "Courier New", Courier, monospace;
}

a.lettera:link {
    color: #000000;
}
a.lettera:visited {
    color: #000000;
}
a.lettera:hover {
    color: red;
}
a.lettera:active {
    color: red;
}

/*Error box*/
#error_box_container {
    margin-top: 15px;
}

.error_box {
    background: #fff;
    color: black;
    margin: 3px;
    padding: 7px 3px;
    line-height: initial;
    border: 2px solid darkred;
    border-radius: 6px;
    display: flex;
}

.error_box i {
    padding: 0 10px;
    color: darkred;
}

.error_box p {
    display: inline-block;
    width: 100%;
}



/*Layout dei form di registrazione e login*/

div.registration input[type="text"], div.registration input[type="password"] {
    margin: 0 auto 8px;
}

input[type="text"], input[type="number"], input[type="password"], select {
    width: calc(100% - 120px);
    padding: 10px 20px;
    display: block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 6px;
    max-width: 600px;
}

div.registration input[type=checkbox]{
    height: 100%
}

div.registration p {
    text-align: center;
    font-weight: bold;
    font-size: 150%;
}

form div.registration label {
    font-weight: bold;
    color: Darkred;
    background-color: white;
    border: 0;
    -webkit-border-radius: 9px;
    border-radius: 9px;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    -webkit-box-shadow: 0 0 0 0 white;
    box-shadow: 0 0 0 0 white;
    min-width: 105px;
    text-align: left;
}

div.registration input[type=submit] {
    background-color: Darkred;
    color: white;
    border: solid Darkred;
    padding: 14px 20px;
    margin: 8px auto;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    display: block;
}

div.registration input[type=submit]:hover{
    border: solid Darkred;
    background-color: white;
    color: Darkred;
    font-weight: bold;
}

form#login_form {
    margin-top: 20px;
}

/*Pulsanti*/

button, input[type="submit"], input[type="file"], input.send_release {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: rgba(0, 0, 0, 0.15) 0 1px 3px 0;
    text-decoration: none;
    transition: all 250ms;
    display: inline-block;
    font-size: 14px;
    margin: 16px 0 0;
    background-color: white;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    min-width: 250px;
    padding: 5px 12px;
}

select {
    cursor: pointer;
}

.top-button {
    padding: 5px 12px;
    margin: 2px 5px;
    vertical-align: middle;
    min-width: 250px;
    width: 300px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.top-button:hover {
    background-color: darkred;
}

#jellyfin_download.top-button:hover {
    background-color: #000B25;
}

input[type="file"].upload_input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

label.upload_input {
    border: 1px solid black;
    padding: 15px 15px;
    /*! text-align: center; */
    text-decoration: none;
    display: block;
    font-size: 20px;
    margin: 1px 0 5px;
    background-color: white;
    border-radius: 5px;
    font-weight: bold;
    max-width: 600px;
}

label.upload_input:focus, label.upload_input:hover {
    background-color: darkred;
    color: white;
    outline: 1px dotted #000;
}



select.large, button.large, input[type="submit"].large {
    width: 350px;
    margin: 5px 0;
}


button:hover, input[type="submit"]:hover{
    background-color: #bfb4b4;
    color: white;
}

button.delete_release {
    background-color: DarkRed;
    color: white;
}

button.delete_release:hover{
    background-color: black;
    color: DarkRed;
}

/*Pulsante caricamento release*/
input.send_release {
    background-color: black;
    color: white;
}

input.send_release:hover{
    background-color: DarkRed;
    color: white;
}

button.in_error {
	padding: 1px 10px 1px 10px;
}
div.error_message {
    border-radius: 25px;
    border: 2px solid #8a0b0d;
    min-width: 200px;
    min-height: 150px;
    padding: 6px;
    margin-inline: 8px;
    margin-top: auto;
    margin-bottom: auto;
}

div.fill_widget {
    height: 70%;
    display: flex;
    align-content: flex-start;
    align-items: center;
}

div.f_left, div.f_right {
    width: 50%;
}

/*Stile pulsanti imgur - impostazioni.php*/
#imgur_logout {
	background-color: white;
	color: darkred;
	border:none;
	margin:0;
	padding:0;
}
#imgur_logout:hover {
	background-color: black;
}
#imgur_button {
	background-color: white;
	background-image: url('immagini/imgur.png');
	background-size: 180px 40px;
	background-repeat: no-repeat;
	background-position: center;
	width: 200px;
	height: 50px;
}
#imgur_button:hover {
	background-color: rgba(176,176,176,0.4);
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
#impo {
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	width: 60%;
	border-collapse: collapse;
    margin: auto;
}
#impo table {
	border: 1px solid black;
}
#impo tr{
	color: #000000;
	padding:7px;
	text-align: center;
}
#impo caption {
	background-color: rgba(165, 7, 7, 0.8);
	color: White;
}
#impo tr.alt td {
	background-color: rgba(176,176,176,0.4);
}
#impo tr.alt th {
	color: #000000;
	background-color: rgba(176,176,176,0.4);
}

img.main_image {
    height: 300px;
}
.gif_container {
    height: 300px;
    padding: 8px;
}

/*Spazi di separazione - Usato per separare uno span dall'elemento precedente*/
.tab {
	padding-left: 0.5em;
}

.space {
	padding-left: 1em;
}

/*CSS del form di modifica*/
.form-line {
    width: 100%;
    display: inline-block;
}
label.modify_form {
    text-align: left;
    width: 100px;
}

input.modify_form, textarea.modify_form {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    width: 600px;
    margin: auto 0 auto 6px;
}

div.edit-field {
    padding: 10px 0;
}

.edit-field * {
    vertical-align: middle;
}

.edit-field textarea {
    height: 100px;
}

/*pubblica, modifica e premium sono i pulsanti a fianco alla lista dei titoli*/
/* a.pubblica_head,
a.modifica_head,
a.premium_head,
a.download_head,
a.request_head, */
a.shared {
    font-weight: bold;
	background-repeat: no-repeat;
    padding-left: 20px;
    backface-visibility:hidden;
	text-decoration:none;
}

.shared {
	position:relative;
}

a.pubblica{
	color: green;
    background-image: url('/immagini/publish.png');
}

a.modifica {
	color: #EE7600;
    background-image: url('/immagini/edit.png');
}

a.premium {
	color: red;
    background-image: url('/immagini/premium.png');
}

a.download {
	color:  #003399;
    background-image: url('/immagini/download.png');
}

a.upload {
	color: green;
    background-image: url('/immagini/publish.png');
}

a.request {
	color: blueviolet;
    background-image: url('/immagini/refresh.png');
    background-repeat: no-repeat;
    background-size: 16px 16px;
}


/*Questo è l'effetto che si ottiene quando si passa sopra una scritta con il mouse*/
a.shared:after {
    content: "";
    transition:0.3s all ease;
    backface-visibility:hidden;
  	position:absolute;
    bottom:-0.25em;
    height:0.15rem;
    width:0;
    background:black;
    left:0;
    right:0;
}


a.shared:hover:after {
  width:100%;
}


/*Tabelle elenco*/

/*On mouse hover*/
p.result_line:hover {
	font-weight: bold;
}

p.result_line:hover span.titolo_materiale::before {
	content: "";
	display: block;
	background: url("immagini/arrow_right.png") no-repeat left center;
	width: 24px;
	height: 24px;
	float: left;
	margin: 0 6px 0 0;
}

/*Size of lines*/
div.lista_titoli, div.lista_download, div.downloaded_torrent_list {
	width: 100%;
	line-height: 150%;
    margin-top: 15px;
}

/* Torrent list of files */
/*Subdir hidden by default*/
div.torrent_list_dir p.torrent_line, div.torrent_list_dir div.torrent_list_dir {
    visibility: hidden;
    height: 0;
    opacity: 1;
    padding: 0;
    overflow-x: auto;
    transition: all 200ms;
}

div.torrent_list {
    border-style: solid;
    border-width: 1px;
}

div.torrent_list_dir:hover, div.lista_titoli  p.torrent_line:hover {
    background-color: lightsteelblue;
}

.torrent_line a i.inline-img {
    color: black;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.horizontal_scroll::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.horizontal_scroll {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    /*text-overflow: ellipsis;*/
    overflow: auto;
}

/*div.torrent_list_dir {
    border-style: dashed;
    border-width: 0 1px 0 0;
}*/

div p, div p {
    overflow: hidden;
    white-space: nowrap;
    padding: 3px;
}

div p.header_results {
    padding: 3px;
    margin-top: 3px;
}

div p.found_results {
    border: solid black;
    border-bottom-style: none;
    border-radius: 15px 15px 0 0;
    background: black;
    color: white;
}

div p.no_results {
    border-left: darkred solid 8px;
    background: lightgray;
    color: black;
    text-align: left;
    margin-top: 3px;
    padding: 8px;
    vertical-align: middle;
}

div.lista_titoli p.result_header {
	background: black;
	color: white;
	font-weight: bold;
}

div.lista_titoli span {
	display: inline-block;
	overflow: hidden;
}

div.lista_titoli span.titolo_materiale {
	white-space: nowrap;
	text-overflow: ellipsis;
    overflow: auto;
}

/*Tabella miei files*/

/*Width and orientation of titles*/
/*Title alineeation*/
span.titolo_materiale, p.download_line {
	text-align: left;
}

/*Releases titles*/
div.lista_titoli p.result_line span.titolo_materiale {
	width: calc(100% - 450px);
}
/*Torrent titles*/
div.lista_titoli p span.titolo_materiale  {
	width: calc(100% - 295px);
}
/*Buttons: download - upload*/
div.lista_titoli p span.tab {
	width: 100px;
}
/*Download file name*/
div.lista_download p.download_line {
	width: 98%;
}
/*Width of a number*/
div.lista_titoli span.number {
    width: 40px;
    text-align: center;
}
/*Width of field: Pubblica, Modifica*/
div.lista_titoli span.tab.pubblica, div.lista_titoli span.tab.modifica {
    width: 90px;
}
/*Width of field: Link Premium*/
div.lista_titoli span.tab.premium {
    width: 125px;
}
/*Width of field: Download*/
div.lista_titoli span.tab.download {
    width: 100px;
}

/*Colore per le righe pari*/

/*Torrent*/
p.torrent_line:nth-child(even) {
    background: #cdcff3;
}
/*Releases*/
p.result_line:nth-child(even) {
    background: #d2ecc7;
}
/*Lista file - Download*/
p.download_line:nth-child(even) {
    background: #f3cdcd;
}
/*Download magnet*/
#send_magnet {
    margin-top: 50px;
}

input.search {
    width: 130px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    background-image: url("/immagini/searchicon.png");
    background-position: 10px 10px;
    background-repeat: no-repeat;
    padding: 12px 20px 12px 40px;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
    max-width: initial;
    margin: 0 0 8px;
}

#show_letters, #search_field {
    display: inline-block;
    margin: 0;
    border: 2px solid #ccc;
    vertical-align: middle;
}

#show_letters {
    min-width: auto;
    max-width: 80px;
    padding: 5px 12px;
    height: 45px;
}

input.search:focus {
    width: calc(100% - 88px);
}

/*Una maschera che occupa tutto lo schermo, usata per:
- Disattivare i pulsanti posteriori
- Rilevare eventuali click esterni*/
#bg_mask {
    position: fixed;
    top: 0;
    right: 0;  bottom: 0;
    left: 0;
    margin: 0 auto auto;
    width: 100%;
    height: 100%;
    z-index: 4;
    background-color: grey;
    opacity: 0.4;
    filter: alpha(opacity=40);
    visibility: visible;
}

/*Pannello frontale*/
#frontlayer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    translate3d( 0, 0, 0);
    -webkit-font-smoothing: subpixel-antialiased;
    width: 90%;
    height: 85%;
    background-color: white;
    visibility: visible;
    border: 2px solid DarkRed;
    z-index: 8;
    overflow: auto;
}

#frontlayer div.title_float {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10%;
}

#frontlayer div.body_float {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%;
}

#frontlayer p.title_float {
	color: DarkRed;
    text-align: center;
	font-size: 20px;
	font-weight: bold;
	line-height: 32px;
    margin-right: 7%;
    margin-left: 7%;
}

#frontlayer p, #frontlayer textarea, #frontlayer button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    -webkit-font-smoothing: antialiased;
}

#frontlayer p {
    text-align: center;
	font-size: 18px;
	line-height: 32px;
}

#frontlayer textarea {
    text-align: center;
}

#frontlayer button#exit_link {
    position:absolute;
    top: 0;
    right: 0;
    padding: 7px 10px 7px 10px;
    margin: 0;
}

button#exit_link:hover {
	background-color: Darkred;
    color: black;
}

#frontlayer div.spoiler{
    width: 100%;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2px;
}

/*Tema di bottoni e link*/
#frontlayer button, #frontlayer a {
    color: white;
	font-size: 18px;
	font-weight: bold;
    padding: 10px 13px 10px 13px;
    background-color: black;
    background-repeat:no-repeat;
    border: none;
    outline:none;
}

/*Effetto di link e bottoni alla selezione*/
#frontlayer button:hover, #frontlayer a:hover {
    background-color: darkred;
}

#frontlayer a {
    border-radius: 5px;
    margin: 1px;
    display: inline-block;
}

div.spoiler {
	background-color: #b3adad66;
	line-height: 240%;
}

/*
 * Stile lista file 1fichier
 */
#fichier_list {
    height: 65vh;
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e1e1e1;
}

.list_el {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    min-height: 48px;
    position: relative;
}

.list_el:last-child {
    border-bottom: none;
}

.list_el:hover {
    background-color: #f8f9fa !important;
    transform: translateX(2px);
}

.list_el:nth-child(odd) {
    background-color: #fafbfc;
}

.list_el:nth-child(even) {
    background-color: #ffffff;
}

/* Checkbox styling */
.list_el input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007bff;
}

/* File/Folder icons */
.file-icon, .folder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 4px;
    font-size: 14px;
    flex-shrink: 0;
    user-select: none;
}

.folder-icon {
    background-color: #ffd700;
    color: #b8860b;
}

.file-icon {
    background-color: #e3f2fd;
    color: #1976d2;
}

.video-icon {
    background-color: #fce4ec;
    color: #c2185b;
}

.image-icon {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.audio-icon {
    background-color: #e8f5e8;
    color: #388e3c;
}

.document-icon {
    background-color: #fff3e0;
    color: #f57c00;
}

/* File name and link */
.file-name {
    flex: 1;
    min-width: 0;
    margin-right: 16px;
}

.file-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    position: relative;
}

.file-name a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Scrolling text effect on hover */
.file-name a.scrolling {
    animation: scrollText 3s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    80% { transform: translateX(calc(-100% + 200px)); }
    100% { transform: translateX(calc(-100% + 200px)); }
}

/* File info */
.file-info {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
    user-select: none;
}

.fichier_modify_date {
    color: #666;
    font-size: 12px;
    min-width: 85px;
    text-align: center;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
}

.fichier_size {
    color: #666;
    font-size: 12px;
    min-width: 70px;
    text-align: right;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Folder specific styling */
.fichier_folder {
    border-left: 4px solid #ffd700;
}

.fichier_folder .file-name a {
    font-weight: 600;
    color: #b8860b;
}

.fichier_folder:hover {
    background-color: #fffbf0 !important;
}

/* File type badges */
.file-type-badge {
    font-size: 10px;
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .file-info {
        flex-direction: column;
        gap: 4px;
        align-items: flex-end;
    }

    .fichier_modify_date {
        min-width: 60px;
        font-size: 10px;
    }

    .fichier_size {
        min-width: 50px;
        font-size: 10px;
    }
}

/* Error styling */
.error-message {
    padding: 20px;
    background-color: #fee;
    color: #c33;
    border-radius: 8px;
    border: 1px solid #fcc;
    text-align: center;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pubblicazione */

/* Margin and padding on top */
div#heart {
    margin-top: 27px;
    padding-top: 4px;
}

/* Report */
.file_info {
	font-size: 18px;
	color: #9f0d0dcc;
	font-weight: bold;
}
.report_info {
	padding: 3px;
	display: inline-block;
	border-radius: 5px 5px 5px;
	border: 1px groove red;
	margin: 2px;
	font-size: 14px;
	font-weight: bold;
}

/* Work in progress page */

#wip_img {

    display: block;
    margin-left: auto;
    margin-right: auto;

}

/* Tabella stato SaveRelease */
/* Centra la tabella */
.table.export-status {
    margin: 0 auto;
}

/* Allinea a sinistra la prima colonna (sia header che celle) */
.table.export-status th:first-child,
.table.export-status td:first-child {
    text-align: left;
    padding: 0 4px;
}


/*
 * Smartphone and small screen
 */
@media all and (max-width: 730px) {

	/*Header*/
	div#header ul.nav:not(.responsive) li.fronte:not(:first-child):not(.fronte-destra), div#header ul.nav.responsive li a.dropbtn {
		display: none;
	}

	div#header ul.nav.responsive li div.dropdown-content {
		position: relative;
		background-color: black;

	}

	div#header li.fronte.icon_menu {
		float: left;
		display: block;
	}

	div#header .dropdown-content a {
		text-align: center;
	}

	div#header .dropdown-content a:hover {
		background-color: Darkred;
	}

	/*Login and registration*/
    div.registration {
        border-radius: 25px;
        border: 2px solid Darkred;
        padding: 20px;
        width: 85%;
        display: inline-block;
    }

	/*Show navbar vertically on click */
	div#header ul.nav.responsive {
		position: relative;
	}

	div#header ul.nav.responsive li.icon_menu {
		position: relative;
	}

	div#header ul.nav.responsive li.fronte {
		float: none;
		display: block;
		text-align: left;
	}

	div#header ul.nav.responsive li.fronte.dropdown div.dropdown-content {
		display: block;
	}

	/*Enter full screen - No margins*/
    div.grid_9 div.widget {
        margin: auto;
        width:98%;
    }

	/*Show only icons*/
	div.lista_titoli p.result_line span.titolo_materiale {
		width: calc(100% - 28*4px);
	}

	/*Show the icon resized*/
	div.lista_titoli p span.titolo_materiale {
		width: calc(100% - 32*4px);
	}

	div.lista_titoli span.number {
		width: 30px;
	}

	/*Hack used to show only 1° letter*/
	div.lista_titoli p.result_header span.number {
		color: black;
	}
	div.lista_titoli p.result_header span.number::first-letter {
		color: white;
	}

	div.lista_titoli p.result_line span.tab {
		padding-left: 0.5em;
	}

	div.lista_titoli p span.number {
		padding-left: 0.5em;
	}

	/*Show only icon*/
	div.lista_titoli span.tab.shared,
	div.lista_titoli p.torrent_line span.tab
	{
		width: 16px;
	}
	/*Disappear "Download" from header*/
	div.lista_titoli p.result_header span.tab {
		width: 0;
	}

	/*Pubblicazione*/

	/*Mostra il tab a schermo intero senza bordi*/
	div#heart div.block {
		display: block;
		margin: 0;
	}

	textarea.publication {
		width: 90%;
		margin: 0;
		overflow-y: scroll;
	}

    /*Edit form*/
    input.modify_form, textarea.modify_form {
        width: 100%;
    }

	/*Link Premium*/
	/*Il front layer occupa tutto lo schermo*/
	div#heart div#frontlayer {
		width: 100%;
		height: 100%;
		border: 0;
		border-radius: 0;
	}

	div#frontlayer button#exit_link {
		margin: 0;
		border-radius: 0;
		padding: 10px 13px 10px 13px;
	}
}
