@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Winky+Rough:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --main-bg-color: #EFEEEA;
    --section-bg-color: #FFF;
    --highlight-bg-color: #efd81b;
    --border-radius-small: 10px;
    --border-radius-medium: 15px;
    --code-container-bg-color: gray;
    --code-font-color: #FFF;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 80%;
    margin: 0 auto;
    background-color: var(--main-bg-color);
    padding: 10px;
}

header {
    text-align: center;
    background-color: #4DA8DA;
    color: #FFF;
    padding: 20px;
    border-radius: var(--border-radius-medium);
}

#nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    list-style: none;
    gap: 20px;
    margin: 20px 0;
}

.menu-item {
    cursor: pointer;
    color: black;
    text-decoration: none;
}

.menu-item:visited {
    color: black
}

.menu-item:hover {
    text-decoration: underline;
}


#page-link {
    color: #393E46;
    float: right;
    border: 4px solid #393E46;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
}

#page-link:active {
    transform: translateY(1px);
}

#page-link > a {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#page-link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: center;
}

footer {
    text-align: center;
    background-color: #4DA8DA;
    color: #FFF;
    padding: 20px;
    border-radius: var(--border-radius-medium);
    margin-top: 30px;
}

.green {
    background-color: lightgreen !important;
}

.red {
    background-color: lightcoral !important;
    text-decoration: underline;
}

.highlight {
    background-color: var(--highlight-bg-color);
    padding: 0 5px;
    border-radius: var(--border-radius-small);
}

section {
    background-color: var(--section-bg-color);
    border-radius: var(--border-radius-medium);
    padding: 10px;
    margin-top: 30px;
}

.sectionTitle {
    text-align: center;
    padding-bottom: 20px;
    text-decoration: underline;
    color: #483AA0;
}

.sectionPoint {
    padding-bottom: 10px;
}

.sectionPoint::before {
    content: "● ";
}

.codeExampleContainer {
    width: fit-content;
    padding: 10px;
    background-color: var(--code-container-bg-color);
    color: var(--code-font-color);
    border-radius: var(--border-radius-medium);
    font-size: 0.7rem;
    margin: 10px 0;
}
.codeComment {
    color: #3C3D37
}

.codeExample, .codeComment {
    font-size: 0.9rem;
}

.items > li {
    padding-left: 40px;
    list-style: none;
}

.innerSection {
    margin-top: 20px;
}

#editorLabel {
    display: block;
}

#editor {
    display: block;
    padding: 15px;
    font-size: 0.8rem;
    width: 200px;
    height: 200px;
}

.button {
    padding: 10px;
    background-color: #027bff;
    width: fit-content;
    margin-top: 10px;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    color: #FFF;
    cursor: pointer;
}

#codeEditor {
    background-color: #98e8b9;
    display: none;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    position: fixed;
    bottom: 40px;
    right: 120px;
    z-index: 100;
    box-shadow: 0 10px 10px rgba(0,0,0,0.33);
}

#codeEditor > div{
    flex-basis: 50%;
    padding: 10px;
}

#output {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    justify-content: flex-start;

}

#outputDiv {
    background-color: #000;
    color: #FFF;
    width: 100%;
    height: 80%;
    padding: 10px;
    width: 200px;
    height: 200px;
    font-size: 0.8rem;
}

#FAB-div {
    border: 2px solid transparent;
    background-color: #027bff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    box-shadow: 0 10px 10px rgba(0,0,0,0.33);
    overflow: hidden;
}

#FAB-div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    bottom: 0;
    background-color: #98e8b9;
    transition: right 0.5s ease;
    z-index: -1;
}

#FAB {
    content: "</>";
    /* background-color: #F4F6FF; */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #E2DFD0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 100;
    transition: color 0.5s ease;
}

#FAB-div:hover #FAB {
    color: #027bff;
}

#FAB-div:hover::before {
    /* background-color: transparent; */
    /* color:#E2DFD0; */
    /* left: 100%; */
    right: 0;
}

.show {
    display: flex !important;
}

.codeHighlight {
    color: #A4CCD9;
}

.multiCodeExample {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    gap: 30px;
}

.hands-on {
    background-color: #B5C0D0;
    padding: 10px 10px;
    border-radius: var(--border-radius-medium);
    width: fit-content;
    color: #FFF;
}

.practise-item {
    font-size: 0.7rem;
}
.practise-item::before {
    content: '- ';
}

.imgContainer {
    width: 100%;
    overflow: hidden;
    border: 2px solid black;
    box-shadow: 0 10px 10px rgba(0,0,0,0.33);
    border-radius: var(--border-radius-medium);
    margin: 20px 0;
}

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

figcaption {
    font-size: 0.7rem;
    text-align: center;
}

.hide {
    display: none !important;
}

@media (max-width: 700px) {

    body {
        width: 100%;
    }
    
    .multiCodeExample {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .codeExampleContainer {
        width: 100%;
    }

    #FAB-div {
        display: none;
    }
    .show {
        display: none;
    }

    .sectionPoint::before {
        content: "• ";
    }
    .items > li {
        padding-left: 15px;
    }
}

@media (max-width: 500px) {
    html {
        font-size: 10px;
    }
}