@import '/static/css/root.css';

/* Button  */
.btn{
    padding:  0.75rem 2rem;
    line-height: 1;
    border-radius: var(--border-radius);
}
.btn:focus{
    outline: 0;
}
@keyframes button-push {
    50%{
        transform: scale(0.8);
    }
    100%{
        transform: scale(1);
    }
}
.btn-default{
    color: #fff;
    vertical-align: middle;
    display: inline-block;
    background-color: var(--color-primary);
    transform: perspective(1px) translate(0);
}
.btn-default:hover{
    animation-name: button-push;
    animation-duration: 0.3s;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}


/* Header  */
header {
    text-align: center;
    position: relative;
    height: 100vh;
    position: static;
    top: 0;
    left: 0;
    width: 100%;
}

.header-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    align-items: start;
}
.logo {
    text-align: center;
    font-size: var(--logo-font-size);
    letter-spacing: 1px;
    text-transform: uppercase;
}
header .header-text {
    position: relative;
}
header h1 {
    font-size: var(--header-font-size-h1);
    margin: 0;
    font-family: var(--title-font);
}
header h1 p {
    position: relative;
    font: inherit;
    margin: 0;
    width: fit-content;
    font-weight: var(--font-bold);
    text-align: left;
    line-height: 130%;
    letter-spacing: -0.03em;
}
header h2 {
    max-width: 65ch;
    font-weight: var(--font-small);
    margin: 0;
}
header .fixed-header {
    position: absolute;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
/* Nav  */

.nav{
    height: calc(var(--header-height));
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 3rem;
    position: sticky;
    top: 0;
    transition: top 500ms ease-in-out;
    z-index: 100;
}
nav.scroll-up,
nav:focus-within {
  top: 0;
  background: var(--color-light);
}

nav.scroll-down {
    top: -100%;
}
.nav-logo{
    position: relative;
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    letter-spacing: 0.125rem;
}
.nav-logo::after {
    position: absolute;
    content: '';
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    top: 56%;
    right: -0.35rem;
}
.nav-menu{
    margin-left: auto;
}
.nav-list{
    display: flex;
    column-gap: 3rem;
}
.nav-link{
    font-weight: var(--font-medium);
    transition: .3s;
}
.nav-link:hover{
    color: var(--color-primary);
}
.nav-close .line{
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    cursor: pointer;
    width: 20px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px;
    border-radius: 3px;
}
.nav-close .line:first-child{
    transform: rotate(-45deg);
}
.nav-close .line:last-child{
    transform: rotate(45deg);
}

.nav-btns{
    display: inline-flex;
    align-items: center;
    column-gap: 1rem;
}
svg {
    fill: var(--color-dark);
}

.change-theme{
    cursor: pointer;
}
.nav-toggle{
    font-size: 1.2rem;
    cursor: pointer;
}
.nav-close,
.icon-burger,
.nav-toggle{
    display: none;
    cursor: pointer;
}
.icon-burger .line{
    width: 20px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px;
    border-radius: 3px;
    transition: all .3s ease-in-out;
}
.icon-burger .line:last-child{
    width: 15px;
}
.active-link{
    position: relative;
}
.active-link::before{
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 45%;
    width: 0.3rem;
    height: 0.3rem;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* Scroll down  */
.scroll-button{
    position: absolute;
    bottom: var(--m-2-5);
    left: 0;
    width: 100%;
}

.mouse-wrapper{
    font-size: var(--small-font-size);
    display: block;
    margin: auto;
    max-width: 100px;
    text-align: center;
}

@keyframes ani-mouse {
    0%{
        top: 29%;
    }
    15%{
        top: 50%;
    }
    50%{
        top: 50%;
    }
    100%{
        top: 29%;
    }
}

.mouse{
    border: 2px solid var(--color-dark);
    display: block;
    height: 1.7rem;
    width: 1.25rem;
    margin: auto;
    margin-top: var(--m-0-75);
    border-radius: var(--border-radius);
    position: relative;
}
.mouse .wheel {
    background-color: var(--color-dark);
    height: 0.25rem;
    width: 0.25rem;
    margin: auto;
    border-radius: 50%;
    position: absolute;
    top: var(--m-0-5);
    left: 40%;
    display: block;
    animation: ani-mouse 1s linear infinite;
}

/* Footer */
footer{
    padding: 2em 0;
}

.footer-media{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem -0.5rem;
}
.footer-media a{
    margin: 0 1rem;
    font-size: 1.1rem;
}
.footer-media a svg{
    height: 20px;
    width: 20px;
}
.footer-media a img{
    height: 20px;
    width: 20px;
}
.copyright{
    text-align: center;
}
@media screen and (min-width: 768px){
    .footer-content{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .footer-media{
        justify-content: start;
        align-items: start;
        margin: 2rem -0.5rem;
    }
    .copyright{
        text-align: right;
    }
}
@media only screen and (max-width: 768px) {
    body{
        margin: var(--header-height) 0 0 0;
    }
    .container{
        max-width: 592px;
    }
    .nav{
        height: var(--header-height);
    }
    .nav-list{
        flex-direction: column;
        row-gap: 1.5rem;
    }
    .nav-menu{
        position: fixed ;
        background: var(--color-white);
        width: 80%;
        height: 100%;
        top: 0%;
        right: 100%;
        padding: 4rem 0 0 3rem;
        border-radius: 1rem 0 0 1rem;
        z-index: 100;
        transition: .3s;
    }
    .show-menu {
        right: 0;
    }
    .nav-close,
    .nav-toggle{
        display: inline-flex;
    }
    .icon-burger{
        display: block;
    }
}

/* Customize Theme  */
.customize-theme{
    background: rgba(0, 0, 0, 0);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    text-align: center;
    display: grid;
    place-items: center;
    font-size: var(--small-font-size);
    visibility: hidden;
    opacity: 0;
    transition: background 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
}

.customize-theme.show-modal {
    visibility: visible;
    opacity: 1;
    background: rgba(0, 0, 0, .4);
}
.customize-theme .card{
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    width: 40%;
    max-width: 600px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.customize-theme.show-modal .card {
    transform: translateY(0);
    opacity: 1;
}

.customize-theme .font-size{
    margin-top: var(--m-2-5);
}

.customize-theme .font-size> div {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-light);
    padding: .6rem 1rem;
    border-radius: var(--border-radius);
}
.customize-theme .choose-size{
    background: hsl(252, 100%, 90%);
    height: 0.35rem;
    width: 100%;
    margin: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.customize-theme .choose-size span{
    width: 1rem;
    height: 1rem;
    background: hsl(252, 100%, 90%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.customize-theme .choose-size span.active{
    background: var(--color-primary);
    transform: scale(1.2);
}
.customize-theme .color{
    margin-top: var(--m-2);
}
.customize-theme .choose-color{
    background: var(--color-light);
    border-radius: var(--border-radius);
    padding: .6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customize-theme .choose-color span{
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customize-theme .choose-color span:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.customize-theme .choose-color span:nth-child(1){
    background: hsl(252, 75%, 60%);
}
.customize-theme .choose-color span:nth-child(2){
    background: hsl(52, 75%, 60%);
}
.customize-theme .choose-color span:nth-child(3){
    background: hsl(352, 75%, 60%);
}
.customize-theme .choose-color span:nth-child(4){
    background: hsl(152, 75%, 60%);
}
.customize-theme .choose-color span:nth-child(5){
    background: hsl(202, 75%, 60%);
}

.customize-theme .choose-color span.active{
    border: 5px solid #fff;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.customize-theme .background{
    margin-top: var(--m-2);
}
.customize-theme .choose-bg{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}
.customize-theme .choose-bg > div{
    padding: .8rem .2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customize-theme .choose-bg > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.customize-theme .choose-bg > div.active{
    border: 2px solid var(--color-primary);
}
.customize-theme .choose-bg .bg-1{
    background: hsl(252, 30%, 92%);
    color: hsl(252, 30%, 17%);
}
.customize-theme .choose-bg .bg-2{
    background: hsl(252, 30%, 17%);
    color: #fff;
}
.customize-theme .choose-bg .bg-3{
    background: hsl(252, 30%, 10%);
    color: #fff;
}
.customize-theme .choose-bg > div span{
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid var(--color-gray);
    border-radius: 50%;
}

/* media queries  */
@media only screen and (max-width: 1200px) {
    .customize-theme .card{
        width: 50vw;
    }
}

@media only screen and (max-width: 968px)  {
    .customize-theme .card{
        width: 58vw;
    }
}

@media only screen and (max-width: 768px) {
    .customize-theme .card{
        width: 75vw;
    }
}

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

    .customize-theme .card{
        width: 96vw;
        padding: 1rem;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* HIGHLIGHTS  */
