body {
    font-family: Nunito, sans-serif;
    margin: 0;
    padding: 0;
    padding: 1rem;
    background-color: lightgray;
}


/* MODAL */

dialog {
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overscroll-behavior: contain;
    width: 80%;
    height: 80%;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

#modal-header {
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 1rem;
    background-color: white;
}

#modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

#modal-buttons {
    display: flex;
    align-items: center;
}

.modal-button {
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
    padding: 0.5rem;
    width: 30px;
    text-align: center;
    margin-left: 0.5rem;
}

.modal-button:hover {
    background-color: #0056b3;
}



/* PROCESSING */

#processing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5em;
    display: none;
}

/* BUTTONS */

#buttons {
    display: flex;
    justify-content: center;
}

.button {
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
    min-width: 100px;
    text-align: center;
    margin-top: 1rem;
}

.button:hover {
    background-color: #0056b3;
}



/* HEADER */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: cyan;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;

}


#header-left {
    display: flex;
    align-items: center;
    max-width: 80%;
}


#header-logo {
    display: flex;
}

#header-title {
    font-size: 1.5rem;
    font-weight: bold;
}

#header-description {
    margin-left: 1rem;
    font-weight: bold;
}

#header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 1rem;
}

.header-flag {
    cursor: pointer;
    margin-right: 0.5rem;
}




/* MAIN */

#main {
    margin-top: 50px;
}

#main-about {
    display: flex;
    justify-content: center;
    align-items: top;
    margin-bottom: 2rem;
}

.main-about-0 {
    font-size: 1.2rem;
    max-width: 500px;
    text-align: left;
    padding: 2rem;
    border-radius: 0.25rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.ai-icon-container {
    width: 40px;
    margin-left: 1rem;
}

.ai-icon {
    width: 100%;
    height: auto;
}


.github-icon-container {
    width: 30px;
    margin-left: 0.5rem;
}

.github-icon {
    width: 100%;
    height: auto;
}

.app-languages {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.app-lang-icon {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
}


.main-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 5px solid white;
}

.main-video-frames {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.main-video {
    width: 600px;
    aspect-ratio: 560 / 315;
    margin: 1rem;
}

.main-video-frame {
    width: 100%;
    height: 100%;
}


.main-article-links {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
}

.main-article-link {
    margin: 1rem;
    width: 200px;
}

.main-article-link-href, :visited {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

.main-article-date {
    font-size: 1.2rem;
}

.main-article-image {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);    
}





/* APP */

.app {
    margin: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 380px;
    border: 1px solid lightgray;
}

.app:hover {
    border: 1px solid black;
}


.app-click {
    cursor: pointer;
}

/* iPhone: 312 x 511 */
@media only screen and (max-width: 350px) {


    #header-left {
        display: block;
    }

    #main {
        margin-top: 100px;
    }

    .main-section {
        flex-direction: column;
    }

    .app {
        width: 280px;
    }
}


/* Android: 382 x 699 */
@media only screen and (max-width: 400px) {

    #header-left {
        display: block;
    }

    #main {
        margin-top: 120px;
    }

    .main-section {
        flex-direction: column;
    }

    .app {
        width: 280px;
    }
}






#main {
    text-align: center;
}

.main-footer {
    font-size: 0.8rem;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.main-body {
    display: flex;
    justify-content: center;
    align-items: top;
    flex-wrap: wrap;
}


.app-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.app-label {
    font-weight: bold;
    margin-bottom: 1rem;
}

.app-img-container {
    width: 100%;
}

.app-img {
    width: 100%;
    height: auto;
}