* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    background-color: #7b7f65;
}

/* Book */
.book {
    position: relative;
    width: 350px;
    height: 500px;
    transition: transform 0.5s;
}

.paper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1500px;
}

.front,
.back {
    background-color: #f5f5f5;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left;
    transition: transform 0.5s;
}

.front {
    z-index: 1;
    backface-visibility: hidden;
    border-left: 3px solid #7b7f65;
}

.back {
    z-index: 0;
}

.front-content,
.back-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.back-content {
    transform: rotateY(180deg);
}

/* Paper flip effect */
.flipped .front,
.flipped .back {
    transform: rotateY(-180deg);
}

/* Navigation Buttons */
button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    margin: 10px;
}

button:focus {
    outline: none;
}

button:hover i {
    color: #636363;
}

i {
    font-size: 50px;
    color: gray;
}

/* Stack order */
#p1 { z-index: 4; }
#p2 { z-index: 3; }
#p3 { z-index: 2; }
#p4 { z-index: 1; }

/* Cover Page */
.text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.filled {
    color: black;
}

.outlined {
    color: transparent;
    -webkit-text-stroke: 1px black;
}

.subtitle {
    font-size: 1.1rem;
    color: transparent;
    -webkit-text-stroke: 0.7px black;
    margin-bottom: 1rem;
}

.cover-img {
    max-width: 180px;
    height: auto;
    border-radius: 10px;
    border: 2px solid #7b7f65;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Table of Contents */
.toc {
    text-align: left;
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 10px;
    width: 80%;
    max-width: 280px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.toc h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.toc ol {
    list-style-position: inside;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    padding-left: 0;
}

/* Section Containers */
.about-section,
.education-section,
.experience-section,
.projects-section,
.skills-section,
.contact-section {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Section Headings */
.about-section h2,
.education-section h2,
.experience-section h2,
.projects-section h2,
.skills-section h2,
.contact-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Paragraphs */
.about-section p,
.education-section ul,
.experience-section ul,
.projects-section ul,
.skills-section ul,
.contact-section p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* Lists */
.education-section ul,
.experience-section ul,
.projects-section ul,
.skills-section ul {
    list-style-type: none;
    padding-left: 0;
}

.education-section li,
.experience-section li,
.projects-section li,
.skills-section li {
    margin-bottom: 0.8rem;
}

/* Projects & Contact Links */
.projects-section a,
.contact-section a {
    color: black;
    text-decoration: none;
}

.projects-section a:hover,
.contact-section a:hover {
    text-decoration: underline;
}

/* Contact Specific Overrides */
.contact-section {
    background-color: #7b7f65;
    color: white;
    text-align: center;
}

.contact-section a {
    color: white;
    margin: 0 0.5rem;
}

.contact-section p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
