@import url(https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap);

:root {

    --default-color: #1F1F1F;
    --border-color: #333333;
    --bg-color: #171717;
    --green: #449A51;
    --white: #ffffff;
    --light-gray: #999;
    --calc-width: 500px;
    --font-family-default: 'Inter', 'Inter Fallback';
    --font-size-small: 17px;
    --border-radius-box: 10px;
    --border-radius-button: 8px;
}

/* @media screen and (-webkit-min-device-pixel-ratio:0){
    
    .container {

        scroll-snap-type: none;
        overflow-y: none;
    }

    .section {

        scroll-snap-align: none;
    }
} */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth !important;
    
}

body {

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--bg-color);

}

a, a:visited {

    text-decoration: none;
}



.nav {

    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    height: 100px;
    width: 100%;
    z-index: 2;
}

.nav-content {

    height: 100px;
    width: 1400px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.logo {

    height: 100px;
    width: auto;
    background-color: transparent;
    display: flex;
    align-items: center;
}

.logo-text-big {

    background-image: url("../images/abstract-3.jpeg");
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 50px;
    font-family: 'Poppins', sans-serif;
}

.logo-text-small {

    font-size: 35px;
    font-family: var(--font-family-default);
    color: var(--white);

}


.links {

    width: 500px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-family-default);
    font-size: var(--font-size-small);
}

.link {

    color: var(--light-gray);
    text-align: center;
    width: 120px;
}

.link:hover {

    border-left: 1px solid var(--light-gray);
    border-right: 1px solid var(--light-gray);

}

.onscroll {

    opacity: 0;
}


.container {

    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    width: 100%;
    

}

.section {

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    scroll-snap-align: start;
}



.main-text {

    background-image: url("../images/abstract-3.jpeg");
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 120px;
    font-family: 'Poppins', sans-serif;
}

.title {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title p {

    color: var(--light-gray);
    font-family: var(--font-family-default);
    font-size: 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    line-height: 30px;
}

.sub-main-text {

    font-size: 70px;
    font-family: var(--font-family-default);
    color: var(--white);

}

.second-content {

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
}

.nadpis-second {

    color: var(--white);
    font-size: 50px;
    font-family: var(--font-family-default);
    font-weight: 500;
}

.nadpis-second span {

    color: var(--green);
}


.calculator-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    
}

.calculator-description div {

    line-height: 30px;
    color: var(--light-gray);
    font-family: var(--font-family-default);
    font-size: 20px;
}


.error-message {

    color: red;
}


.calculator-section {
    height: 300px;
    width: var(--calc-width);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    background-color: var(--default-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-box);
}

.calculator-section form {

    /* display: flex;
    flex-direction: column; */
    align-items: center;
    gap: 0;
    font-family: var(--font-family-default);
    margin-bottom: 20px;
}

.calculator-section form input {

    width: 350px;
    font-size: 15px;
    padding-right: 15px;
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: var(--border-radius-box);
    border: 1px solid #fff;
    outline: none;
    offset: none;
    font-family: var(--font-family-default);

}

.calculator-section form input:nth-of-type(2) {

    margin-top: 20px;
}

.calculator-section form div {

    width: 350px;
    display: flex;
    justify-content: center;
}

.calculator-section .button {

    height: 55px;
    width: 120px;
    font-family: var(--font-family-default);
    font-weight: bold;
    font-size: var(--font-size-small);
    background-color: var(--white);
    border: none;
    border-radius: var(--border-radius-button);
    margin-top: 10px;
}

.calculator-section .button:hover {

    background-color: var(--green);
    color: var(--white);
}

.result-section {

    height: auto;
    margin-top: 30px;
    width: var(--calc-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    background-color: var(--default-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-box);
    padding-top: 20px;
    font-family: var(--font-family-default);
    font-size: 15px;
}

.result span {

    font-weight: bold;
}

.result {

    height: 25px;
    width: 450px;
    margin-left: 20px;
    border-bottom: 2px solid var(--border-color);
}





.animation {

    animation: slide-in 0.75s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;

}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(100px);}
    to { opacity: 1; transform: translateX(0);}
}

.first {

    justify-content: center;
    align-items: center;
    
}



.third {

    display: flex;
    justify-content: center;
    align-items: center;
}

.nadpis-second {

    color: var(--white);
    font-size: 50px;
    font-family: var(--font-family-default);
    font-weight: 500;
}

.nadpis-second span {

    color: var(--green);
}

.script-box {

    height: 300px;
    width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--default-color);
    border-radius: var(--border-radius-box);
    border: 1px solid var(--border-color);
}

.script-box-content {

    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-family: var(--font-family-default);
    font-size: var(--font-size-small);
}

.script-box h3 {

    width: 300px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: var(--font-family-default);
    font-size: 30px;
    color: var(--white);
}

.script-box-content p:nth-of-type(1) {

    height: 84px;
}

.script-box-content p:nth-of-type(2) {

    margin-top: 50px;
    height: 30px;
    width: 100px;
    border-bottom: 1px solid var(--white);
    text-align: center;
    font-family: var(--font-family-default);
    font-weight: bold;
    font-size: var(--font-size-small);
     
}

.third-content {

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
}

.third-content h1 {

    font-family: var(--font-family-default);
    font-size: 35px;
    color: var(--white);
}

.third-content span {

    color: var(--green);
}


.fourth-content {

    display: flex;
    flex-direction: column;
    align-items: center;

}

.fourth-content h1 {

    font-family: var(--font-family-default);
    font-size: 35px;
    color: var(--white);
}

.fourth-content p {
    margin-top: 30px;
    font-family: var(--font-family-default);
    font-size: 25px;
    color: var(--white);
    text-align: center;
}

.github {
    margin-top: 20px;
    padding: 10px;
    background-color: var(--green);
    border-radius: 10px;
}

.fourth-content img {

    height: 50px;
    width: 50px;
}


@media screen and (max-width: 400px){
   

    body {

        max-width: 400px;
    }

    .container {

        scroll-snap-type: none;
        overflow-y: none;
        max-width: 400px;
        height: auto;
        overflow: hidden;
    }

    .section {

        scroll-snap-align: none;
        max-height: 700px;
        max-width: 400px;
    }

    .nav {

        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-content {

        width: max-content;
    }

    .logo {
        
        max-width: 1000px;
        scale: 0.7;
    }


    .links {

        display: none;
    }

    .sub-main-text {

        display: none;
    }

    .title p {

        width: 250px;
    }


    .second-content {

        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .calculator-description div {

        display: none;
    }

    .calculator-description {

        scale: 0.7;
    }

    .calculator-section {

        scale: 0.7;
    }

    .result-section {

        scale: 0.7;
        margin: 0;
    }

    .third-content {

        width: 100%;
        flex-direction: column;
    }

    .script-box {

        scale: 0.7;
    }

    .third-content h1 {

        scale: 0.7;
    }
    
    .fourth-content * {

        scale: 0.7;
        max-width: 400px;
    }
}   