:root {
    --accent: #27ae60;
    --invalid: #e74c3c;

    --text: #202020;
    --solid: #ffffff;

    --darktext: #e6e6e6;
    --darksolid: #000000;
}

body,
html {
    width: 100vw;
    margin: 0;
    padding: 0;
    background-image: var(--solid);
    background-size: cover;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

* {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: var(--text);

    transition: all 300ms;
}

.grecaptcha-badge, 
.rc-anchor {
    opacity: 0 !important;
    visibility: hidden !important;
}

.swirly {
    position: absolute;
}

.half-wrapper {
    width: 50%;
    position: relative;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.deepenings {
    width: 95%;
    margin-left: -20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.deepening {
    height: min-content;
    padding: 10px 20px;
    border-right: 1px solid var(--text);
    
    font-weight: 500;
    text-align: justify;
    text-justify: distribute;
    
    column-count: 1;
    column-rule-style: solid;
    column-rule-color: var(--text);
    column-rule-width: 1px;
    column-gap: 40px;
}

.deepenings > .deepening:last-of-type {
    border: none;
}

#logo-wrapper {
    top: 20px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: default;
}

#hero {
    width: 100vw;
    height: 100vh;
    display: block;
}

#logo-img {
    width: 2vw;
    height: 2vw;
    min-width: 25px;
    min-height: 25px;
    max-width: 40px;
    max-height: 40px;
    margin-right: 10px;
}

#logo-img.dark {
    display: none;
}

#logo-img.light {
    display: block;
}

#logo-text {
    font-size: .8em;
    color: var(--text);
}

#logo-text > .logo-text-green {
    color: var(--accent);
}

#hero-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#hero-text {
    width: min-content;
    position: relative;
    margin-left: 5vw;
    
    font-size: 3vw;
    white-space: nowrap;
}

#arrow {
    width: 5vw;
    bottom: 0;
    right: 7.5vw;
    transform-origin: top left;
    transform: translate(100%, 100%) rotate(17deg);
}

#hero-subtext {
    position: relative;
    margin-left: 12vw;
    
    font-size: 1.5vw;
    font-weight: 500;
}

#underline {
    width: 5vw;
    bottom: 0;
    right: 12vw;
    transform-origin: top left;
    transform: scaleX(1.2) translate(100%, 100%);
}

#hero-img {
    margin-top: 50px;
    width: 50%;
    left: 50%;
    transform: translate(50%);
}

#hero-cta {
    top: 16vh;
    left: 35vw;
    position: absolute;
    padding: .5vw 1vw;
    border: 1px solid var(--text);
    border-radius: 10px;
    cursor: pointer;

    transform: rotate(-15deg);
    transition-property: transform;
    transition-duration: 100ms;

    font-size: .8vw;
    font-weight: 500;
    text-decoration: none;
}

#hero-cta:hover {
    transform: scale(1.05) rotate(-11deg);
}

#hero-cta:active {
    transform: scale(.95) rotate(-17deg);
}

/* METHOD */
#method {
    margin-top: 75px;
    margin-bottom: 75px;
    height: fit-content;
    min-height: max-content;
    display: flex;
    flex-direction: row;
}

#method-text {
    position: relative;
    
    font-size: 2.5vw;
    white-space: nowrap;
}

#half {
    width: 3vw;
    top: 0vw;
    right: 4vw;
    transform: rotate(-12deg);
}

#method .half-wrapper:first-of-type {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#question-img {
    width: auto;
    height: 30vw;
    top: 50%;
    left: 5%;
    transform: translateX(25%);
}

#key-img {
    width: auto;
    height: 30vw;
    top: 50%;
    left: 5%;
    transform: translateX(-25%);
}

/* STUDENT */
#student {
    width: 100vw;
    margin-top: 75px;
    margin-bottom: 75px;
    height: fit-content;
    min-height: max-content;
    display: flex;
    flex-direction: row;
}

#student-text {
    position: relative;
    margin-left: 5vw;
    
    font-size: 3vw;
    white-space: nowrap;
}

#circle {
    height: 4vw;
    width: 11.25vw;
    right: 15vw;
    bottom: -.25vw;
    z-index: 1;
}

#student-img {
    width: 50%;
    transform: translate(50%);
}

/* APP */
#app {
    margin-top: 75px;
    margin-bottom: 75px;
    height: fit-content;
    min-height: max-content;
    display: flex;
    flex-direction: row;
}

#app-img {
    width: 80%;
}

#app-text {
    position: relative;
    
    font-size: 3vw;
}

#tic {
    width: 3vw;
    top: 0;
    right: -3vw;
    transform: translateY(-50%) rotate(6deg);
}

/* PARLANO */
#parlano {
    margin-top: 75px;
    margin-bottom: 75px;
    height: fit-content;
    min-height: max-content;
    display: flex;
    flex-direction: row;
}

#parlano-text {
    position: relative;
    margin-left: 5vw;
    
    font-size: 3vw;
}

#love {
    width: 3vw;
    top: 0;
    right: 0;
    transform: translateY(-90%);  
}

#team-img {
    width: 50%;
    transform: translate(50%);
}

/* CONTATTACI */
#contattaci {
    margin-top: 75px;
    margin-bottom: 75px;
    height: fit-content;
    display: flex;
    flex-direction: row;
    min-height: max-content;
}

#contattaci-img {
    width: auto;
    height: 30vw;
    left: 5%;
    transform: translateX(75%);
}

#contattaci-text {
    position: relative;
    margin-left: 5vw;
    
    font-size: 3vw;
}

form {
    margin-left: 5vw;
    display: flex;
    flex-direction: column;
}

#up-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.field {
    display: flex;
    position: relative;
    flex-direction: column;
    margin-bottom: 5px;
}

.field > label {
    top: 18px;
    left: 10px;
    width: max-content;
    position: relative;
    padding: 3px 6px;
    
    order: -1;
    background-color: var(--solid);
    pointer-events: none;
    
    font-weight: 400;
    font-size: 14px;
    font-weight: 600;
    
    /* transform: scale(.7); */
    transform-origin: center left;
    transition-property: all;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
}

.input:focus + label {
    transform: scale(.7) translateY(-29px);
    font-weight: 500;
    color: var(--accent);
}

.input:focus {
    /* color: var(--accent); */
    border: 1px solid var(--accent) !important;
} 

.input:not(:placeholder-shown) + label {
    transform: scale(.7) translateY(-29px);
    font-weight: 500;
}

.input:placeholder-shown + label {
    color: var(--text);
}

.field > .input:placeholder-shown {
    color: var(--text) !important;
    border: 1px solid var(--text) !important;
}

.input:invalid {
    color: var(--invalid);
    border: 1px solid var(--invalid) !important;
}

.input:invalid:placeholder-shown + label {
    color: var(--text);
}

.input:invalid + label {
    color: var(--invalid);
}

.field > .input {
    margin: 0;
    margin-top: -15px;
    margin-right: 10px;
    padding: 0;
    padding-inline-start: 15px;
    padding-inline-end: 15px;
    height: 40px;
    width: 300px;
    
    border: 1px solid var(--text);
    border-radius: 10px;
}

.field > textarea.input {
    height: 100px;
    width: calc(100% - 40px);
    resize: none;
    padding-block-start: 10px;
    padding-block-end: 10px;
}

.field > textarea.input::-webkit-scrollbar {
    display: none;
}

.field > .input:focus {
    outline: 0;
}

.button-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 5px;
}

.button {
    width: min-content;
    height: min-content;
    padding: 10px 15px;

    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 10px;
    box-shadow: inset 0px 0px 0px 1px var(--accent);
    background-color: transparent;
    
    color: var(--accent);
}

.button:hover {
    box-shadow: inset 0px 0px 0px 50px var(--accent);
    color: var(--text);
}

form:invalid > .button {
    box-shadow: inset 0px 0px 0px 1px var(--invalid);
    color: var(--invalid);
    cursor: default;
    opacity: .6;
}

form:invalid > .button:hover {
    box-shadow: inset 0px 0px 0px 1px var(--invalid);
    color: var(--invalid);
    cursor: default;
    opacity: .6;
}

form:invalid > .button:active {
    box-shadow: inset 0px 0px 0px 1px var(--invalid);
    color: var(--invalid);
    cursor: default;
    opacity: .6;
    transform: scale(1);
}

.button:focus {
    box-shadow: inset 0px 0px 0px 50px var(--accent);
    color: var(--text);
}

.button:active {
    outline: none;
    transform: scale(.8);
}

.privacy-policy {
    margin-left: 10px;

    font-size: 10px;
    font-weight: 500;
}

.clickable {
    text-decoration: underline;
    color: var(--accent);
    cursor: pointer;
}

/* SNACKBAR */
#snackbar {
    width: 100%;
    height: 40px;

    left: 0;
	bottom: 0;
    position: fixed;
	margin: 0;
	margin-left: auto;
    margin-right: auto;
    
	display: block;
	text-transform: uppercase;
    text-align: center;
    line-height: 40px;
    font-size: 11px;
	font-weight: 700;
    color: #fff;
    z-index: 999;

	transition-property: transform;
	transition-duration: 300ms;
}

.snackbar-close {
    transform: translateY(40px);
}

.snackbar-open {
	transform: translateY(0px);
}

#content-wrapper {
    margin-top: 150px;
    margin-bottom: 50px;
}

@media screen and (max-width: 1500px) {
    #method,
    #student,
    #app,
    #parlano, 
    #contattaci {
        margin-top: 75px;
        margin-bottom: 75px;
        height: fit-content;
    }

    .deepening {
        height: min-content;
        width: calc(100% - 40px);
        padding: 10px 20px;        
        column-count: 1;
    
        font-size: .8em
    }

    #contattaci-text {
        margin-left: 0;
    }

    #up-box {
        width: 100%;
        flex-direction: column;
    }

    .field {
        width: 100%;
    }

    .field > .input {
        width: 100%;
    }

    .field > textarea.input {
        width: 100%;
    }

    form {
        width: calc(100% - 70px);
        margin-left: 0;
    }
}

@media screen and (max-width: 600px) {
    .swirly {
        display: none;
    }
    
    .deepenings {
        width: 100%;
        margin: 0 !important;
        align-items: center;
        justify-content: center;
    }
    
    .deepening {
        height: min-content;
        margin-bottom: 15px;
        width: calc(100% - 40px);
        padding: 10px 20px;        
        column-count: 1;
    }
    
    .half-wrapper {
        min-height: min-content;
        height: min-content;
        max-height: max-content;
        width: 100%;
    }
    
    #logo-img {
        margin-right: 8px;
    }
    
    #logo-text {
        font-size: .5em;
    }
    
    #hero-wrapper {
        flex-direction: column;
    }
    
    #hero-wrapper .half-wrapper:first-of-type {
        width: 100vw;
    }   
    
    #hero-text {
        margin: 0;
        width: 100%;

        font-size: 3em !important;
        white-space: normal;
        text-align: center;
    }

    #hero-subtext {
        margin: 0;
        margin-top: -10px;
        width: 100%;
        
        font-size: .75em;
        text-align: center;
    }

    #hero-text h1 {
        font-size: .65em !important;
    }

    #hero-cta {
        height: min-content;
        width: min-content;
        top: initial;
        margin-left: auto;
        margin-right: auto;
        transform: translateY(250%);
        position: initial;
        border-radius: 4px;

        font-size: .175em;
    }

    #hero-img {
        margin-top: 100px;
    }

    #method,
    #student,
    #app,
    #parlano, 
    #contattaci {
        margin-top: 20px;
        height: max-content;
        flex-direction: column-reverse;
    }

    #student, 
    #parlano {
        flex-direction: column !important;
    }
    
    #method > .half-wrapper:first-of-type,
    #student > .half-wrapper:last-of-type {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    #method-text,
    #student-text,
    #app-text,
    #parlano-text,
    #contattaci-text {
        width: 100%;
        margin: 0 20px;
        
        font-size: 2em;
        white-space: normal;
    }
    
    #question-img,
    #key-img,
    #student-img,
    #app-img,
    #parlano-img,
    #contattaci-img {
        height: 200px;
        width: auto;
        position: inherit;
        transform: none;
    }
    
    #question-img {
        transform: translateX(25%);
    }
        
    #key-img {
        transform: translateX(-25%);
    }

    #contattaci .half-wrapper:first-of-type {
        display: none;
    }

    #contattaci > .half-wrapper {
        width: 100vw !important;
        height: min-content;
    }

    #contattaci-text {
        width: calc(100% - 40px);
    }

    form {
        width: 100%;
        margin-left: 0;
        height: min-content;
    }

    .field > label {
        font-size: 12px;
    }

    #up-box {
        margin: 0 20px;
        width: calc(100% - 40px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    #down-box {
        margin: 0 20px;
        width: calc(100% - 40px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    #up-box > .field  {
        width: 100%;
        margin-bottom: 3px;
    }

    #down-box > .field  {
        width: 100%;
        margin-bottom: 7px;
    }

    .field > .input {
        padding: 0 20px;
        width: calc(100% - 35px);
        margin-right: 0;
    }
    
    .field > textarea.input {
        height: 100px;
        width: calc(100% - 35px);
        resize: none;
        padding-block-start: 10px;
        padding-block-end: 10px;
    }
    
    .button-box {
        margin: 0 20px;
    }
}

@media (prefers-color-scheme: dark) {
    html, 
    body {
        background-color: var(--darksolid);
    }
    
    * {
        color: var(--darktext);
    }

    img {
        filter: brightness(.8);
    }

    #logo-img.dark {
        display: block;
    }

    #logo-img.light {
        display: none;
    }

    .review {
        border-color: var(--darktext);
    }

    #logo-text {
        color: var(--darktext);
    }

    #hero-cta {
        border-color: var(--darktext);
    }

    .field > .input {
        border-color: var(--darktext);
        background-color: var(--darksolid);
    }

    .field > label {
        background-color: var(--darksolid);
    }

    .field > .input:placeholder-shown {
        color: var(--darktext) !important;
        border: 1px solid var(--darktext) !important;
    }

    .input:placeholder-shown + label {
        color: var(--darktext);
    }

    .input:invalid:placeholder-shown + label {
        color: var(--darktext);
    }
    
    .button {
        box-shadow: inset 0px 0px 0px 1px var(--accent);
        color: var(--accent);
    }

    .button:hover {
        box-shadow: inset 0px 0px 0px 50px var(--accent);
        color: var(--darktext);
    }

    .button:focus {
        box-shadow: inset 0px 0px 0px 50px var(--accent);
        color: var(--darktext);
    }

    textarea.input {
        color: var(--darktext);
    }

    .line {
        background-color: var(--darktext);
    }  
}