@font-face {
    font-family: 'Gator';
    src: url('./Gator3b-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    text-align: center;
}

/* Reset default margins and padding */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body, p {
    font-family: 'Gator';
    font-size: 5vw; /* Changed from 20vh to 5vw for responsive scaling */
}

.cover{
    background-image: url('cover.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(20vw, 50vw, 60vw);
}

.fieldnotes{
    margin-left: 25vw; 
    margin-top:20vw;
    font-size: 40vw;
}


.pg0 {
    background-image: url('insidecover.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(10vw, 18vw, 50vw);
}

.iflost{
    font-size: 40vw;
    margin-top: 20vw;
    margin-left: 20vw; 
    margin-right: 8vw;
}

.name{
    margin-left: 40vw; /* Fixed typo: margins-left → margin-left */
    margin-top: 0vw;
}

.nextpage{
    margin-left: 40vw;
    margin-top: 50vw;
}

.pg1 {
    background-image: url('leftside.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(10vw, 18vw, 30vw);
    margin-top: 0vh;
}

.date{
    margin-left: 20vw;
    margin-top: 20vw;
}

.entry1{
    font-size: 20vw;
    margin-left: 20vw;
}

.diagram1 img{  
    max-width: 20%;
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: 4vh;
}

.diagram2 img {
    max-width: 45%;
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: 3vh; /* Negative value moves image up */
}

.pg2 {
    background-image: url('leftside.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(10vw, 18vw, 30vw);
}

.entry2{
    font-size: 20vw;
    margin-left: 15vw;
    margin-right: 15vw;
}

.diagram3 img{
    max-width: 45%;
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: 5vh; /* Negative value moves image up */
}

.pg3 {
    background-image: url('rightside.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(10vw, 18vw, 30vw);
}

.entry3{
    font-size: 20vw;
    margin-left: 15vw;
    margin-right:10vw;
}

.montereycypress img{
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: 3vw;
}

.pg4{
    background-image: url('leftside.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(10vw, 18vw, 30vw);
}

.entry4 {
    font-size: 20vw;
    margin-left: 10vw;
    margin-right: 15vw;
}

.pg5{
    background-image: url('rightside.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(10vw, 18vw, 30vw);
}

.entry4-5{
    font-size: 20vw;
    margin-left: 15vw;
    margin-right: 10vw;
}

.sanddoodle img{
    max-width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: 3vw;
}

.stairs img{
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: 7vw;
}

.pg6 {
    background-image: url('leftside.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(10vw, 18vw, 28vw);
}

.entry6{
    font-size: 20vw;
    margin-left: 10vw;
    margin-right:15vw;
    margin-top: -3%;
}

.diagram6 img{
    max-width: 55%;
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: -3vh; /* Negative value moves image up */
}

.story-book{
    background-image: url('rightside.webp');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    font-size: clamp(10vw, 18vw, 30vw);
}

.title{
    font-size: 20vw;
    position: absolute;
    top: 20vw;
    left: 20vw;
    right: 10vw;
    bottom: 10vw;
 
}

.audio-player {
    position: absolute;
    top: 40vw;
    left: 25vw;
    right: 10vw;
    max-width: 60vw;
    z-index: 10;
}

.audio-player audio {
    width: 100%;
    max-width: 50vw;
    border-radius: 0.5vw;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1vw;
}

img.wrap-left {
    float: left;
    margin: 0 20px 20px 0;
    width: 150px;
    height: auto;
    border-radius: 8px;
}

img.wrap-right {
    float: right;
    margin: 0 0 20px 20px;
    width: 150px;
    height: auto;
    border-radius: 8px;
}

p {
    margin-bottom: 1em;
}

@media (max-width: 600px) {
    .content {
        padding: 8px;
    }
    img.wrap-left, img.wrap-right {
        float: none;
        display: block;
        margin: 0 auto 16px auto;
        width: 100%;
        max-width: 300px;
    }
    p {
        font-size: 4vw; /* Changed from 1.05em to 4vw for responsive scaling */
    }
} 

.prev-page-nav, .next-page-nav {
    position: fixed;
    bottom: 2vw;
    font-size: 5vw;
    color: #222;
    text-decoration: none;
    background: rgba(255,255,255,0.9);
    padding: 0.5em 1em;
    border-radius: 8px;
    z-index: 9999;
    font-family: inherit;
    display: block;
}
.prev-page-nav {
    left: 2vw;
}
.next-page-nav {
    right: 2vw;
}
.prev-page-nav:hover, .next-page-nav:hover {
    background: #eee;
} 