@import url('https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&family=Unbounded:wght@200..900&display=swap');

* {
    box-sizing: border-box;
    font-weight: normal;
}
body{
    margin: 0;
    font-size: 15px;
    font-family:  "Carlito", serif;
    font-weight: 100;
    background-color: #F5F6F1;
}
h1,h2,h3,p,ul,b,i,ol{
    margin: 0;
    padding: 0;
}
p,ul,b,i,ol{
    line-height: 1.8;
}
ul{
    list-style-type: square;
}
a{
    text-decoration: none;
    color: #6947b8;
}
ol,ul{
    padding-left: 20px;
}
button, .button{
    display: block;
    font-family: "Unbounded", serif;
    font-weight: 600;
    background-color: #6947b8;
    color: #F5F6F1;
    padding: 20px;
    border: 2px solid black;
    cursor: pointer;
    outline: inherit;
    transition: 0.1s;
    width: 100%;
    max-width: 264px;
    text-transform: uppercase;
}
button:hover:not(.disabled) {
    background-color: #49317a;
    box-shadow: 4px 4px 0 black;
}
.button.disabled{
    cursor: default;
}
.top{
    display: flex;
    font-weight: 600;
    background-color: black;
    align-items: center;
}
.top .button {
    text-transform: uppercase;
    border: 2px solid #F5F6F1;
    width: auto;
    padding:10px 20px;
    height: fit-content;
}
.top .button:hover{
    box-shadow: 4px 4px 0 #F5F6F1;
}
.top div{
    width: 50%;
    text-align: center;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
}
.top p{
    width: 100%;
    text-align: center;
    padding: 20px 40px;
    font-family: "Unbounded", serif;
    font-weight: 600;
    color: #F5F6F1;
}
.hero{
    display: flex;
    width: 100%;
    overflow: hidden;
}
.hero img{
    flex-grow: 1;
    height: 450px;
    object-fit: cover;
}
.hero:hover{

}
.hero img:first-of-type{
    flex-grow: 2;
}
.hero img:last-of-type{
    flex-grow: 0;
}
header {
    margin-top: 130px;
    padding: 0 16px;
    text-align: center;
}
header h1{
    margin-top:-50px;
    margin-bottom: 30px;
}
h1{
    font-family: "Unbounded", serif;
    font-weight: 800;
    font-size: 8.8rem;
}
h2{
    margin-bottom: 20px;
    font-family: "Unbounded", serif;
    font-size: 26pt;
    font-weight: 600;
}
h3{
    font-family: "Unbounded", serif;
    font-weight: 600;
}
h4{
    font-weight: 200;
    font-size: 18pt;
}
.centered-text{
    text-align: center;
}
nav{
    display: flex;
    padding-left: 70px;
    border-bottom: 2px solid black;
}
nav a:first-of-type{
    border-left: 2px solid black;
}
nav a{
    padding: 20px;
    font-family:  "Carlito", serif;
    font-weight: 200;
    font-size: 18px;
    text-align: center;
    flex-grow: 1;
    color: black;
    transition: all 0.2s;
}
nav a:hover{
    color: #6947b8;
}
main{
    border-bottom: 2px solid black;
    display: flex;
    flex-direction: column;
}
article{
    display: flex;
    border-bottom: 2px solid black;
}
.border{
    flex:0 0 70px;
}
.content{
    display: flex;
    border-left: 2px solid black;
}
.content div{
    display: flex;
    flex-direction: column;
    padding: 40px;
    flex-grow: 1;
}
.content div p:not(:last-child){
    margin-bottom: 16px;
}
.content img{
    object-fit: cover;
    width: 50%;
}

.right{
    flex-direction: row-reverse;
}
.centered{
    justify-content: center;
    flex-grow: 1;
    flex-direction: column;
    display: flex;
    border-left: 2px solid black;
}
.centered h2{
    padding-top: 40px;
    text-align: center;
    margin: 0;
}
.price{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 40px 80px;
}
.price h3{
    margin-bottom: 10px;
}
.purple{
    background-color: #6947b8;
    color: #F5F6F1;
}
.purple button, .purple a {
    background-color: #49317a;
    color: #F5F6F1;
}
.purple button:hover{
    background-color: #49317a;
    color: #F5F6F1;
}
.price strong{
    font-size: 30px;
    line-height: 3;
    font-family: "Unbounded", serif;
}
.price .cont{
    width: 100%;
    padding: 40px;
    max-width: 450px;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.info{
    display: block;
    text-align: center;
    margin-bottom: 40px;
}
.cards{
    padding: 40px;
    gap: 20px;
    width: 100%;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
form button{
    max-width: none;
}
.flip > .front,
.flip > .back {
    display: block;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-duration: 0.5s;
    transition-property: transform, opacity;
}
.flip > .front {
    transform: rotateY(0deg);
    box-shadow: 4px 4px 0 black;
}
.flip > .back {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(-180deg);
}
.flip:hover > .front {
    transform: rotateY(180deg);
}
.flip:hover > .back {
    opacity: 1;
    transform: rotateY(0deg);
    box-shadow: 4px 4px 0 black;
}
.flip.flip-vertical > .back {
    transform: rotateX(-180deg);
}
.flip.flip-vertical:hover > .front {
    transform: rotateX(180deg);
}
.flip.flip-vertical:hover > .back {
    transform: rotateX(0deg);
}
.flip {
    position: relative;
    width: 400px;
    text-align: center;
}
.flip > .front,
.flip > .back {
    color: #F5F6F1;
    width: inherit;
    height: 220px;
    padding: 1em 2em;
    background: #313131;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flip > .front{
    background-color: #F5F6F1;
    border: 2px solid black;
    color: black;
    text-align: center;
    margin: auto;
}
.flip > .front p,
.flip > .back p {
    color: #F5F6F1;
}
.rever{
    color: #F5F6F1;
    background-color: black;
}
.rever a{
    color: #a280ef;
}
.lines{
    border-left: 2px solid black;
}
.lines h2, .grid h2{
    padding: 40px 40px 10px 40px;
    margin: 0;
}
.lines h4{
    margin: 0;
}
.tab {
    position: relative;
}
.tab input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
.tab__content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s;
}
.tab input:checked ~ .tab__content {
    max-height: 10rem;
}
.checkbox{
   margin-bottom: 20px;
}
.accordion {
    overflow: hidden;
}
.tab{
    border-bottom: 2px solid black;
}
.tab:last-of-type{
    border: none;
}
.tab__label,
.tab__close {
    display: flex;
    cursor: pointer;
    align-items: center;
}
.tab__label {
    justify-content: space-between;
    padding: 20px 40px;
}
.tab__label::after {
    content: "\276F";
    width: 1em;
    height: 1em;
    text-align: center;
    transform: rotate(90deg);
    transition: all 0.35s;
}
.tab input:checked + .tab__label::after {
    transform: rotate(270deg);
}
.tab__content p {
    margin: 0;
    padding: 0 20px 20px 40px;
}
.tab__close {
    justify-content: flex-end;
    padding: 0.5rem 1rem;
}
.accordion--radio {
    color: black;
}


.tab input:not(:checked) + .tab__label:hover::after {
    animation: bounce .5s infinite;
}

/* FORM.HTML */
.form{
    text-align: center;
}
.form form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
    margin: auto;
    padding: 20px 0;
}
form input[type=text], [type=email], [type=url]  {
    all: unset;
    margin-top: 10px;
    margin-bottom: 40px;
    height: 42px;
    border: 2px solid black;
}
.selector input[type="radio"]{
    visibility: hidden;
    height: 0;
    width: 0;
    position: absolute;
}
.selector{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}
.selector label{
    flex-grow: 1;
    text-align: center;
    cursor: pointer;
    border: 2px solid black;
    color: black;
    margin: 10px 0;
    transition: 0.1s;
}
input[type="radio"]:checked + label{
    background-color: black;
    color: #F5F6F1;
}
form label{
    font-size: 18px;
    font-family: "Unbounded", serif;
}
.break{
    flex-basis: 100%;
    height: 0;
}
.selector small{
    margin-bottom: 30px;
    display: none;
}
.selector #split:checked~small {
    display: block;
}
@keyframes bounce {
    25% {
        transform: rotate(90deg) translate(.25rem);
    }
    75% {
        transform: rotate(90deg) translate(-.25rem);
    }
}
#feedbacks .border{
    border-bottom: 2px solid black;
}
.grid-wrapper > div {
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    background-color: #F5F6F1;
}
.grid-wrapper > div > img {
    object-fit: cover;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    border-top: 2px solid black;
}
.grid-wrapper .wide {
    grid-column: span 2;
}
.grid-wrapper .tall {
    grid-row: span 2;
}
.grid-wrapper .big {
    grid-column: span 2;
}
.grid{
    width: 100%;
    border-left: 2px solid black;
}
.grey{
    background-color: #f8f9fa !important;
}
.dark-grey{
    background-color: #f4f4f4 !important;
}
#important .content{
    flex-direction: row;
    padding: 40px;
    gap: 40px;
    flex-grow: 1;
    justify-content: center;
}
#important .content section{
    max-width: 460px;
}
#important .content section div{
    padding: 0 0 20px 0;
}
#important .content section h2{
    font-size: 70px;
    line-height: 1;
    margin-top: 10px;
}
#important .content section h3{
    line-height: 1.8;
}
.message{
    width: 100%;
    max-width: 500px;
    margin: 80px auto;
    padding: 40px 0;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.message img{
    display: block;
    margin: auto;
    padding-bottom: 20px;
}
.message h2{
    text-align: center;
}
.modal-window {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.25);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    &:target {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    & > div {
        width: 400px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 2em;
        background: #F5F6F1;
    }
    header {
        font-weight: bold;
    }
    h1 {
        font-size: 150%;
        margin: 0 0 15px;
    }
}

.modal-close {
    color: #aaa;
    line-height: 35px;
    font-size: 80%;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
    &:hover {
        color: black;
    }
}


@keyframes confetti {
    0% {
        top: 100%;
    }
    100% {
        top: -100%;
    }
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
}
.parallax {
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.parallax img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translateX(-50%) translateZ(0);
    animation: confetti linear infinite;
}
.parallax img:nth-child(1) {
    animation-delay: -160s;
    animation-duration: 40s;
}
.parallax img:nth-child(2) {
    animation-delay: -120s;
    animation-duration: 80s;
}
.parallax img:nth-child(3) {
    animation-delay: -80s;
    animation-duration: 120s;
}
.parallax img:nth-child(4) {
    animation-delay: -40s;
    animation-duration: 160s;
}
.parallax img:nth-child(5) {
    animation-delay: 0s;
    animation-duration: 200s;
}
.price .button{
    max-width: none;
}
@media screen and (max-width: 480px) {
    body {
        width: 100%;
        overflow:auto;
        font-size: 16px;
    }
    h1{
        font-size: 4rem;
    }
    .top{
        flex-direction: column;
    }
    header{
        margin: 0;
    }
    header h1{
        margin-top: -20px;
    }
    .hero img{
        overflow:auto;
    }
    .border{
        display: none;
    }
    nav{
        display: none;
    }
    .content, .centered{
        border-left: 2px solid black;
        border-right: 2px solid black;
    }
    .content, .price, #important .content{
        flex-direction: column;
    }
    .content img{
        width: 100%;
    }
    .price, .content div{
        padding: 16px;
    }
    .price .cont {
        max-width:none;
        padding: 16px;
    }
    .price strong, button{
        font-size: 1rem;
    }
    .flip{
        width: 100%;
    }
    .cards, #important .content{
        padding: 16px;
        gap: 16px;
    }
    #important .content section {
        padding: 0;
    }
    #important .content section h2{
        font-size: 3rem;
    }
    .centered h2{
        text-align: left;
        padding: 40px 40px 10px 40px;
    }
    .form, .message {
        padding: 16px;
    }
    .message{
        margin: 0;
    }
}