:root {
    --neutral-gray-400: hsl(0, 0%, 48%);
    --neutral-black-900: hsl(0, 0%, 0%);
    --primary-cyan-400: hsl(176, 50%, 47%);
    --primary-cyan-900: hsl(176, 72%, 28%);

    --fs-200: 0.875rem;
    --fs-400:1rem;
    --fs-500:1.125rem;
    --fs-600:2rem;
    --fs-700:2.5rem;
}
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@400;500;700&display=swap');

*, *::after, *::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
body {
    font-family: 'Commissioner', sans-serif;
    background-color: hsl(0, 0%, 98%);
    position: relative;
}
h1, h3, h4, span, .backed-bold-p, .mm-link {
    color:var(--neutral-black-900);
    font-weight: 700;
}
h1 {
    font-size: clamp(1.250rem, 5vw, 1.750rem);
    font-weight: bolder;
}
p {
    color: var(--neutral-gray-400);
    font-size: clamp(0.875rem, 4vw, 1rem);
    font-weight: 500;
    line-height: 1.7;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}
.nav-list, .mobile-menu, .back-this-project, .support-completed, .bookmark-p, .mobile-menu-bg, .mobile-nav {
    display: none;
}
.header {
    background-image: url('../images/image-hero-mobile.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height:35vh;
    position: relative;
    z-index: 10;
}
button {
    border: none;
    cursor: pointer;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    170deg,
    rgba(0, 0, 0, 0.276) 15.54%,
    rgba(0, 0, 0, 0.092) 23.23%,
    transparent 100%
  );
    z-index: -1;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 87%;
    margin-inline: auto;
    padding-top: 1.5rem;
}
.nav-logo {
    position: relative;
}
.hamburger-button {
    background-color: transparent;
    border: none;
    position: relative;
}
.main {
    width: 87%;
    margin-inline: auto;
    transform: translateY(-50px);
    position: relative;
    z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.bookmark-section, .backed-numbers-section, .about-section {
    background-color: #fff;
    border: 1px solid hsl(0, 0%, 94%);
    border-radius: 10px;
}
.bookmark-section {
    position: relative;
    text-align: center;
    padding: 3rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;

}
.bookmark-logo {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    margin-inline: auto;
}
.bookmark-section p {
    padding: 1rem 0;
}
.bookmark-padding-p {
    padding-bottom: clamp(1rem, 3vw, 2.5rem) !important;
}
.bookmark-section h1 {
    min-width: 250px;
    margin-inline: auto;
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
}
.bookmark-section-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bookmark-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-cyan-400);
    padding: 1rem 2rem;
    border-radius: 100vw;
    color: #fff;
    font-size: 1.125;
    font-weight: 700;
    letter-spacing: 1px;
}
.bookmark-btn:hover , .back-project-btn:hover, .pledge-btn:hover {
    background-color: var(--primary-cyan-900);
}
.bookmark-toggle {
    padding: 0rem;
    background-color: #fff;
    display: flex;
    align-items: center;
    position: relative;
}
.bookmark-toggle svg {
    width: 47px;
    height: 47px;
}
.bookmark-toggle svg g path {
    transform: translateX(-4px);
}
.bookmark-toggle:hover svg g circle{
    color:hsl(0, 0%, 48%);
}
.backed-numbers-section {
    text-align: center;
    padding: 0rem 1.5rem;
    padding-bottom: 2rem;
}
.backed-box {
    padding: 1rem;
}
.backed-box {
    position: relative;
}
.backed-total::before {
    content: '';
    position: absolute;
    top:0;
    left: 0;
    right: 0;
    height: 100%;
    width: 30%;
    margin-inline: auto;
    border-top: 1px solid hsl(0, 0%, 78%);
    border-bottom: 1px solid hsl(0, 0%, 78%);
}
.backed-bold-p {
    font-size: 2.4rem;
    line-height: 1.5;
}
.backed-bar {
    width: 100%;
    height: 10px;
    margin-inline: auto;
    background-color: hsl(0, 0%, 95%);
    border-radius: 100vw;
}
.backed-bar-bar {
    background-color: var(--primary-cyan-400);
    height: 100%;
    width: 80%;
    border-radius: 100vw;
}
.about-section {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.about-info {
    padding: 1rem 0;
}
.about-info p:nth-of-type(1) {
    padding: 1.5rem 0;
}
.about-reward-boxes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.reward-box {
    border: 1px solid hsl(0, 0%, 88%);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw , 1.5rem);
}
.reward-box a {
    color: var(--primary-cyan-400);
    font-weight: 700;
}
.reward-box p {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.reward-box span {
    font-size: 2rem;
}
.reward-box-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.reward-button {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.reward-btn {
    width: 80%;
    background-color: var(--primary-cyan-400);
    padding: 1rem 1rem;
    border-radius: 100vw;
    color: #fff;
    font-size: 1.125;
    font-weight: 700;
    letter-spacing: 1px;
}
.reward-btn:hover {
    background-color: var(--primary-cyan-900);
}
.reward-box:nth-of-type(3) {
    opacity: 0.5;
}
.reward-btn-gray {
    background-color: hsl(0, 0%, 48%);
}
.reward-btn-gray:hover {
    background-color: hsl(0, 0%, 48%);
}

/* MOBILE MENU */

.mobile-menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100vh;
    z-index: 99;
    background: linear-gradient(
      156.82deg,
      rgba(0, 0, 0, 0.6) 4.58%,
      rgba(0, 0, 0, 0) 69.61%
    ),
    linear-gradient(24.5deg, rgba(0, 0, 0, 0.2) 4.71%, rgba(0, 0, 0, 0) 71.49%);
}
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    margin-inline: auto;
    z-index: 100;
    border-radius: 10px;
    background-color: #fff;
    width: 90%;
}
.mobile-list li {
    padding: 1.5rem;
}
.mobile-list li a {
    font-size: 1.2rem;
}
.mobile-list li:nth-of-type(2) {
    border-top: 1px solid hsl(0, 0%, 93%);
    border-bottom: 1px solid hsl(0, 0%, 93%);
}
.mobile-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    width: 87%;
    margin-inline: auto;
    padding-top: 1.5rem;
}
.mobile-hamburger-button, .mobile-nav-logo {
    display: none;
    z-index: 100;
}
.mobile-hamburger-button {
    background-color: transparent;
    border: none;
}

/* BACK THIS PROJECT */

.back-this-project {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 87%;
    background-color: #fff;
    border-radius: 10px;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
    z-index: 100;
}
.close-button {
    cursor: pointer;
}
.btp-info-upper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btp-info p {
    padding: 2rem 0;
}
form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.btp-box {
    border: 1px solid hsl(0, 0%, 88%);
    border-radius: 10px;
}
.btp-box:nth-of-type(4) {
    opacity: 0.5;
}
.btp-box-upper {
    position: relative;
    padding: 2rem 1.5rem;
    padding-bottom: 3rem;
}
.btp-box-info-upper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
}
input[type=radio] {
    width: 20px;
    height: 20px;                                                               /* FIX BORDER I POZADINU */
    border: 1px solid red!important;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    caret-color: var(--primary-cyan-400);
}
input[type=number]:focus {
    border: 1px solid var(--primary-cyan-900);
}
.btp-bold-p {
    font-weight: 700;
    color: var(--neutral-black-900);
}
.btp-bold-p:hover {
    color: hsl(176, 50%, 47%);
}
.btp-cyan-p {
    color: var(--primary-cyan-400);
    font-weight: 700;
}
.btp-left-p {
    position: absolute;
    bottom: 10px;
    left: 1.5rem;
}
.bold-span {
    font-weight: 700;
    font-size: 1.1rem;
}
.btp-box-bottom {
    display: block;
    /* padding: 1.5rem; */
    text-align: center;
    border-top: 1px solid hsl(0, 0%, 88%);
    height: 0px;
    overflow: hidden;
    transition: 0.3s;
}
.btp-box-bottom p {
    padding-top: 1.5rem;
}
.pledge-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0rem, 2vw, 1rem);
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.pledge-amount {
    padding: 1rem 2.2rem;
    width: 7.125rem;
    border: 1px solid hsl(0, 0%, 88%);
    border-radius: 100vw;
    color: var(--neutral-black-900);
    font-weight: 700;
}
.pledge-amount:focus {
    outline: none;
}
.pledge-input label {
    position: absolute;
    top: 16px;
    left: 12%;
    color: hsl(0, 0%, 76%);
    font-weight: 700;
    font-family: 'Commissioner', sans-serif;
}
.pledge-btn, .back-project-btn {
    padding: 1rem 1.5rem;
    background-color: var(--primary-cyan-400);
    border-radius: 100vw;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

/* SUPPORT COMPLETED  */

.support-completed {
    position: fixed;
    top: 137px;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 87%;
    background-color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    z-index: 100;
    border-radius: 10px;
}
.support-completed h3 {
    padding-top: 2rem;
}
.support-completed p {
    padding: 2rem 0;
}
.back-project-btn {
    padding: 1rem 2rem;
}
.error-label1, .error-label2 {
    display: none;
    color: red !important;
    top: 53px !important;
    left: 17% !important;
    font-size: 0.7rem;
}
/* JS CLASSES */

.overflow {
    overflow:hidden;
}
.show {
    z-index:100;
}
.active {
    display: block;
}
.active-flex {
    display: flex;
}
.hidden {
    display: none;
}
.outlined {
    border: 2px solid var(--primary-cyan-400);
}
.height {
    height: 138px; /* 138px */
    transition: 0.3s;
}
@media (min-width:500px) {
    .hamburger-button {
        display: none;
    }
    .nav-list{
        display: flex;
        align-items: center;
    }
    .nav-list li {
        display: flex;
        gap: clamp(1rem, 4vw, 3rem);
    }
    .nav-list li a {
        color: #fff;
        font-size: 0.875rem;
    }
    .nav-list li a:hover {
        border-bottom: 1px solid hsl(0, 0%, 48%);
    }
    .bookmark-section-btns {
        justify-content: space-between;
        width: 90%;
    }
    .bookmark-toggle {
        background-color: hsl(0, 0%, 95%);
        border-radius: 47px;
        height: 44px;
    }
    .bookmark-toggle svg {
        position: absolute;
        top: -2px;
        left: 0;
        max-width: 47px;
        max-height: 47px;
    }
    .bookmark-p {
        display: block;
        padding-left: 4rem !important;
        padding-right: 1.5rem !important;
        color: hsl(0, 0%, 48%) !important;
        font-weight: 700;
    }
    .reward-box {
        text-align: start;
    }
    .reward-box-header {
        flex-direction: row;
        justify-content: space-between;
    }
    .reward-button {
        flex-direction: row;
        justify-content: space-between;
    }
    .reward-btn {
        width: auto;
        padding: 1rem 2rem;
    }
    .support-completed {
        top: 187px;
        max-width: 524px;
        padding: 3rem 3rem;
    }
    .support-completed h3 {
        padding-top: 3rem;
    }
    .support-completed p {
        padding: 1.5rem 0;
    }
}
@media (min-width:680px) {
    .main {
        transform: translateY(-100px);
    }
    .header {
        background-image: url('../images/image-hero-desktop.jpg');
        height:40vh;
    }
    .pledge-ps {
        display: flex;
    }
    .btp-bold-p {
        padding-right: 1rem;
    }
    .btp-left-p {
        position: absolute;
        bottom: auto; 
        left: auto;
        right: 1.5rem;
    }
    .padding-p {
        padding-left: 2.275rem;
    }
    .btp-box-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .pledge-input {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        position: relative;
        padding-top: 0rem;
        padding-bottom: 0rem;
    }
    .enter-pledge-p {
        padding-top: 0rem !important;
        padding-left: 1.5rem;
    }
    .pledge-input label {
        left: 17%;
    }
    .error-label1, .error-label2 {
        left: 18% !important;
    }
    .height {
        height: 100px;
    }
}
@media (min-width:820px) {
    .main {
        max-width: 712px;
    }
    .backed-numbers {
        display: flex;
    }
    .backed-numbers-section {
        text-align: start;
        padding: 1rem 3rem;
        padding-bottom: 3rem;
    }
    .backed-box {
        padding: 2.5rem 3rem;
    }
    .backed-box:nth-of-type(1) {
        padding-left: 0rem;
    }
    .backed-total {
        padding-right: 5rem;
    }
    .backed-total::before {
        content: '';
        position: absolute;
        top:0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 45%;
        width: 100%;
        margin-inline: 0;
        margin-block: auto;
        border-left: 1px solid hsl(0, 0%, 78%);
        border-right: 1px solid hsl(0, 0%, 78%);
        border-top: none;
        border-bottom: none;
    }
    .back-this-project {
        top: 180px;
        max-width: 800px;
    }
    .mobile-menu-bg {
        width: 100%;
    }
}
@media (min-width:1275px) {
    .nav {
        width: 1157px;
    }
}
.green-p {
    color: var(--primary-cyan-900) !important;
}

/* 
3. DECIMALE
4. ERROR ZNAK
*/

.bottom-wrapper {
    width: auto;
    position: relative;
}
.custom-radio-button {
    width: 25px;
    height: 25px;
    border:1px solid hsl(0, 0%, 88%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.custom-radio-button .checkmark {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background-color: hsl(176, 50%, 47%);
    display: none;
    border-radius: 50%;
}
.custom-radio-button input {
    display: none;
}
.custom-radio-button input:checked + .checkmark {
    display: inline-block;
}