/* header con nav */
.header-container {
	display: flex;
    align-items: center;
    justify-content: space-between;
}

.img-header {
	width: 30%;
	height: auto;
	display: inline-block;
    padding-left: 5%;
}

.navbar {
	width: 100%;
	float: right;
	overflow: hidden;
	margin: 0;
	background-color: #D86694;
}

.navbar-toggler-icon {
	display: inline-block;
	color: black;
}

nav li {
	display: inline-block;
	padding: 20px 16px 0;
	color: black;
	font-weight: 100;
    font-family: "Anton";

}

.navbar a {
	text-decoration: none;
	color: black;
	font-weight: 100;
}

.navbar a:hover {
	color: white;
}



/* hero*/
.hero-image {
	background-image: url("../img/hero.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover !important;
	max-width: 100%;
	height: 700px;
	display: flex;
	text-align: center;
	background-attachment: fixed;
}

.hero-text {
	text-align: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: black;
	padding-top: 100px;
    font-family: "Anton";
}

.bg-hero-text {
	width: 100%;
	height: auto;
	background-color: rgba(214,219,217, 0.7);
	padding: 20px;
	background-position: center center !important;
	margin-top: 5%;
}

.subtitle {
	color: black;
    font-family: "Didot" !important;
}



/*title and container for each section*/
.title {
    font-family: "Anton";
    text-align: center;
    color: black;
    font-size: 4vw;
    margin-bottom: 2%;
}

.sect-container {
	margin: 2%;
	padding: 2%;
}


/*proj intro*/
.project-p {
	text-align: justify;
	font-size: 1.3vw;
	padding: 0 8%;
    color: black;
    font-family: "Didot";
}


/*mental map*/
.map-img {
    width: 70%;
    display: block;
    margin: 0 auto;
}



/*item tabs*/
.flip-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: #bbbbbb00;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flip-card-back {
    background-color: rgba(226, 242, 240, 0.7);
    color: black;
    transform: rotateY(180deg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding: 15px;
    overflow: auto;
    height: 100%;
    line-height: 1.0;
}

.flip-card-back h1 {
    font-family: "Anton";
    font-size: 3vw;
}

.flip-card-back p {
    font-family: "Didot";
    font-size: 1.3vw;
}

.flip-card:hover {
    box-shadow: 0 0 10px black;
}


/*team*/
.team-cont a {
    text-align: center;
    text-decoration: none;
    color: black;
    font-family: "Anton";
    font-size: 2vw;
}


.team-cont a:hover {
    color: #CA2E68;
}



/*footer*/
footer {
	background-color: #D86694;
	height: 15%vh;
	color: black;
	font-weight: 100;
	font-size: 1.2vw !important;
    text-align: center;
    font-family: "Didot";
}

.footer-cont {
	margin: 0;
	padding: 2%;
}

.github-icon {
    width: 2%;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: border 0.3s ease;
}

.github-icon:hover {
    border: 1px solid white;
}



/*SECOND PAGE*/
/*title secondary pages*/
.big-title {
    font-family: "Anton";
    text-align: center;
    color: #51989A;
    font-size: 9vw;
    padding-top: 10%;
}

/*general p for secondary pages*/
.general-p {
	text-align: justify;
	font-size: 1.3vw;
	padding: 0 8%;
    color: black;
    font-family: "Didot";
}

.general-p a {
    font-weight: bold;
    text-decoration: none;
    color: #ca2e68;
}

.general-p a:hover {
    color: #51989a;
}


/*metadata analysis*/
.centered-table {
    margin: 2rem auto;
    background-color: white;
    border-color: #CA2E68;
    border-collapse: collapse;
    width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.centered-table th, .centered-table td {
    border: 1px solid #CA2E68;
    padding: 12px 16px;
    text-align: center;
    color: black;
}

.centered-table th {
    background-color: rgba(226, 242, 240, 0.7);
    color: #CA2E68;
    font-family: "Anton";
    font-size: 1.6vw;
}

.centered-table td {
    font-family: "Didot";
    color: black;
    font-size: 1.3vw;

}

.table-title {
    font-family: "Anton" !important;
    font-size: 1.4vw !important ;
}



/*theoretical and conceptual*/
.theor-img {
    width: 50%;
    display: block;
    margin: 0 auto;
    padding-top: 2%;
}

.image-box {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.main-img {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
}

.main-img-concept {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.zoom-icon:hover {
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 90vh;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/*prefixes*/
pre {
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
    color: #333;
    font-size: 1vw !important;
    text-align: center;
    white-space: pre-wrap;
  }

  code {
    display: inline-block;
    text-align: left;
  }


.code-p {
    margin-bottom: -2%;
    margin-top: -2%;
    text-align: center;
}


/*THIRD PAGE*/
/*csv tables*/
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    background: #CA2E68;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Anton";
    font-size: 1.8vw;
    color: black;
  }

  .tab-btn.active,
  .tab-btn:hover {
    background: #a2345c;
    color: white;
  }

  .obj-table {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
    background-color: white;
  }

  .obj-table th, .obj-table td {
    border: 1px solid #CA2E68;
    padding: 0.5rem;
    text-align: center;
    font-size: 1.2vw;
    font-family: "Didot";
  }

  .obj-table th {
    background-color: rgba(226, 242, 240, 0.7);
    font-family: "Anton" !important;
  }


/* rdf ttl*/
pre.code-content {
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: monospace;
    color: #333;
    font-size: 0.95rem;
    background-color: rgba(226, 242, 240, 0.5);
    width: 90%;
    margin: auto;
    white-space: pre-wrap;
}


/*tei*/
.subtitle-tei {
    font-family: "Anton";
    text-align: center;
    color: black;
    font-size: 3vw;
    margin-bottom: 2%;
}

.p-tei {
    text-align: justify;
	font-size: 1.2vw;
	padding: 0 2%;
    color: black;
    font-family: "Didot";
}

.p-tei p {
    margin-bottom: 2%;
}

.p-tei a {
    text-decoration: none;
    font-weight: bold;
    color: #ca2e68;;
}

.p-tei a:hover {
    color: #51989A;
}


/*book cover*/
.book-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.book-wrapper {
    text-align: center;
    width: 80%;
    padding-top: 15%;
    max-width: 600px;
}

.book-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: -1.6vw -0.2vw 2.4vw 0.6vw rgba(0, 0, 0, 0.5);
}

@media screen and (min-width: 768px) and (min-height: 600px) {
    .book-container {
      height: 100vh;
      align-items: center;
      padding: 0;
    }
}

.read-more-btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 1vw 2vw;
    background-color: rgba(202, 46, 104, 0.4);
    color: black;
    border: none;
    cursor: pointer;
    font-size: 2vw;
    font-family: "Anton";
    border-radius: 1vw;
    white-space: nowrap;
    max-width: 100%;
}

.read-more-btn:hover {
    color: white;
    background-color: #CA2E68;
}


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

.modal-book-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    height: 80%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-book-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-book {
    color: black;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

  .close-book:hover {
    color: #CA2E68;
  }
