/* PREPARATION CSS */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
html {
    scroll-behavior: smooth;
}

/* GLOBAL CSS */
.o-container {
    padding: 0 1rem;
}

/* TRANSITION CSS */
.pageslide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #f8fafc;
    color: #000;
    position: absolute;
    transform: translateX(calc(100% + 150px));
    transition: transform 1s ease-in-out;
    z-index: 1;
    box-shadow: -10px 0 150px 0 #ddd;
}
.pageslide-slide {
    transform: translateX(0);
}

/* COMPONENTS */
.o-main {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    background-color: #f1f5f9;
}

.c-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.c-hero__heading {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.komponenta {
    margin: 4rem 0;
    display: flex;
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0px 5px 20px 0px rgba(0,0,0,0.1);
}
.komponenta__obrazek {
    background-image: url("images/sea.jpg");
    background-size: cover;
    background-position: center;
    flex-basis: 50%;
}
.komponenta__textovaOblast {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    flex-basis: 50%;
    padding: 6rem 4rem;
}
.komponenta__nadpis {
    font-size: 2rem;
    margin-bottom: 1.15rem;
    line-height: 1.15;
}
.komponenta__popis {
    font-size: 1.1rem;
    margin-bottom: 1.15rem;
    line-height: 1.4;
}
.komponenta__tlacitko {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.15rem;
    max-width: max-content;
}
.komponenta__tlacitko--sipka {
    margin-left: .5em;
    transition: 400ms;
}
.komponenta__tlacitko:hover > .komponenta__tlacitko--sipka {
    margin-left: .8em;
}
.komponenta__tlacitko:active > .komponenta__tlacitko--sipka {
    margin-left: 1.25em;
}

.prologue__text {
    margin-bottom: 3rem;
}
.prologue__heading {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
}
.prologue__paragraph {
    font-size: 1.25rem;
    font-weight: 300;
}
.prologue__paragraph:not(:last-child) {
    margin-bottom: 1rem;
}
.prologue__secondheading {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.terminals {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.terminal {
    max-width: max-content;
    align-self: flex-start;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.terminal__head {
    padding: .45rem 1rem;
    background-color: #e2e8f0;
    border-radius: 1rem 1rem 0 0;
    color: #64748b;
    font-weight: 500;
    user-select: none;
    font-size: .9rem;
}
.terminal__body {
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 0 0 1rem 1rem;
    font-weight: 500;
    font-size: .9rem;
}
.terminal--text {
    color: #000;
}
.terminal--class {
    color: #ef4444;
    font-family: 'Roboto Mono', monospace;
}
.terminal--content {
    color: #6b7280;
    list-style-type: none;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.2;
}
.terminal--element {
    color: #1d4ed8;
    font-family: 'Roboto Mono', monospace;
}
.terminal--link {
    color: #f97316;
    font-family: 'Roboto Mono', monospace;
}
.tab-1 {
    margin-left: 1.25rem;
}
.tab-2 {
    margin-left: 2.5rem;
}
.tab-3 {
    margin-left: 3.75rem;
}

.tutorial__section {
    padding: 4rem 0;
}
.tutorial__section:nth-child(even){
    background-color: #f8fafc;
}
.tutorial__heading {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}
.tutorial__text, .tutorial__listitem {
    font-size: 1.25rem;
    font-weight: 300;
}
.tutorial__text {
    line-height: 1.55;
}
.tutorial__textarea {
    margin: .75rem 0;
}
.tutorial__list {
    margin-left: 2rem;
    line-height: 1.55;
}
.tutorial__listitem {
    line-height: 1.55;
    margin-bottom: 1.55rem;
}

.mono {
    font-size: 1rem;
    font-weight: 300;
    font-family: 'Roboto Mono', monospace;
    background-color: #e2e8f0;
    color: #475569;
    padding: .1rem .3rem;
    border-radius: 4px;
}

.space {
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.link {
    text-decoration: underline;
    color: #1d4ed8;
}
.link:hover {
    text-decoration: none;
}

.twocontent {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.twocontent__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.55;
    margin-left: 2rem;
}

.tip {
    display: block;
    width: 100%;
    background-color: #fef3c7;
    padding: 2rem;
    font-weight: 300;
    font-size: 1.1rem;
}

ul {
    list-style-type: none;
}



/* UTILITIES */
.u-btn {
    border: none;
    background-color: transparent;
    cursor: pointer;
    text-decoration: none;
    color: #000;
    font-weight: 300;
    font-size: 1.15rem;
    transition: 1s;
}
.u-btn--sipka {
    margin-left: .5em;
    transition: 400ms;
}
.u-btn:hover > .u-btn--sipka {
    margin-left: .8em;
}
.u-btn:active > .u-btn--sipka {
    margin-left: 1.25em;
}

.u-backbtn {
    position: absolute;
    top: 0;
    left: 0;
    margin: 3rem 0 0 3rem;
    border: none;
    text-decoration: none;
    background-color: transparent;
    color: #a1a1aa;
    cursor: pointer;
}

img {
    max-width: 100%;
    border-radius: 1rem;
}

/* MEDIA */
@media (max-width: 600px) {
    .komponenta__textovaOblast {
        padding: 3rem;
    }
    .twocontent__text {
        margin-left: 0;
    }
}
@media (max-width: 992px) {
    .komponenta {
        flex-direction: column;
    }
    .komponenta__obrazek {
        padding-top: 56.25%;
    }
}
@media (min-width: 768px) {
    .o-container {
        padding: 0 7rem;
    }
}
@media (min-width: 992px) {
    .o-container {
        padding: 0 12rem;
    }
}
@media (min-width: 1400px) {
    .o-container {
        padding: 0 20rem;
    }
}