/* Basic reset */
* {
    font-family: 'Parisienne', cursive;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.navbar {
    height: 80px; /* Adjusted height */
    display: flex;
    align-items: center;
    background-color: rgb(220, 241, 250);
    padding: 0 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    z-index: 1000; /* Ensure navbar is on top */
}

.navbar:hover {
    background-color: rgb(200, 230, 250);
}

.navbar-brand img {
    height: 60px;
    margin-right: 20px;
    margin-left: 100px; /* Add a default left margin */
    transition: transform 0.3s ease, margin-left 0.3s ease; /* Add transition for margin-left */
}

@media (max-width: 1200px) {
    .navbar-brand img {
        margin-left: 15px; /* Adjust left margin for smaller screens */
    }
}

@media (max-width: 992px) {
    .navbar-brand img {
        margin-left: 10px; /* Adjust left margin for even smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        margin-left: 5px; /* Adjust left margin for smallest screens */
    }
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"%3E%3Cpath stroke="currentColor" stroke-width="2" d="M5 7h20M5 15h20M5 23h20" /%3E%3C/svg%3E');
}

/* Style for the collapsible navbar menu */
.navbar-collapse {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
}

/* Ensure that the menu items are hidden by default */
.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 10px; /* Space between items */
}

.navbar-nav .nav-item {
    margin: 0;
}

.navbar-nav .nav-link {
    display: block;
    text-decoration: none;
}

.extra_box {
    height: 60px;
    width: 120px; /* Adjusted width */
    border-radius: 10%; /* Rounded corners on the left */
    background-color: rgb(220, 241, 250);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
    color: black; /* Ensure text color is visible */
    z-index: 1001; /* Ensure extra_box is on top */
}

.extra_box:hover {
    border: 2px solid black;
    background-color: aqua;
    opacity: 100%;
    border-radius: 10%;
    transform: scale(1.05);
}

footer {
    background-color: rgb(220, 241, 250);
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.middle_area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 35px;
    margin-bottom: 35px;
}

.experience {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.experience_image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.experience_image img {
    width: 100%;
    height: auto;
    max-width: 2000px; /* Significantly increased max-width */
    max-height: 1200px; /* Significantly increased max-height */
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.experience_text {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    text-align: center; /* Center text horizontally */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.experience_text h1 {
    font-size: 18px; /* Adjusted font size */
    line-height: 1.5;
}

@media (max-width: 768px) {
    .experience {
        flex-direction: column;
        text-align: center;
    }

    .experience_image {
        order: 1; /* Image first on smaller screens */
    }

    .experience_text {
        order: 2;
        text-align: center; /* Center text horizontally */
    }

    .experience_image img {
        max-width: 100%; /* Ensure image fits within container on smaller screens */
        max-height: 800px; /* Ensure image fits within container on smaller screens */
    }
}

.my_por {
    padding: 20px;
    background-color: rgb(220, 241, 250);
}

.third_box {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.class_10 {
    background-color: rgb(220, 241, 250);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px; /* Improved margin */
}

.class_10_area {
    width: 100%;
    max-width: 1100px;
    border-radius: 30px;
    border: 2px solid black;
    display: flex;
    flex-direction: row;
    padding: 20px; /* Improved padding */
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px; /* Improved margin */
}

.class_10_image {
    text-align: center;
}

#class10_image_image {
    opacity: 1;
    height: 300px;
    max-width: 300px;
    margin: 20px;
    transition: transform 0.5s ease;
}

.class_10_written_part {
    background-color: rgb(13, 197, 244);
    border-radius: 30px;
    flex: 1 1 auto;
    padding: 20px;
    box-sizing: border-box;
    max-width: calc(100% - 340px); /* Adjust based on image size */
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#class10_written_written {
    font-size: 25px;
    font-family: 'Parisienne', cursive;
    margin: 0;
    overflow-wrap: break-word;
}

#school {
    font-size: 25px;
    margin: 0;
}

.trial {
    margin-top: 23px;
    background-color: rgb(140, 210, 240);
    opacity: 1;
    border-radius: 30px;
    padding: 20px;
    font-size: 20px;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.text_extra {
    font-size: 25px;
}

#class10_image_image.animate {
    opacity: 1;
    animation: slideInFromLeft 1s forwards;
}

.class_10_written_part.animate {
    opacity: 1;
    animation: slideInFromRight 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries for Responsiveness */

@media (max-width: 1200px) {
    .class_10_area {
        flex-direction: column;
        align-items: center;
    }

    .class_10_written_part {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    #class10_image_image {
        height: 200px;
        max-width: 200px;
    }

    #class10_written_written, #school {
        font-size: 20px;
    }

    .trial {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .class_10_area {
        flex-direction: column;
        align-items: center;
    }

    .class_10_written_part {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    #class10_image_image {
        height: 200px;
        max-width: 200px;
    }

    #class10_written_written, #school {
        font-size: 18px;
    }

    .trial {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .class_10_area {
        flex-direction: column;
        align-items: center;
    }

    .class_10_written_part {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    #class10_image_image {
        height: 150px;
        max-width: 150px;
    }

    #class10_written_written, #school {
        font-size: 16px;
    }

    .trial {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .class_10_area {
        flex-direction: column;
        align-items: center;
    }

    .class_10_written_part {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    #class10_image_image {
        height: 100px;
        max-width: 100px;
    }

    #class10_written_written, #school {
        font-size: 14px;
    }

    .trial {
        font-size: 12px;
    }
}

.section {
    display: none;
}

.toggle-buttons button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.toggle-buttons button:hover {
    background-color: #0056b3;
}

.section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section.visible {
    display: block;
    opacity: 1;
}

