* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #1c283a;
}

body {
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    background-color: #1c283a;
    color: white;
    text-align: left;
    padding: 2%;
    padding-bottom: 0;
    width: 85%;
    height: auto;
    margin: 0 auto;
}

section {
    padding: 20px;
    text-align: center;
}

.highlight {
    background-color: rgb(55, 158, 255);
}

#main {
    background-color: #1c283a;
    min-height: 400px;
    width: 85%;
    margin: 0 auto;
    padding: 2%;
}

.main {
    display: flex;
    color: white;
    text-align: left;
}

.spacer {
    line-height: 1.6rem;
}

.main-title {
    font-size: 20px;
}

.main-text {
    max-width: 50%;
}

footer {
    background-color: #1c283a;
    color: white;
    text-align: center;
    padding: 10px;
}

hr {
    background-color: #494d55;
    border: none;
    height: 2px;
}

h1 {
    max-width: auto;
}

.header-text {
    margin-top: 20px;
}

.data {
    font-size: 22px;
    margin-top: 10px;
}

.data2 {
    font-size: 16px;
}

.data3 {
    font-size: 16px; 
    text-align: right; 
}

.data4 {
    font-size: 18px;
    cursor: pointer;
    color: rgb(55, 158, 255);
}

.section-left {
    width: 50%;
}

.scale-img {
    position: relative;
    width: 50%;
    margin-bottom: 15px;
    margin-left: 10px;
    margin-right: 60px;
}

.selfie-img {
    position: relative;
    width: 20%;
    margin-top: 25px;
    margin-left: 10px;
}

.peace-img {
    position: relative;
    width: 35%;
    margin-top: 25px;
    margin-left: 60px;
}

.section-right {
    flex: 1;
    max-width: 100%;
    text-align: center;
    margin-left: 20px;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.text-and-images {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

.butterfly-img {
    width: 300px;
    height: auto;
    margin-left: 100px;
}

.brain-img {
    width: 130px;
    height: auto;
    margin-left: 70px;
    margin-right: 20px;
}

.lonely-img {
    width: 100px;
    height: auto;
    margin-left: 20px;
}

.text-container {
    line-height: 1.6rem;
    text-align: center;
}

.main-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    width: 100%;
}

.vertical-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-right-text {
    margin-bottom: 20px;
    margin-left: 100px;
}

.img-grid {
    text-align: center;
}

#secondary {
    background-color: #1c283a;
    min-height: 400px;
    width: 85%;
    margin: 0 auto;
    padding: 2%;
    padding-bottom: 0;
    margin-bottom: 33px;
}

.section3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.div3 {
    display: flex;
    flex-direction: column;
    color: white;
    text-align: center;
    align-items: center;
    width: 20%;
    height: auto;
}

h3 {
    color: white;
    margin-bottom: 20px;
}

.book-img {
    width: 70%;
    height: auto;
}

.div3-right {
    transform: translateX(-23%);
    color: white;
    display: flex;
    flex-direction: column;
    width: 40%;
    margin: 0 auto;
    text-align: center;
}

.section3-right {
    text-align: left;
    line-height: 1.6rem;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.search-bar input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc; 
    border-radius: 5px;
    width: 200px;
    margin-right: 10px;
    margin-left: 50px;
    caret-color: white;
    color: white;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #3b74ca;
    color: white; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #355e9c;
}

@media screen and (max-width: 1440px) {
    header {
        width: 90%;
        height: auto;
    }

    #main {
        width: 90%;
    }

    #secondary {
        width: 90%;
    }

    .header-text {
        width: 22%;
    }

    .data {
        font-size: 1.2rem;
        margin: 0;
    }

    .div3-right {
        transform: translateX(-15%);
        width: 60%;
    }
}

@media screen and (max-width: 1024px) {
    header, #main, #secondary {
        width: 95%;
    }

    header {
        height: auto;
    }

    img.scale-img {
        width: 65%;
        margin: 0 auto;
    }

    img.selfie-img {
        width: 30%;
        margin: 0 auto;
        margin-left: 10px;
    }

    img.peace-img {
        margin: 0;
        margin-left: 50px;
        width: 50%;
    }

    .hide-br {
        display: none;
    }

    .data {
        font-size: 1.1rem;
    }

    .search-bar {
        margin-right: 10px;
    }

    .header-text {
        margin-left: 25px;

    }

    img.lonely-img,
    img.brain-img {
        margin: 0;
    }

    .section-right {
        width: 35%;
        margin: 0;
    }
}

@media screen and (max-width: 768px) {
    header, #main, #secondary {
        width: 100%;
    }

    header {
        height: 280px;
    }

    #main {
        padding-right: 20px;
    }

    .main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .center-content {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .text-and-images {
        display: flex;
        justify-content: left;
    }

    .text-container {
        position: relative;
        max-width: 300px;
        margin: 0 20px;
    }

    .main-text {
        max-width: 95%;
        line-height: 1;
    }

    .header-text {
        margin-right: 10px;
        margin-left: 10px;
    }

    .section-right {
        margin: 0 auto;
        height: auto;
    }

    .main-right-text {
        margin: 0;
        margin-top: 60px;
        margin-bottom: 20px;
    }

    img.peace-img {
        margin: 0;
        margin-top: 40px;
    }

    h4 {
        text-align: left;
    }

    .search-bar input[type="text"] {
        margin: 0;
        margin-bottom: 10px;
        width: 80%;
    }

    .search-bar {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        margin-right: 0;
        margin-bottom: 0;
    }

    .brain-img {
        width: 35%;
    }

    .lonely-img {
        width: 17%;
    }

    .butterfly-img {
        width: 65%;
        margin-left: 0;
        
    }

    .div3 {
        width: 100%;
    }

    .scale-img,
    .selfie-img {
        width: 80%;
        margin: 10px auto;
    }

    .div3-right {
        transform: none;
        width: 100%;
        padding: 20px;
        padding-left: 0;
    }
}

@media screen and (max-width: 480px) {
    header {
        display: flex;
        background-color: #1c283a;
        color: white;
        text-align: left;
        padding: 2%;
        padding-bottom: 0;
        width: 90%;
        height: auto;
        margin: 0 auto;
        flex-direction: column;
    }
    
    section {
        padding: 20px;
        text-align: center;
    }
    
    #main {
        background-color: #1c283a;
        min-height: 400px;
        width: 90%;
        margin: 0 auto;
        padding: 2%;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .text-container {
        position: relative;
        max-width: 300px;
        margin: 10px 20px;
    }

    .main {
        display: flex;
        flex-direction: column;
        color: white;
        text-align: left;
    }
    
    .spacer {
        line-height: 1.6rem;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .main-text {
        max-width: 100%;
    }
    
    footer {
        background-color: #1c283a;
        color: white;
        text-align: center;
        padding: 10px;
    }
    
    hr {
        background-color: #494d55;
        border: none;
        height: 2px;
    }
    
    h1 {
        max-width: auto;
    }
    
    .header-text {
        margin-top: 20px;
        width: auto;
        text-align: center;
    }
    
    .data {
        font-size: 22px;
        margin-top: 10px;
    }
    
    .data2, .data3, .data4 {
        font-size: 16px;
    }
    
    .data3 {
        text-align: center;
    }
    
    .section-left {
        width: 100%;
    }
    
    .section-right {
        width: 90%;
        margin: 0 auto;
        height: auto;
    }

    .scale-img {
        width: 100%; 
        margin: 15px 0;
    }
    
    .selfie-img {
        width: 40%;
        margin: 25px auto;
    }
    
    img.peace-img {
        width: 60%;
        margin-top: 40px;
        margin-bottom: 0;
    }
    
    .center-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .text-and-images {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .butterfly-img, .brain-img {
        width: 100%;
        max-width: 300px;
    }
    
    .lonely-img {
        width: 100%;
        max-width: 200px;
    }

    .vertical-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .main-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .main-right-text {
        margin-bottom: 20px;
        margin-left: 0;
    }
    
    .img-grid {
        text-align: center;
    }
    
    #secondary {
        background-color: #1c283a;
        min-height: 400px;
        width: 90%;
        margin: 0 auto;
        padding: 2%;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .section3 {
        flex-direction: column;
    }
    
    .div3 {
        display: flex;
        flex-direction: column;
        color: white;
        text-align: center;
        align-items: center;
        width: 100%;
        height: auto;
    }
    
    h3 {
        color: white;
        margin-bottom: 20px;
    }
    
    .book-img {
        width: 70%;
    }
    
    .div3-right {
        transform: translateX(0);
        color: white;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        padding: 0;
        margin-top: 40px;
    }
    
    .section3-right {
        text-align: left;
        line-height: 1.6rem;
    }
    
    .search-bar {
        display: flex;
        flex-direction: column; 
        justify-content: center;
        margin-bottom: 40px;
        margin-top: 20px;
    }
    
    .search-bar input[type="text"] {
        padding: 10px;
        border: 1px solid #ccc; 
        border-radius: 5px;
        width: 80%;
        margin: 10px auto;
    }
    
    button.input-button {
        width: 35%;
    }

    form.search-bar {
        align-items: center;
    }

    .search-bar button {
        padding: 10px 15px;
        background-color: #3b74ca;
        color: white; 
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .search-bar button:hover {
        background-color: #355e9c;
    }
}

@media screen and (max-width: 480px) {
    header {
        text-align: center;
    }

    img.selfie-img {
        width: 60%;
        margin: 0;
        margin-top: 20px;
    }

    img.scale-img {
        width: 100%;
        margin-top: 20px;
    }

    p.data {
        margin: 0;
    }
}