/*
    CSS classes for Welcome page.
 */

.welcome_container {
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*
    container at the top level of welcome page
*/

.toplevel_welcome_div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*
    8Knot logo and mission statement text.
*/

.welcome_callout_section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome_callout_section img {
    border-radius: 20px;
    height: 250px;
    width: 250px;
    margin-bottom: 10px;
}

.welcome_callout_section p {
    font-size: 36px;
    text-align: center;
    max-width: 1000px;
    min-width: 500px;
}


/*
    Tabs section
*/

.welcome_instructions_section {
    width: 100%;
}

.tab_section_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card_section_container {
    margin-top: 10px;
    width: 95%;
    background-color: #32383e;
    padding: 15px 0px;
    margin-bottom: 20px;
    border-radius: 10px;
}


/* Wrapper to make a div centered */

.card_section_container_centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*
    Top header and paragraph on
    card section
*/

.card_section_description {
    width: 75%;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card_section_description p {
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}


/*
    Container of row of card items
 */

.card_section_body {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.card_section_body_vertical {
    flex-direction: column;
}


/*
    Cards describing application
 */

.info_card {
    margin: 5px;
    padding: 0px 5px;
    width: 30%;
}

.info_card h2 {
    text-align: center;
}

.info_card p {
    font-size: 16px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}


/*
    Styling for architecture components
*/

.architecture_section {
    flex-wrap: wrap;
}

.architecture_section_part {
    width: 45%;
}

.architecture_image {
    display: block;
    height: auto;
    border-radius: 15px;
    /* set so that items will wrap */
    min-width: 487px;
    min-height: 437px;
}

.architecture_description p {
    padding-left: 10px;
}


/*
    Styling for plotly instruction section
*/

.instruction_card {
    margin: 5px;
    padding: 0px 5px;
}

.instruction_card p {
    font-size: 16px;
    padding-left: 10px;
    padding-right: 10px;
}

.instruction_card_body {
    width: 45%;
    min-width: 300px;
}

.centered_img {
    display: flex;
    justify-content: center;
}

.plotly_instructions_section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}


/*
     For arrow-separated instruction images
 */

.plotly_instructions_section_img {
    width: 30%;
    min-width: 300px;
}

.arrow_icon {
    width: 100px !important;
    height: 100px;
    background-color: transparent;
}


/*
    For instruction cards that are
    50/50 text and image
 */

.instruction_card_split {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}


/*
    to prevent image from
    overflowing its parent div.
*/

.instruction_image {
    height: auto;
    width: 100%;
    max-width: 100%;
}


/*
    If an image is too big,
    scale it down slightly. */

.scale_smaller {
    height: 75%;
    width: 75%;
}

body h2,
body h4,
body h5,
body h6 {
    color: #9fc2e8;
}


/*
    Landing Page Styles
*/

.landing-page-hero {
    transition: all 0.3s ease-in-out;
}

.landing-page-hero:hover {
    transform: translateY(-2px);
}

.learn-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learn-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.learn-button:active {
    transform: translateY(0);
}


/* Animation for welcome content slide down */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
}

.welcome-content-enter {
    animation: slideDown 0.4s ease-out;
}

.welcome-content-exit {
    animation: slideUp 0.3s ease-in;
}


/* Tab styling for dark theme */

.tab-content {
    background-color: #1D1D1D !important;
    color: white !important;
    border: none !important;
}

.tab-selected {
    background-color: #404040 !important;
    color: white !important;
    border-bottom: 2px solid #667eea !important;
}

.tab-content .tab-parent {
    background-color: #1D1D1D !important;
}


/* Smooth icon rotation */

.learn-button-icon {
    transition: transform 0.3s ease;
}

.learn-button-icon.rotated {
    transform: rotate(180deg);
}
