body {
    margin: 0;
    padding: 0;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    position: relative; /* Reference point for positioning */
    overflow: hidden; /* Hide anything outside the body */
    transition: transform 2s ease, opacity 2s ease; /* Smooth transition for zoom-in and fade-out */
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px; /* Rounded corners */
}

.openbtn:hover {
    background-color: #444;
}

/* On sidebar open, shift content */
#main.open-sidebar {
    margin-left: 250px; /* Same as sidebar width */
    width: calc(100% - 250px); /* Ensure content fills the remaining space */
}

/* Ensure content is centered when sidebar is closed */
#main {
    transition: margin-left .5s, width .5s;
    /*padding: 16px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    max-width: 90%;
    margin: 0 auto;
    width: 100%; /* Default full width when sidebar is closed */
}

/* Ensure content is centered when sidebar is closed */
#start-main {
    transition: margin-left .5s, width .5s;
    /*padding: 16px;*/
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100%;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    margin-left: 0;
    width: 100%; /* Default full width when sidebar is closed */
}

#start-main.open-sidebar {
    margin-left: 250px; /* Same as sidebar width */
    width: calc(100% - 250px); /* Ensure content fills the remaining space */
}


#letter {
    width: 90%;
    max-width: 1500px;
    background: #fbf7e9;
    border: 1px solid #e2d4b7;
    padding: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    line-height: 2;
    position: relative;
    background-image: repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 24px,
            #e2d4b7 25px
    ); /* Horizontal lines on the paper */
    background-size: 100% 25px;
}

#start-site {
    width: 100%;
    /*max-width: 1500px;*/
    /*background: #fbf7e9;*/
    /*border: 1px solid #e2d4b7;*/
    /*padding: 3rem;*/
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
    /*border-radius: 5px;*/
    /*line-height: 2;*/
    /*position: relative;*/
}


/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidebar {
        padding-top: 15px;
    }

    .sidebar a {
        font-size: 18px;
    }
}


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

/* Letter Container */
h1, h2, h3, h4, p {
    /*font-family: 'Great Vibes', cursive; !* Elegant handwritten font *!*/

    font-family: "Edu SA Beginner", serif;
    font-optical-sizing: auto;
    font-weight: 500; /* <weight>: Use a value from 400 to 700 */
    font-style: normal;
}

h1, h2 {
    text-align: center;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.7rem;
}

p {
    text-indent: 2em; /* Paragraph indentation */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Optional: Add a signature */
.signature {
    font-family: 'Dancing Script', cursive;
    text-align: right;
    font-size: 1.5rem;
    margin-top: 2rem;
}

/* Link to Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Great+Vibes&display=swap');

.sidebar .indented {
    padding-left: 50px; /* Adjust this value to control the level of indentation */
}


/*.responsive-iframe {*/
/*    width: 100%; !* Ensures the iframe takes up full width *!*/
/*    height: 60vh; !* Adjusts height relative to viewport height *!*/
/*    max-width: 100%; !* Ensures the iframe doesn’t overflow horizontally *!*/
/*    border: none; !* Optional, to remove iframe border *!*/
/*}*/

.edu-sa-beginner-hand-font {
    font-family: "Edu SA Beginner", serif;
    font-optical-sizing: auto;
    font-weight: 400; /* <weight>: Use a value from 400 to 700 */
    font-style: normal;
}


/**/
start-page-body {
    margin: 0;
    padding: 0;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    position: relative; /* Reference point for positioning */
    overflow: hidden; /* Hide anything outside the body */
    transition: transform 2s ease, opacity 2s ease; /* Smooth transition for zoom-in and fade-out */
}


.clickable-area {
    position: absolute;
    top: 60%; /* Adjust this value to move the rectangle lower */
    left: 55%; /* Horizontally center */
    width: 30%; /* Adjust the width of the rectangle */
    height: 20%; /* Adjust the height of the rectangle */
    background: transparent;
    border: none;
    cursor: pointer; /* Change cursor to pointer for interactivity */
    transform: translate(-50%, -50%); /* Center the rectangle relative to its top-left corner */
    z-index: 10; /* Ensure it appears above the image */
}

.clickable-area.open-sidebar {
    margin-left: 250px; /* Same as sidebar width */
    /*width: calc(100% - 250px); !* Ensure content fills the remaining space *!*/
}

.title {
    position: absolute;
    top: 11%; /* Adjust vertical position of the title */
    width: 100%; /* Make the title span full width */
    text-align: center; /* Center the text */
    font-size: 3rem; /* Adjust font size */
    color: white; /* White text for contrast */
    text-shadow: 2px 2px 5px black; /* Add a shadow for readability */
    z-index: 15; /* Ensure the title is above the image and rectangle */
    font-family: Arial, sans-serif; /* Choose a readable font */
    transition: width 0.5s ease; /* Smooth transition for the right positioning */

}

.subtitle {
    position: absolute;
    top: 63%; /* Position it in the lower half vertically */
    right: 30%; /* Position it towards the right side of the screen */
    width: auto; /* Let the width adjust based on content */
    text-align: center; /* Align the text to the right */
    font-size: 1.5rem; /* Adjust font size as needed */
    color: white; /* Ensure the subtitle text is readable */
    text-shadow: 2px 2px 5px black; /* Add a shadow for readability */
    z-index: 15; /* Ensure the title is above the image and rectangle */
    font-family: Arial, sans-serif; /* Choose a readable font */
    transition: right 0.5s ease; /* Smooth transition for the right positioning */
}

.subtitle.open-sidebar {
    right: calc(30% - 250px); /* Adjust the right position by adding the sidebar width */
}


.title.open-sidebar {
    width: calc(100% - 250px);
}

/* Style for video */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Place it above the image */
    overflow: hidden;
    display: none; /* Hide initially */
}

.letter-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.start-page-img {
    display: block;
    width: 100%;
    height: 100vh; /* Full viewport height */
    object-fit: cover; /* Scale the image without distortion */
    position: absolute;
    z-index: 0; /* Background behind everything else */
}