:root {
--color-white: rgba(255,255,255, 1.0);
--color-white-70: rgba(255,255,255, 0.7);
--color-bright: rgba(255, 174, 0, 1.0);
--color-white-10: rgba(255, 255, 255, 0.1);

--bg-dark: rgb(36, 51, 100);
--bg-darker: rgb(25, 33, 61);

--width-main: 720px;
--width-main-sm: 100vw;
}

.text-white-50 {
    color: var(--color-white-70) ;
}

.text-white {
    color: var(--color-white);
}

/* --- */
 
html {
    background-color: var(--bg-dark);
    color: var(--color-white-70);
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: "Raleway", sans-serif;
    font-size: 1.2em;
    scrollbar-color: var(--color-white-70) var(--bg-darker);
    scrollbar-width: thin;
}

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

section {
    width: var(--width-main);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    position: relative;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    
    &:not(:last-of-type)::after {
        content: '';
        width: 20%;
        height: 2px;
        background-color: var(--color-white-10);
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 1rem 0;
    }

    main {
        display: flex;
        flex-direction: column;
        margin: 1rem 0;
        width: 100%;
    }
}

strong {
    font-weight: 700;
}

h1 {
    font-size: 3em;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 700;
    color:  var(--color-white);
}

h2 {
    font-size: 2em;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

h3 {
    text-align: center;
    letter-spacing: 0.05em;
    margin: 2rem 0 1rem 0;
    color: var(--color-white);
    border-top: 1px solid rgba(255,255,255, 0.3);
    padding-top: 2rem;
}

h4 {
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--color-white);
}

p {
    line-height: 1.3em;
    margin-bottom: 1rem;
}

img {
    margin: 2rem auto;
    width: fit-content;
}

a {
    text-decoration: none;
    color: var(--color-bright);

    &:hover {
        color: rgba(255, 174, 0, 1.0);
    }
}

ul {
    li {
        margin-bottom: 1rem;
    }
}

/* --- SLIDER ---- */

.slider {
    position: relative;
    display: flex;
    overflow: hidden;
    width: var(--width-main);
    scroll-behavior: smooth;

    li {
        min-width: 100%;
        display: flex;
        flex-direction: column;
    }
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;

    .slider-btn {
        transition: all 0.2s ease-in-out;
        background-color: transparent;
        border: 2px solid var(--color-white-70);
        width:  2rem;
        height: 1rem;
        border-radius: 999em;

        &:hover {
            border-color: var(--color-white);
        }

        &.active {
            background-color: var(--color-white);
        }
    }
}

/* --- */

.flex-flow {
    flex-grow: 1;
}

.colums {
    display: flex;
    flex-direction: row;
    
}

.go-next {
    width: 4rem;
    height: 4rem;
    overflow: hidden;
    border-radius: 100%;
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: rgba(255,255,255, 1.0);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 4rem;
    z-index: 10;
    opacity: 0.4;

    &:hover {
        opacity: 0.6;
    }

    img {
        width: 2rem;
        opacity: 0.6;
    }
}

.text-justify {
    text-align: justify;
}

.text-center {
    text-align: center;
}

.github {
    position: absolute;
    left: 1rem;
    top: 0;
}

.version {
    font-size: 1em;
}

@media screen and (max-width: 700px){
    body {
        margin: 0;
        padding: 0.5rem;
    }

    section {
        width: 100%;
        overflow: hidden;
    }

    .slider {
        width: 100%;
        overflow-x: scroll;

        li {
            min-width: 100vw;
        }
    }

    img {
        max-width: calc(100vw - 1rem);
    }
}