body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: black;
  box-sizing: border-box;
  max-width: 100%;
}

header {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

header a {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.6em;
  color: black;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

header a:hover {
  color: #0073e6;
}

main {
  padding: 20px;
  max-width: 100%;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  max-height: 75vh;
  height: auto;
  object-fit: contain;
}

h1 {
  text-align: left;
  font-size: 2.4em;
  font-weight: 700;
  color: black;
  margin: 40px 0;
}

nav {
  text-align: left;
  margin-top: 20px;
}

nav a {
  text-decoration: none;
  color: black;
  font-size: 1.2em;
  margin: 0 20px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0073e6;
}

nav ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

nav ul li {
  font-size: 1.2em;
  margin: 0 15px;
  padding: 10px 0;
}

section h2 {
  text-align: left;
  font-size: 2.0em;
  color: black;
}

section h3 {
  text-align: left;
  font-size: 1.6em;
  color: black;
}

section h4 {
  text-align: left;
  font-size: 1.2em;
  color: black;
}

section p {
  font-size: 1.0em;
  line-height: 1.7;
  white-space: pre-line;
  color: black;
  text-align: justify;
}

.reference {
  text-align: center;
  font-size: 1.0em;
  color: #aaa;
}

.reference a {
  color: inherit;
  text-decoration: none;
}

section .image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 200px;
  height: 200px;
}

section .image1 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  width: auto;
  height: 400px;
}

section .image2 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 500px;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

.link-preview {
  display: block;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 15px;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-preview:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: #0073e6;
}

.link-preview img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
  height: auto;
  object-fit: cover;
}

.preview-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #222;
}

.preview-description {
  font-size: 1.0em;
  color: #555;
  line-height: 1.4;
}

pre code {
  background-color: #1e1e1e;
  color: #f8f8f2;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 1.0em;
  padding: 12px;
  padding-right: 60px;
  border-radius: 8px;
  display: block;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

pre {
  position: relative;
}

.article-dates {
  text-align: left;
  color: #666;
  font-size: 1.0em;
  margin-bottom: 20px;
}

.box-section1 {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 40px 30px;
  max-width: 750px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.box-section2 {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 40px 30px;
  max-width: 750px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.box-section2 h2{
  text-align: center;
}

.box-section2 p{
  text-align: center;
}

.profile-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.7;
}

.mail-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background-color: #0073e6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.0em;
  transition: background-color 0.3s ease;
}

.mail-button:hover {
  background-color: #005bb5;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  overflow: hidden;
}

.modal-content {

  position: absolute;
  top: 0;
  left: 0;

  max-width: 100%;
  max-height: 100%;

  transform-origin: 0 0;
  
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;

  transition: transform 0.1s ease-out;
  will-change: transform;
}

.modal-content:active {
  cursor: grabbing;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
}

.close:hover {
  color: #bbb;
}

.zoomable {
  cursor: zoom-in;
  transition: transform 0.2s;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #0073e6;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.copy-btn:hover {
  opacity: 1;
}

.ref-card-container {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  max-width: 750px;
  margin: 40px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ref-card-container:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: #0073e6;
}

.ref-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.ref-visual img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  border-radius: 6px;
  margin: 0;
}

.ref-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-title {
  font-weight: 700;
  font-size: 1.2em;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.5;
}

.doc-btn {
  display: block;
  background-color: #0073e6;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1.0em;
  text-align: center;
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}