/* 
Style guide:

Main header red: #F3190D 
Other red: #fb4b4e
Grey: #ccc

*/

body, html {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: black;
    background-color: white;
    margin: 0 auto;
    padding: 0 5px; 
}

#container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#page-1 {
    min-height: 660px;
}

#page-2 {
    min-height: 750px;
    margin: 0 0 50px 0;
}

#page-3 {
    display: flex;
    align-items: center;
    border-radius: 5px;
    padding: 20px;
    gap: 30px;
    margin-bottom: 100px;
    border: 3px solid #fb4b4e;
    border-radius: 10px;
}

#page-3-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

#about-me-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 560px;
}

#about-me-content p {
    margin: 10px 0;
}

#about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

h4 {
    text-align: center;
    font-size: 36px;
    margin: 36px;
}

.previews {
    display: flex;
    gap: 20px;
}

#examples {
    justify-content: space-around;
    flex-wrap: wrap;
}

#mobile-desktop {
    justify-content: center;
}

#examples img {
    border: 3px solid #aaa;
    border-radius: 5px;
}

#feature-request {
    display: flex;
    justify-content: center;
    color: #aaa;
    text-align: center;
}

#feature-request a {
    text-decoration: underline;
    color: #aaa;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 80px;
}

#brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

#brand a {
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
    color: black;
}

#brand img {
    display: inline-block;
    vertical-align: middle;
}

#header-links {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
    flex-wrap: wrap;
}

#header-links a {
    text-decoration: none;
    color: black;
}

#header-links .live-example {
    color: #F3190D;
    font-weight: 600;
}

.live-example {
    color: #F3190D;
    font-weight: 600;
}

#live-example-link {
    display: flex;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icons a {
    font-size: 32px;
    text-decoration: none;
    display: inline-block;
}

#social-modal a {
    font-size: 52px;
}

.x-icon { color: #000000; }
.facebook { color: #4267B2; }
.linkedin { color: #0077b5; }
.hackernews:hover { color: #F26625; }
.producthunt:hover { color: #DA552F; }
.x-icon:hover { color: #000000; }
.github:hover { color: #24292e; }
.reddit:hover { color: #FF4500; }

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.main-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

#content {
    flex: 1;
}

h1 {
    font-size: 66px;
    margin-top: 0px;
    margin-bottom: 10px;
    color: #F3190D;
    font-weight: 800;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 30px 0;
}

h3 {
    font-size: 18px;
    font-weight: normal;
    margin: 0 0 10px 0;
}

#content p {
    margin: 0 0 7px 0;
}

#content ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 10px 0;
}

#content span {
    font-size: 24px;
}

#content li {
    display: flex;
    align-items: center;
    gap: 5px;
}

h5 {
    margin: 10px 0 0 0;
}

#features {
    border-radius: 10px;
    padding: 20px;
    background-color: #efefef;
}

h6 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 26px;
    color: black;
}

h7 {
    font-size: 42px;
    color: #fb4b4e;
    font-weight: 700;
    margin: 20px 0;
}

input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #fb4b4e;
    color: #FFFFFF;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    height: 52px;
    width: 237px;
    font-weight: 700;
}

.featured-on {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 80px;
}

.feature-socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.feature-socials a {
    font-size: 32px;
    color: #aaa;
}

.feature-socials p {
    margin: 0;
}

footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 1;
    position: fixed;
    bottom: 6px;
    left: calc(100vw-1200px);
    background-color: white;
}

iframe {
    display: block;
    margin: 0 auto;
}

@media (max-width: 1220px) {
    h1 {
        font-size: 54px;
    }
    
    .featured-on {
        gap: 16px;
    }

    .featured-on p {
        font-size: 14px;
    }
    
    .feature-socials {
        gap: 5px;
    }
    
    .feature-socials a {
        font-size: 24px;
    }

    #page-3 {
        justify-content: space-around;
        flex-wrap: wrap;
        max-width: 830px;
        margin: 0 auto 100px auto;
    }

    #features {
        max-width: 790px;
        flex: auto;
    }

    div.inline-container {
        margin: 0 auto;
    }

    #diagram {
        width: 48vw;
        height: auto;
    }

    h7 {
        text-align: center;
    }

    #about-buttons {
        justify-content: center;
    }

}

@media (max-width: 880px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    #social-media {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    main {
        justify-content: flex-start;
        margin-top: 20px;
    }

    .main-wrapper {
        flex-direction: column;
        gap: 0px;
    }

    .main-wrapper * {
        text-align: center;
    }

    .main-wrapper ul {
        display: inline-block;
    }

    #page-3 {
        flex-direction: column;
    }

    #about-buttons {
        flex-direction: column;
        align-items: center;
    }

    #content {
        width: 100%;
    }

    #content {
        margin-bottom: 20px;
    }

    h4 {
        font-size: 28px;
    }

    #getGoingBtn {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    #diagram {
        margin: 20px 0;
        width: 70%;
    }

    .featured-on {
        padding-bottom: 40px;
    }

    #page-3-container {
        flex-direction: column;
    }
    
    #about-me-para {
        text-align: center;
    }

    #page-2-2 {
        min-height: 0;
    }

}

@media (max-width: 700px) {
    iframe {
        width: 80vw;
        height: 45vw;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        gap: 0px;
    }
    
    h1 {
        font-size: 44px;
    }

    h2, h4, h6 {
        font-size: 28px;
    }

    #examples img {
        width: 90%;
        height: auto;
    }

    #mobile-desktop img {
        height: 150px;
        width: auto;
    }

    .featured-on {
        flex-direction: column;
        gap: 2px;
    }

    h5 {
        font-size: 10px;
    }

    #diagram {
        width: 80%;
    }
}

@media (max-width: 390px) {
    #mobile-desktop img {
        height: 120px;
        width: auto;
    }

    h1 {
        font-size: 36px;
    }

    h2, h4, h6 {
        font-size: 24px;
    }

    #header-links {
        font-size: 13px;
    }

    #page-3 {
        padding: 10px;
    }

}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}
  
.modal-content {
    background-color: #fefefe;
    padding: 20px 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
  
.close {
    position: absolute;
    top: 0px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

#instruction-link {
    text-decoration: none;
    display: inline-block;
    line-height: 32px;
}

#social-modal {
    justify-content: center;
    gap: 24px;
}

.modal-break {
    border-bottom: 1px solid grey;
}

.modal-section {
    flex: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    height: 100px;
}

.modal-header {
    margin-top: 0;
}



  