.hidden {
	display: none;
}

*:focus {
    outline: 0;
}

body {
	margin: 0px;
	font-family: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-variant: normal;
	font-weight: 400;
	line-height: 20px;
}

h1 {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	text-align: center;
	font-size: 30px;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	line-height: 26.3999996185303px;
}

/*noscript, #server_warning {
	margin: 40px;
	background-color: #FFFAAD;
}*/

.question-mark {
	font-family: Lato;
}

#marc-maker {
	margin: 25px;
	padding: 35px;
	background-color: #E8E9EB;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	min-width: 750px;
}

input[type="text"], input[type="number"], textarea {
	width: 250px;	border: 1px;
	height: 16px;
	border-style: solid;
	border-color: #d1d1d1;
	padding: 2px;
	line-height: 150%;

	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
/*	border: 1px;*/
	border-color: #1D84F6;
}

input[type="number"] {
	width: 55px;
}

.text-input {
	border: 1px solid;
	border-color: #d4d4d4;
}

.unlisted {
	font-size: 10px;
}

.required_marker {
	color: #FF0000;
}

#star {
	font-size: 10px;
	margin-bottom: -23px;
}

.standard-block {
	padding: 3px;
	width: 350px;
}

.standard-translit-block {
	width: 350px;
	position: relative;
	left: 25px;
}

#title-block, #item-name-block, #serial-number-block, #manufacturer-block, #serial-block {
	padding: 3px;
	width: 350px;
	height: 64px;
}

#subtitle-block {
	padding: 3px;
	width: 350px;
	position: relative;
	left: 406px;
	top: -70px;
	margin-bottom: -70px;
	margin-right: 1px;
}

/*#translit-title-block {
	position: relative;
	top: -22px;
	margin-bottom: -22px;
}*/

#translit-subtitle-block {
	position: relative;
	top: -46px;
	left: 425px;
	margin-bottom: -46px;
}

#author-block {
	padding: 3px;
	width: 700px;
	margin-top: 20px;
}

#publication-block {
	padding: 3px;
	width: 150px;
}

#copyright-block {
	padding: 3px;
	width: 150px;
	position: relative;
	top: -68px;
	left: 200px;
	margin-bottom: -68px;
}

#add-button {
	position: relative;
	top: 0px;
}

#notes-block {
	padding: 3px;
}

#notes {
	min-width: 300px;
	min-height: 100px;
}

#save-as-block {
	padding: 3px;
	width: 400px;
}

.added-author {
	position: relative;
	top: -10px;
}

.translit-author {
	position: relative;
	left: 25px;
	width: 700px;
}

.insert {
	position: relative;
	float: right;
	font-family: 'Roboto Slab', serif;
	font-size: 11px;
	bottom: -2px;
	cursor: pointer;
}

.insert_normal {
	left: -96px;
}

.insert_family_name {
	left: -446px;
}

.insert_given_name {
	left: -97px;
}

.insert:hover {
	text-decoration: underline;
}

.additional_insert {
	bottom: 5px;
}

#insert-given_name, .insert-given_name {
	position: relative;
	left: 264px;
}

.additional_menu {
	position: relative;
	bottom: 10px;
}

#insert-popup {
	position: relative;
	left: 167px;
	bottom: -2px;
	z-index: 10;
}

.diacritics {
	height: 35px;
	width: 35px;
	background-color: white;
	border-top: solid black 1px;
	border-left: solid black 1px;
	vertical-align: middle;
	font-size: 16px;
	line-height: 16px;
	-moz-user-focus: ignore;
}

.diacritics:hover {
	background: #ededed;
}

.normal-button {
	border-right: 0px;
	border-bottom: 0px;
}

.row-end {
	border-right: solid black 1px;
	border-bottom: 0px;
}

.last-row {
	border-right: 0px;
	border-bottom: solid black 1px;
}

.bottom-right {
	border: solid black 1px;
}

.added {
	padding-top: 6px;
	padding-bottom: 6px;
}

.added-keyword {
	padding-top: 0px;
}

#disclaimer, #disclaimer2 {
	text-align: center;
	font-size: 13px;
}

#version, #code {
	text-align: center;
	font-size: 10px;
}

#code {
	display: block;
}

.preview-container {
    display: inline-block;
    margin: 10px;
    text-align: center;
    vertical-align: top;
}

.file-name {
    font-size: 12px;
    margin-top: 5px;
    word-break: break-all;
    max-width: 200px;
}

#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

#upload-progress {
    margin: 15px 0;
    color: #666;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

#author-block label.insert.insert_given_name {
    margin-top: 15px;
}

button.close-btn {
    margin: 0 auto;
}

.instructions-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.instructions-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    animation: fadeIn 0.3s ease-in-out;
    font-family: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;
}

.instructions-modal h3 {
    text-align: center;
    margin: 0 10px;
    color: #333;
    font-size: 24px;
}

.instructions-modal ul {
    padding-left: 0;
    list-style: none;
}

.instructions-modal li {
    margin-bottom: 10px;
	font-size: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.instructions-modal li::before {
    content: "•";
    color: #1D84F6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.instructions-modal .note {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #1D84F6;
    margin-top: 20px;
    font-style: italic;
}

.instructions-close-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 30px;
    background: #1D84F6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.instructions-close-btn:hover {
    background: #0056b3;
}

/* Info icon tooltip */
.info-icon {
    position: relative;
    cursor: help;
	font-size: 18px;
}
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 25px;
    left: 0;
    background: #333;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    width: 350px;
    white-space: normal;
    line-height: 1.4;
}
.info-icon:hover::after {
    opacity: 1;
}

span.question-mark {
    display: none;
}

.aiButtons {
	background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
	margin-bottom: 10px;
    font-weight: bold;
}

.ocrButtons {
   background-color: #3498DB;
   color: white;
   padding: 10px 20px;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   font-size: 14px;
   margin-bottom: 10px;
   font-weight: bold;
}

#alternative-title-block label.insert.insert_normal {
    left: -15px;
}