/* 

Background: #F5F1ED Off white peach sort of color
Accent 1: #cab8a3 Tan 
Accent 2: #DAD2BC Beige
Font 2: #063218 Dark Green 
Header background color: #532a06 Dark Brown 

-- AP --
*/


/* Global Styles -- AP -- Some global styles that we have set to help provide some consistency for our web design */ 

body {
    background-color: #F5F1ED; 
    margin: 0 auto;
}

h1 {
    font-family:Georgia, 'Times New Roman', Times, serif;
}

.width_set{
    max-width: 95%;
    margin: 0 auto;
}

header {
    text-align: center;
    background-color: #532a06; 
    color: white; 
    width: 100%; 
    display: flex; 
    flex-direction: column;
    background-image:url('images/horizontalgreenleaves.png'); 
    background-size: cover; 
    background-position: center;
}

header h1 {
    background-color: rgba(0, 0, 0, 0.823);
    width: 700px;
    margin: 0 auto;
    margin-top: 20px;
    border-radius: 10px;
    padding: 5px;

}


/* The media query's are implemented throughout based on information that I came across in Ws3Schools and also based on recommendation from ChatGPT for the best way to adjust the navigation bar on a site so that it adjusts to smaller screens
When the screen gets to a certain size, the nav links stack on top of each other rather than sit horizontally so that they all fit properly on the page  -- AP -- */ 

nav {
    background-color: #cab8a3;
    min-height: 65px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin: 10px 20px 10px 20px; 
}

nav ul {
    display: inline-flex;
    gap: 0 50px;
    font-size: 18px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    margin: 0; 
    padding: 15px; 
}

nav li a{
    text-decoration: none; 
    color: #063218;
    font-weight: bold; 
    font-size: 25px;
}

nav li a:hover{
    text-decoration: underline;
    color: #4169E1;
}

/* Media query for smaller screens -- Note that a lot of this is based on the specific recommendation from ChatGPT for how to set our nav bar to be responsive to screen adjustment, but 
I made sure to double check exactly what a media query was from w3schools -- AP */

@media (max-width: 800px){
    nav {
        margin: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav li {
        width: 100%; 
        text-align: center;
    }

    nav li a {
        font-size: 20px;
    }
}


/*start of home page*/


/* Welcome box updates -- AP - Designs for the welcome box on our page to make the home page more engaging and introduce users to the site  */ 

.welcome {
    background-color: #532a06; 
    color: white; 
    width: 350px;
    margin-top: 10%;
    margin-left: 10%;
    padding: 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 25px;
    text-align:center;
    box-shadow: 2px 2px 2px 2px black;
}

.welcome p a{
    text-decoration: none;
    color: white;
}

.welcome p a:hover{
    text-decoration: underline;
    color:#4169E1;
}


/*end of home page*/




/* Start of About Us Page -- Designs that are being set on our about us page, with some of the specific designs I set to my own bio that we then implemented for each other -- AP --  */ 


/* Areyana Section -- AP */ 

.areyana_about_me{
    background-color: #DAD2BC; 
    border-color: black; 
    border: 5px;
    border-style: solid;
    border-radius: 10px;
    padding: 15px;
}

.areyana_about_me h2{
    text-align: center;
    color: #4169E1;
}

.areyana_about_me img {
    display: block;
    margin: 0 auto;
}

.areyana_paragraph {
    padding-top: 25px;
    font-size: 20px;
}


/* Flex for layout -- AP -- Setting the layout on the about us page to be a flexbox so that our sections can sit next to each other and have some aesthetic appeal */ 

.about_us_container {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.about_us_container section {
    max-width: 450px;
}

.about_us_container p {
    line-height: 1.3em;
}




/* Faizons about me section FA */
.faizon_about_me h2{
    text-align: center;
    color: #4169E1;
}

.faizons_bio{
    padding-top: 25px;
    font-size: 20px;
}

.faizon_about_me{
    background-color: #DAD2BC; 
    border-color: black; 
    border: 5px;
    border-style: solid;
    border-radius: 10px;
    padding: 15px;
}

.faizon_about_me img{
	display: block;
    margin: 0 auto;

}

/* end of Faizons about me section FA */


/* End of About US Page */ 



/* Tech Hero Page Start -- AP -- Design and layout for the tech heroes and their boxes */ 

.hero_image {
    width: 450px;
    max-width: 100%;
    display: block;
    margin: 0 auto; 
    box-shadow: 2px 2px 2px 2px;
}

.hero_heading {
    text-align: center;
}

.hero_paragraph {
    width: 75%;
    margin: 0 auto;
    margin-top: 15px;
    text-align: center;
    line-height: 1.3em;
    border-style: solid;
    font-size: 20px;
    padding: 15px;
}

.tech_heroes {
    background-color: #DAD2BC; 
    border-color: black; 
    border: 5px;
    border-style: solid;
    border-radius: 10px;
    padding: 15px;
    margin: 20px;
}

.tech_heroes a {
    text-decoration: none; 
    color: black; 
}

.tech_heroes a:hover{
    text-decoration: underline;
    color: #4169E1;
}



/* Resources Page Start -- AP -- Designs for the resources page and the boxes that all of the content is within -- Also messed around with the images and the captions here so that they are aligned with the image and also adjust to different screen sizes */ 

.resource_headings {
    background-color: #cab8a3; 
    border-color: black; 
    border: 5px;
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.resource_paragraphs{
    background-color: #DAD2BC; 
    border-color: black; 
    border: 5px;
    border-style: solid;
    border-radius: 10px;
    padding: 30px 50px 30px 50px;
    line-height: 1.3em;
    margin-bottom: 10px;
    font-size: 20px;
}

.inequality_graphics {
    display:flex; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.inequality_graphics img {
    max-width: 400px;
}

.figure_caption {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    max-width: 400px;
}

.racial_attitudes_caption{
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
}

.intersectionality_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.intersectionality_container p {
    max-width: 500px;
    text-align:justify; 
    margin-right: 15px;
}

.long_paragraphs {
    max-width: 950px; 
    margin: 0 auto;
    margin-top: 10px; 
    margin-bottom: 20px;
}

.bias_videos {
    text-align: center;
}

.take_test {
    text-align: center;
}

/*Intersectionality bias test section -- FA */

.intersectionality_bias_test img{ 
    display: block;
    margin: auto;
    max-width: 100%;
}
/*End of intersectionality bias test section*/


.resources_images {
    width: 700px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}


.figure_caption_center {
    margin: 0 auto; 
}

.racial_attitudes_graph{
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-wrap: break-word;
    align-items: center;

}

.implicit_bias_videos {
    display: flex; 
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    height: 45px;
    width: 250px;
    background-color: #cab8a3;
    border-radius: 10px;
    font-size: 18px;
}

#resource_button {
    display: block;
    margin: 0 auto; 
}


button a {
    color: rgb(0, 0, 0);
}

button:hover {
    background-color: rgb(255, 255, 255); 
}


.external_resource_buttons {
    width: 200px;
    display: inline-block;
}

#external_resources{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: auto;
}

button a {
    text-decoration: none;
}



/* Start of Teachable Machine Page -- Teachable machines modal design and implementation with JS so that it shows when the user clicks the button and then with JS goes away when the user clicks "close" or out of the modal. It is also meant to adjust to different screen sizes. */

.about_our_model_paragraphs{
    font-size: 20px;
    line-height: 1.5em;
    width: 85%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.about_our_model_section {
    background-color: white;
    padding: 10px;
    margin-bottom: 30px;
    padding-top: 30px;
}


.modal_container {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 196, 133, 0.5);
    display: flex; 
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.modal_container.show{
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: white;
    width: 800px;
    max-width: 90%; 
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 10px;
    position: relative; 
}

@media (max-width: 600px){
    .modal{
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
    }
}

.modal_buttons_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal_button {
    text-align: center;
}

.modal_title {
    text-align: center;
    margin-bottom: 10px;
}

.modal_close{
    display: block;
    margin: 0 auto;
}

.project_statement_paragraphs{
    line-height: 1.5em;
    font-size: 20px;
}

.modal_close_top{
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #532a06;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    width: 200px;
}

.modal_close_top:hover{
    background-color: black;
    color: white;
}

@media (max-width: 600px){
    .modal_close_top{
    display: none;
    }
}

button {
    cursor: pointer;
}

.teachable_machines_headings{
    text-align: center;
}


/* Start of AI model page*/


.ai-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 50px 30px;
    border: 5px solid black;
    border-radius: 10px;
    background-color: #DAD2BC;
    color: #122932;
}

.ai-context-space {
    min-height: 120px;
    margin: 20px auto 25px;
    max-width: 600px;
}

.ai-context-space p {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
}

.ai-section h2,
.ai-section h3 {
    color: #532a06;
    text-align: center;
}

.ai-description {
    margin: 0 auto 25px;
    max-width: 600px;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

.ai-section button {
    width: auto;
    min-width: 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #532a06;
    color: white;
    cursor: pointer;
}

.ai-section button:hover {
    background: #063218;
}

.ai-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ai-controls button {
    margin: 0;
}

.ai-controls button:last-child {
    background: #063218;
}

.ai-section button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-status {
    margin: 20px 0;
    text-align: center;
}

.ai-status.is-error {
    color: #8b1e12;
    font-weight: bold;
}

.demo-video-title {
    text-align: center;
}

.demo-video {
    display: block;
    width: 100%;
    max-width: 900px;
    max-height: 600px;
    margin: 20px auto;
    border-radius: 10px;
    background: #122932;
}

.ai-section video:not([hidden]) {
    display: block;
    max-width: 100%;
    max-height: 400px;
    margin: 20px auto;
    border-radius: 10px;
    background: #122932;
}

#predictions {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

#predictions p {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: white;
    color: #122932;
    font-weight: bold;
}
