@charset "utf-8";

/* Navigation Bar */
.navbar {
    background: rgb(50, 100, 150);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-family: "Oswaldfont", Arial, sans-serif;
    font-size: 18px;
    padding: 10px;
    transition: background 0.3s, color 0.3s;
}

.navbar a:hover {
    background: white;
    color: rgb(50, 100, 150);
    border-radius: 5px;
}

/* Footer */
#logo, #logo2 {
    border: none;
    box-shadow: none;
}

#logo {
    margin: auto;
}

#logo2 {
    margin-left: 1200px;
}

/* Font Faces */
@font-face {
    font-family: "Oswaldfont";
    src: url("Oswald-VariableFont_wght.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Robotofont";
    src: url("RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf");
    font-weight: normal;
    font-style: normal;
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(182, 231, 246);
    margin: 0;
    padding: 60px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Oswaldfont", Arial, sans-serif;
    letter-spacing: 1px;
    line-height: 1.5;
    color: rgb(0, 10, 90);
    margin: 20px 0;
}

p, .p3 {
    font-family: "Robotofont", Helvetica, sans-serif;
    margin: 15px 0;
}

/* Links */
a {
    text-decoration: underline;
    color: #0077cc;
}

/* Lists */
ul, ol {
    font-family: "Robotofont", Helvetica, sans-serif;
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

/* Media */
img {
    display: block;
    border: 5px solid white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Centered Figures */
figure {
    display: block;
    text-align: center;
    margin: auto;
}

figure img {
    display: block;
    margin: auto;
}

/* Home Page */
.camouflage,
.what-is {
    text-align: left;
}

.octopus-about {
    text-align: right;
    padding-left: 500px;
}

.octopus-about2 {
    text-align: left;
    padding-right: 500px;
}

/* Habitat Page */
#video {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background: rgb(0, 10, 90);
    height: 75vh; 

}

#video video {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.figcap2 {
    color: white;
    font-family: "Robotofont", Helvetica, sans-serif;
}

/* Centered Figures */
#fig1, #fig2, #fig4, #fig5 {
    display: block;
    text-align: center;
    margin: auto;
}

/* Text Alignment */
.found-all,
.habitat-p2 {
    text-align: left;
    padding-right: 500px;
}

.habitat-p,
.habitat-p3 {
    text-align: right;
    padding-left: 500px;
}

/* Behavior Page */
.behavior-page {
    background-color: rgb(182, 231, 246);
    background-image: url("octopusinajar.jpg");
    background-repeat: no-repeat;
    background-position: right top;
    background-attachment: fixed;
    background-size: auto 100vh;
}

#behavior,
#behavior2,
#behavior3 {
    text-align: left;
    padding-right: 650px;
}
#fig6 {
    display: block;
    text-align: left;
    margin-left: 0; /* Ensures no extra margin on the left */
}

#fig6 img {
    display: block;
    margin: 0; /* Removes automatic centering */
}

/* About Page */
.about-page {
    background-image: url("A435B6D7-DDB7-499C-B403-774CBED60B68_1_105_c.jpeg");
    background-repeat: no-repeat;
    background-position: left top;
    background-attachment: fixed;
    background-color: rgb(182, 231, 246);
}

.About,
.learn,
.intro,
.subject {
    text-align: right;
}

.aboutme,
.Midterm,
.Midterm-p,
.subject-p {
    text-align: left;
    padding-left: 750px;
}
