body {
    background-color: rgba(25, 25, 25, 1);
}

#hero_container {
    position: absolute;
    width: 100%;
    min-height: 100%; /* allow exceeding 100% height when the viewport is smaller than the height of #hero background -- which allows the #hero background to not be clipped scrolling down */
    
    max-width: 2000px;
    max-height: calc(1500px - 490px);
    
    left: 50%;
    transform: translateX(-50%);
    overflow-x: hidden;
}

#hero {
    position: absolute;
    
    width: 2000px;
    height: 100%;
    
    left: 50%;
    transform: translateX(-50%);
    
    background-image: url('/static/images/hands_hero.png');
    background-size: 2000px 1500px;
    background-repeat: no-repeat;
    background-position: 0px -490px;
}

.text_dimming_gradient {
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
        
    background: rgb(0,0,0);
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0px, rgba(0,0,0,0.3) calc(470px + 56px), rgba(0,0,0,0) calc(470px + 56px + 100px), rgba(0,0,0,0) 100%);
}

#text_container {
    position: relative;
    z-index: 2;
    padding-top: 48px;
    margin-left: 56px;
    max-width: 470px;
}

#text_container #title {    
    width: 192px;
    height: 55px;
    
    background-image: url('/static/images/thoughtful_investors_title.png');
    background-size: 192px 55px;
    background-repeat: no-repeat;
}

#text_container #exec_summary {
    margin-top: 32px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    
}

#steps {
    margin-top: 48px;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step_bubble {
    width: fit-content;
    display: flex;
    flex-direction: row;
    gap: 8px;
    
    background-color: rgba(242, 242, 242, 0.7);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    
    color: #000000;
}


.step_bubble .step_icon {
    width: 48px;
    flex-shrink: 0;
    height: 48px;
    background-size: 48px 48px;
    background-repeat: no-repeat;
}

.step_bubble .step_icon[index="1"] {
    background-image: url('/static/images/step_one_icon.png');
}

.step_bubble .step_icon[index="2"] {
    background-image: url('/static/images/step_two_icon.png');
}

.step_bubble .step_text {
    align-self: center;
    font-weight: bold;
}

.step_bubble .step_text a, .step_bubble .step_text a:link, .step_bubble .step_text a:visited, .step_bubble .step_text a:hover {
    text-decoration: underline;
}

/* When screen narrowness would lead to text colliding with iPhone */
@media only screen and (max-width:1025px) {
    #hero_container {
        max-height: calc(1500px);
    }
    
    #hero {
        background-position: -250px 0px;
    }
    
    #text_container {
        margin-left: 24px;
        margin-right: 24px;
    }
        
    .step_bubble {
        width: 100%;
        background-color: rgba(242, 242, 242, 0.9);
    }
}

/* Viewport larger than our hero image */
@media only screen and (min-width: 2000px), (min-height: calc(1500px - 490px)) {
    #hero_container {
        top: 50%;
        transform: translate(-50%, -50%);
        
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 0px;
    }
    
    /* When the screen is tall enough to display the whole image, use height instead of min-height to ensure the top: 50% enabled above has something to measure against */
    @media only screen and (min-height: calc(1500px - 490px)) {
        #hero_container {
            height: 100%;
            min-height: 0%;
        }
    }
    
    @media only screen and (min-width: 2000px) {
        #hero_container {
            border-left: 1px solid rgba(255, 255, 255, 0.15);
            border-right: 1px solid rgba(255, 255, 255, 0.15);            
            border-radius: 8px;
        }
    }
}

@media(-webkit-min-device-pixel-ratio: 2) {
    #hero {
        background-image: url('/static/images/hands_hero@2x.png');
    }
    
    #text_container #title {
        background-image: url('/static/images/thoughtful_investors_title@2x.png');
    }
    
    .step_bubble .step_icon[index="1"] {
        background-image: url('/static/images/step_one_icon@2x.png');
    }
    
    .step_bubble .step_icon[index="2"] {
        background-image: url('/static/images/step_two_icon@2x.png');
    }
}

@media(-webkit-min-device-pixel-ratio: 3) {
    #hero {
        background-image: url('/static/images/hands_hero@3x.png');
    }
    
    #text_container #title {
        background-image: url('/static/images/thoughtful_investors_title@3x.png');
    }
    
    .step_bubble .step_icon[index="1"] {
        background-image: url('/static/images/step_one_icon@3x.png');
    }
    
    .step_bubble .step_icon[index="2"] {
        background-image: url('/static/images/step_two_icon@3x.png');
    }
}