/* W tym pliku znajdujÃ„â€¦ siÃ„â„¢ style do body, gÃƒÂ³rnego paska nawigacji, menu kontekstowego mojego konta oraz stopki. */
/* Tutaj zadeklarowane sÃ„â€¦ takÃ…Â¼e zmienne i czcionki. */

:root {
    --black: #0A0626;
    --dark: #2E166C;
    --gray: #8C899D;
    --white: #EDE9F8;
    --accent1: #5E35F2;

    --hoverRadioCbx: rgba(62, 29, 143, 0.2);

    --fontSize: 16px;

    --radius: 20px;
}

@font-face {
    font-family: "SpaceR";
    src: url("Zasoby/Space_Grotesk/SpaceGrotesk-Regular.woff2") format("woff2"),
         url("Zasoby/Space_Grotesk/SpaceGrotesk-Regular.woff") format("woff"),
         url("Zasoby/Space_Grotesk/SpaceGrotesk-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "SpaceB";
    src: url("Zasoby/Space_Grotesk/SpaceGrotesk-Bold.woff2") format("woff2"),
         url("Zasoby/Space_Grotesk/SpaceGrotesk-Bold.woff") format("woff"),
         url("Zasoby/Space_Grotesk/SpaceGrotesk-Bold.ttf") format("truetype")
}

/* DESKTOP */

* {
    font-family: "SpaceR";
    font-size: var(--fontSize);
    box-sizing: border-box;
    caret-color: var(--accent1);
    margin: 0;
    color: var(--white);
}

*::selection {
    background-color: var(--accent1);
    color: var(--black);
}

body {
    margin: 0;
    width: 100%;
    padding: 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--black);
}


.input_container_policy input{
    width: 15px;
    height: 15px;
    margin-right: 10px;
    padding: 0px;
}
body::-webkit-scrollbar {
    display: none;
}

/* pasek nawigacji na gÃƒÂ³rze */
nav {
    width: 100%;
    padding: 0 40px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    transition: all 0.25s;
    z-index: 10;
    background: var(--blur);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

nav > div:nth-of-type(1) {
    width: 150px;
    height: 40%;
}

nav img {
    height: 100%;
}

nav > menu {
    height: calc(100% - 300px);
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    transition: all 0.25s;
}

nav > #my_account {
    height: 50%;
    width: 150px;
    justify-items: center;
}

/* Linki w menu */

.link {
    height: 30px;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    display: flex;
}

.mask {
    position: relative;
    padding: 0;
    height: 16px;
    overflow: hidden;
}

.link-container {
    transition: transform 0.4s ease;
}

.title {
    display: block;

    /*  Set same font-size and line height  */
    font-size: 16px;
    line-height: 16px;

    transition: transform 0.4s ease;
}

.link-title1 {
    transform-origin: right center;
}

.link-title2 {
    transform-origin: left center;
    transform: rotate(20deg);
}

.link:hover .link-container {
    transform: translateY(-16px);
}

.link:hover .link-title1 {
    transform: rotate(20deg);
}

.link:hover .link-title2 {
    transform: rotate(0);
}

/* Przycisk w menu */

.button-pushable {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.button-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    background: hsl(0deg 0% 0% / 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition:
        transform
        600ms
        cubic-bezier(.3, .7, .4, 1);
}

.button-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    background: linear-gradient(
        to left,
        #2C146D 0%,
        #371F8C 8%,
        #371F8C 92%,
        #2C146D 100%
    );
}

.button-front {
    display: block;
    position: relative;
    padding: 12px 24px;
    border-radius: var(--radius);
    color: var(--white);
    font-family: "SpaceB";
    background: var(--accent1);
    will-change: transform;
    transform: translateY(-4px);
    transition:
        transform
        600ms
        cubic-bezier(.3, .7, .4, 1);
}

.button-pushable:hover {
    -webkit-filter: brightness(110%);
    filter: brightness(110%);
}

.button-pushable:hover .button-front {
    transform: translateY(-6px);
    transition:
        transform
        250ms
        cubic-bezier(.3, .7, .4, 1.5);
}

.button-pushable:active .button-front {
    transform: translateY(-2px);
    transition: transform 34ms;
}

.button-pushable:hover .button-shadow {
    transform: translateY(4px);
    transition:
        transform
        250ms
        cubic-bezier(.3, .7, .4, 1.5);
}

.button-pushable:active .button-shadow {
    transform: translateY(1px);
    transition: transform 34ms;
}

/* Menu kontekstowe mojego konta */

nav > #my_account > #user_menu {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    position: relative;
    top: 15px;
    right: 60px;

    background-image: linear-gradient(
        139deg,
        var(--dark) 0%,
        var(--black) 100%
    );

    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease-in-out;
    border: 1px solid var(--dark);
}

#user_menu ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

#user_menu ul li {
    display: flex;
    align-items: center;
    color: var(--gray);
    gap: 10px;
    transition: all 0.25s ease-out;
    border-radius: 6px;
    padding: 10px;
    margin: 4px 0;
}

#user_menu ul li img {
    width: 20px;
    height: 20px;
    transition: all 0.25s ease-out;
    filter: invert(56%) sepia(7%) saturate(712%) hue-rotate(209deg) brightness(98%) contrast(85%);
}

#user_menu ul:last-child img {
    filter: invert(17%) sepia(99%) saturate(4834%) hue-rotate(253deg) brightness(98%) contrast(93%);
}

#user_menu ul li .label {
    font-family: "SpaceB";
}

#user_menu ul li:hover {
    background-color: var(--hoverRadioCbx);
    color: var(--white);
    transform: translate(1px, -1px);
    cursor: pointer;
}

#user_menu ul li:active {
    transform: scale(0.99);
}

#user_menu ul li:hover img {
    filter: invert(100%);
}

#user_menu ul:last-child .label {
    color: var(--accent1);
}

#user_menu ul:last-child li:hover .label {
    color: var(--white);
}

#user_menu ul:last-child li:hover {
    background-color: var(--accent1);
}

#user_menu .separator {
    border-top: 1px solid var(--dark);
}

#user_menu a {
    text-decoration: none;
    font-family: "SpaceB";
}

html:not([data-scroll='0'])
{
    nav {
        width: 60%;
        border-radius: var(--radius);
        margin-top: 20px;
        transition: all 0.25s;
       
    }

    nav menu {
        gap: 50px;
        transition: all 0.25s;
    }
}

footer {
    width: calc(100% + 80px);
    height: 70px;
    margin-top: 40px;
    padding: 20px 40px;
    background-color: var(--black);
    border-top: 1px solid var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: var(--dark);
}

footer div {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

footer img {
    width: 30px;
    height: 30px;
    filter: invert(13%) sepia(91%) saturate(7410%) hue-rotate(261deg) brightness(42%) contrast(93%);
    transition: all 0.25s ease-in-out;
}

footer img:hover {
    cursor: pointer;
    filter: invert(100%);
}

/* ELEMENTY FORMULARZA */

/* Checkboxy */

.checkbox-wrapper * {
    box-sizing: border-box;
}

.checkbox-wrapper .cbx {
    -webkit-user-select: none;
    user-select: none;
    /* cursor: pointer; */
    padding: 6px 8px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: inline-block;
}

.checkbox-wrapper .cbx:not(:last-child) {
    margin-right: 6px;
}

.checkbox-wrapper .cbx:hover {
    background-color: var(--hoverRadioCbx);
    cursor: pointer;
}

.checkbox-wrapper .cbx span {
    float: left;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper .cbx span:first-child {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    transform: scale(1);
    border: 1px solid var(--gray);
    transition: all 0.2s ease;
    box-shadow: 0 1px 1px rgba(0,16,75,0.05);
}

.checkbox-wrapper .cbx span:first-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: var(--white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper .cbx span:last-child {
    padding-left: 8px;
    line-height: 18px;
}

.checkbox-wrapper .cbx:hover span:first-child {
    border-color: var(--accent1);
}

.checkbox-wrapper .inp-cbx {
    position: absolute;
    visibility: hidden;
}

.checkbox-wrapper .inp-cbx:checked + .cbx span:first-child {
    background: var(--accent1);
    border-color: var(--accent1);
    animation: wave 0.4s ease;
}

.checkbox-wrapper .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.checkbox-wrapper .inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

@keyframes wave {
    50% {
        transform: scale(0.9);
    }
}

/* Input type radio */

label.radio-wrapper {
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

label.radio-wrapper:hover,
label.radio-wrapper:focus-within {
    background-color: var(--hoverRadioCbx);
    cursor: pointer;
}

label.radio-wrapper input {
    vertical-align: middle;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: none;
    border: 0;
    box-shadow: inset 0 0 0 1px var(--gray);
    box-shadow: inset 0 0 0 1.5px var(--gray);
    appearance: none;
    padding: 0;
    margin: 0;
    transition: box-shadow 150ms cubic-bezier(0.95, 0.15, 0.5, 1.25);
    pointer-events: none;
}

label.radio-wrapper input:focus {
    outline: none;
}

label.radio-wrapper input:checked {
    box-shadow: inset 0 0 0 6px var(--accent1);
}

label.radio-wrapper span {
    vertical-align: middle;
    display: inline-block;
    line-height: 20px;
    padding: 0 8px;
}

/* Inne */

select, select:focus, select:active {
    border-radius: var(--radius);
    background-color: var(--dark);
    border: none;
    color: var(--white);
    appearance: none;
    overflow: hidden;
    padding: 0;
    position: absolute;
    z-index: 1;
    padding: 10px 15px;
}

select {
    padding: 10px 15px;
    border: none;
}

option {
    padding: 10px;
}

option:hover {
    background-color: var(--accent1);
    color: var(--dark);
    transition: all 0.25s;
}

input[type="date"] {
    background-color: var(--dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 8px 15px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert();
}

input[type="number"] {
    appearance: none;
    border: none;
    border-radius: var(--radius);
    padding: 8px 15px;
    background-color: var(--dark);
    color: var(--white);

}

/* SMARTPHONE */

@media screen and (min-width: 0px) and (max-width: 768px) {
body {
   padding: 0 20px 0; 
}

nav {
    height: 120px;
   
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

nav > div:nth-of-type(1) {
    width: 0;
    height: 0;
    display: none;
}

nav > menu {
    padding: 0;
    width: 100%;
    height: 30px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-direction: row;
}

#my-account button {
    width: 100%;
}

html:not([data-scroll='0'])
{
    nav {
        width: 100%;
        border-radius: 0;
        margin-top: 0;
        border: none;   
    }

    nav menu {
        gap: 20px;
        transition: all 0.25s;
    }
}

#user_menu ul li img {
    filter: invert(100%);
}

footer {
    width: calc(100%);
    height: 110px;
    margin-top: 20px;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 5px;
}

footer div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

footer img {
    width: 40px;
    height: 40px;
}
}

@media screen and (min-width: 768px) and (max-width: 1225px) {
nav menu {
    width: 80%;
}    

html:not([data-scroll='0'])
{
    nav {
        width: 90%;
    }

    nav menu {
        gap: 50px;
        transition: all 0.25s;
    }
}
}			