@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400&display=swap');
html{
    overflow-x: hidden;
}
body {
    font-family: 'Merriweather', serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: #6F4E37;
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
}

.science-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.science-section {
    background-color: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.science-section h2 {
    color: #6F4E37;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.science-image{
    width: 80%;
    margin: auto;
    /* height: 50vh; */
    overflow: hidden;
    border-radius: 10px;
}
.science-icons{
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: auto;
}
.science-icons img{
    width: 120px;
    height: 120px;
}
.science-image img {
    width: 100%;
    height: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
    object-fit: contain;

}

.science-section p {
    font-size: 1.2rem;
    font-family:monospace;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
}

.science-image:hover  img{
    transform: scale(1.03);
}

footer {
    background-color: #6F4E37;
    color: white;
    text-align: center;
    padding: 10px;
}

.science-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.science-section:hover::after {
    width: 100%;
    transition: width 1s ease-in-out;
}
@media (max-width: 750px) {
    .science-image{
        width: 100%;
    }
}
