@font-face {
    font-family: Valen Valentine Script;
    src: url('fonts/ValenValentineScript.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Old Newspaper Types;
    src: url('fonts/OldNewspaperTypes.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
	background-image: url('background.png');
	background-size: cover;
	background-repeat: repeat;
	background-size: 256px;
	background-position: top left;
	padding: 0;
	margin: 0;
}

iframe {
	width: 100%;
	height: 30rem;
}

.paper {
	background-image: url('images/0001.jpg');
	background-size: fit;
}

.paper-line {
	text-decoration: underline 1.6px lightgrey;
	text-align: justify;
	text-justify: inter-word;
	line-height: 1.9;
	text-underline-offset: 6px;
	background-image: linear-gradient(90deg,rgb(211,211,211)0,rgb(211,211,211) 100%); 
	background-repeat: no-repeat;
	background-position-y: bottom;
	background-size: 100% 1.6px;
	width:fit-content;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 0 auto;
}

.gallery-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding: 3rem 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  display: block;
  max-width: 90%;
  max-height: 80%;
  margin: 0 auto;
}

.close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

#outputText, #inputText {
	height: 15rem;
}

#searchInput, #outputText, #inputText {
	border: solid 1px lightgray;
	width: 99%;
	background-color: white;
	overflow-x: hidden;
	overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0rem;
}

table th,table td {
  padding: 0.75rem;
  border: 1px solid #ccc;
  text-align: left;
}


/*TEXT*/

* {
	font-size: 0.95rem;
	font-family: MSCambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	color: #2a2f49;
	margin: 0;
	padding: 0;
}

h1,h2,h3,h4,h5,h6 {
	font-size: 1.25rem;
}

span {
	display: block;
}

a {
	text-decoration: none;
}

.c-a {
	text-align: center;
}

.r-a {
	text-align: right;
}

.handwritten {
	font-family: Valen Valentine Script;
}

.typewriter {
	font-family: Old Newspaper Types;
}

.font-15-225 {
	font-size: clamp(1.50rem, calc(1.227rem + 1.364vw), 2.25rem);
}

.font-2 {
	font-size: 2rem;
}

.font-1 {
	font-size: 1rem;
}

/*LISTS*/

ul {
	margin: 0 1rem;
}

li {
	margin: 0.25rem 0;
}

.archive {
	margin: 0 1rem;
}

/*MAIN*/

main {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#a {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 888px;
	margin: 2rem auto;
	background-color: whitesmoke;
	border: 10px solid transparent;
	border-image: url(whitesmokelace.png) 16 round;
	border-image-outset: 9px;
}

 #b {
	display: grid;
	grid-template-columns: 0.85fr 4fr;
	gap: 0.5rem;
 }
 
#contact {
	margin-top: 1rem;
}

#updates {
	max-height: 10rem;
}

.sidebar-menu {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.scrollable-y {
	overflow-y: scroll;
}

.scrollable-x {
	overflow-x: scroll;
}

.information {
	display: flex;
	flex-direction: column;
	border: 1px solid lightgrey;
	padding: 0.5rem;
	gap: 0.5rem;
}

.divider-2 {
	height: 2px;
	width:100%;
	background-color: #2a2f49;
}

.paper-border-bottom {
	border-bottom: 2px solid lightgrey;
}

section {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

section div span {
	margin: 0.5rem 0rem;
}

#about_me_image {
    float: left;
    width: 70%;
    padding-right: 1rem;
    shape-outside: polygon(0% 0%, 0% 100%, 100% 85%, 100% 100%, 70% 50%, 60% 0%, 50% 10%, 30% 0%);
    margin-left: -1rem;
}

form {
    display: block;
    margin-top: 0em;
    unicode-bidi: isolate;
}

.inbox {
    width: 99%;
    height: 10rem;
    resize: none;
}

/*NAVIGATION*/

nav a,#twitter {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.2rem 0.5rem;
	border: 1px solid lightgrey;
	transition: background-color 0.3s ease;
}

nav a:hover {
	text-decoration: none;
	transition: all 0.4s;
	background-color: lightgrey;
	color: #2a2f49;
}

nav a img {
	object-fit: contain;
	height: 1.2rem;
	max-width: 4rem;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	margin: 0;
	padding: 0;
}

.title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
	transition: background-color 0.3s ease;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 11%, rgba(214, 214, 214, 1) 50%, rgba(196, 196, 196, 1) 51%, rgba(10, 10, 10, 0.1) 100%);
	border-top: 1px solid lightgrey;
	border-bottom: 3px double lightgrey;
	border-left: 1px solid lightgrey;
	border-right: 1px solid lightgrey;
	padding: 0.2rem 0 0.2rem 0.5rem;
}

.title img {
	object-fit: contain;
	width: 4rem;
}

/*FOOTER*/

footer {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
}

#footer_links {
	display: flex;
}

@media (max-width: 768px) {
	
#a {
	margin: 1rem;
}
	
#b {
	grid-template-columns: 1fr;
}
	
.nav-toggle {
	display: block;
}

.nav-menu {
	display: none;
}

.nav-menu.show {
	display: flex;
	flex-direction: column;
}

table thead {
		display: none;
	}

	table, table tbody, table tr, table td {
		display: block;
		width: 98%;
	}

	table tr {
		padding: 1rem;
	}

	table td {
		text-align: left;
		margin-left: -1rem;
		padding-left: 1rem;
	}

	table td::before {
		content: attr(data-label);
		display: block;
		font-weight: bold;
		margin-bottom: 0.25rem;
	}
	
	table td:empty {
		display: none;
	}

	table td:empty::before {
		display: none;
	}
}