@font-face {
    font-family: 'Montserrat';
    src: url('assets/Montserrat[wght].ttf') format("truetype-variations");
    font-weight: 1 999;
}

:root {
    --background: rgb(26, 44, 56);
    --background-muted: rgb(15, 33, 46);
    --background-light: rgb(33, 55, 67);
    --foreground: rgb(255, 255, 255);
    --foreground-muted: rgb(177, 186, 211);
    --accent: rgb(20, 117, 225);
    --accent-muted: rgb(16, 94, 180);
    --line: rgb(47, 69, 83);
}

html {
    scroll-behavior: smooth;
    scroll-margin: 40px;
    filter: hue-rotate(7deg);
}

h1, h2, h3, h4, p {
    margin: 0;
}

body {
    margin: 0;
    color: var(--foreground);
    background: var(--background);
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

hr {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    width: 65%;
}

header {
    z-index: 2;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.3) 0 4px 6px -1px, #0000001f 0 2px 4px -1px;
}

nav {
    width: 65%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    gap: 30px;
}

a {
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease-in;
    color: var(--foreground-muted);
}

a:hover {
    color: var(--foreground);
    transition: color 0.2s ease-in;
}

a:visited {}

button {
    background: var(--accent);
    color: var(--foreground);
    border: 0;
    border-radius: 4px;
    outline: 0;
    padding: 15px 30px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.1s ease;
}

button:hover {
    background: var(--accent-muted);
    transition: background 0.1s ease;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin: 60px 0;
}

section {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

#giveaway {
    width: 100%;
    padding: 80px 0;
    background: right 0/50% 100% no-repeat url("assets/img/drake-banner.png"), var(--background-muted);
    display: flex;
    justify-content: center;
    align-items: center;
}

.giveaway-container {
    width: 65%;
    display: flex;
}

.giveaway-header {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.giveaway-header > h1 {
    font-size: 38px;
}

.giveaway-header > h2 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: var(--foreground-muted);
}

.giveaway-header > button {
    margin-top: 20px;
    width: 50%;
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

.about-card-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.about-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.about-card-img {
    width: 50%;
}

.about-card-header {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
}

p {
    color: var(--foreground-muted);
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
}

h3 {
    font-weight: 600;
}

#rules {
    background: var(--background-muted);
    width: 100%;
}

.rules-container {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 80px 0;
}

.rules-card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rules-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 8px;
    background: var(--background);
    padding: 40px 30px;
}

.rules-card > p {
    font-size: 14px;
    line-height: 22px;
}

.rules-calculator {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: end;
}

.rules-calculator-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rules-calculator-item-value {
    height: 80px;
    display: flex;
    align-items: center;
    color: var(--foreground-muted);
    font-size: 24px;
}

.rules-calculator-item-value > p {
    color: var(--foreground);
    font-weight: 600;
    font-size: 36px;
}

.rules-calculator-item-value > input {
    width: 120px;
    background: var(--background-light);
    border: 0;
    border-radius: 4px;
    color: var(--foreground);
    font-weight: 600;
    font-size: 24px;
    padding: 15px 20px;
}

.rules-calculator-item-value > input:focus {
    outline: 2px solid var(--accent-muted);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.ramp {
    width: 65%;
    background: var(--background-muted);
    display: flex;
    border-radius: 8px;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

.ramp-cryptos {
    display: flex;
    gap: 24px;
}

.instruction-card-container {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.instruction-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 40px 20px;
    border-radius: 8px;
    background: var(--background-light);
    color: var(--foreground);
    font-size: 14px;
}

.instruction-card-img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(97%) saturate(1541%) hue-rotate(191deg) brightness(100%) contrast(97%);
}

.instruction-card-description {
    font-weight: 500;
    font-size: 14px;
    color: var(--foreground);
}

.row {
    width: 100%;
    display: flex;
    gap: 20px;
}

.participate-card-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.participate-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
    background: var(--background-light);
    padding: 20px;
    word-break: break-all;
}

.participate-card-qr {
    background: white;
    padding: 8px;
    border-radius: 8px;
}

.participate-card-qr > img {
    border-radius: 0;
}

.participate-card-description {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.participate-card-description > p {
    font-size: 14px;
    font-weight: 500;
}

.participate-card-description > button {
    padding: 10px;
    width: 40%;
    font-size: 12px;
}

#transactions {
    width: 65%;
}

.transaction-table {
    width: 100%;
    display: flex;
    overflow-x: auto;
    flex-direction: column;
}

.transaction-table-header {
    width: 100%;
    display: flex;
}

.transaction-table-header > .transaction-item > p {
    color: var(--foreground-muted);
    font-weight: 600;
    padding: 16px;
}

.transaction-table-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    border-radius: 6px;
}

.transaction-table-content > .transaction-item > p {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 16px;
}

.transaction-table-content > .transaction-item:nth-child(2n) {
    background: var(--background-light);
}

.transaction-txhash {
    min-width: 140px;
    max-width: 140px;
}

.transaction-from {
    min-width: 140px;
    max-width: 140px;
}

.transaction-to {
    min-width: 140px;
    max-width: 140px;
}

.transaction-payout {
    min-width: 140px;
    max-width: 140px;
}

.transaction-table-content > .transaction-item > p.transaction-payout::first-line {
    color: rgb(0, 231, 1) !important;
}

.transaction-fee {
    min-width: 140px;
    max-width: 140px;
    text-align: right;
}

footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    background: var(--background-muted);
}

footer > nav {
    align-items: start;
    justify-content: space-between;
}

.footer-items {
    display: grid;
    grid-gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(14ch, 1fr));
    width: 65%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-container > h4 {
    margin-bottom: 4px;
}

.footer-container > a {
    font-size: 12px;
}

.footer-logo-container {
    width: 65%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 70px;
}

.footer-info {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.footer-company {
    font-size: 10px;
}

@media only screen and (max-width: 768px) {
    nav {
        width: 90%;
    }

    .nav-container {
        display: none;
    }

    section {
        width: 90%;
    }

    main {
        gap: 60px;
    }

    #giveaway {
        background: var(--background-muted);
    }

    .giveaway-container {
        width: 90%;
    }

    .giveaway-header {
        max-width: 100%;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 20px;
        font-weight: 600;
    }

    .about-card {
        flex-direction: column;
    }

    .about-card-img,
    .about-card-header {
        width: 100%;
    }

    .row {
        width: 100%;
        flex-direction: column;
        justify-content: center;
    }

    .rules-container {
        width: 90%;
    }

    .rules-card-container {
        width: 100%;
        flex-direction: column;
    }

    .rules-card {
        padding: 40px 30px;
        width: 85%;
    }

    .rules-calculator {
        flex-direction: column;
        align-items: start;
    }

    .delimiter {
        display: none;
    }

    .instruction-card-container {
        justify-content: center;
        flex-direction: column;
    }

    .participate-card-container {
        justify-content: center;
        flex-direction: column;
    }

    .participate-card {
        width: unset;
        flex-direction: column;
        text-align: center;
    }

    .participate-card-description,
    .participate-card-description > button {
        width: 100%;
    }

    .participate-card-description > p {
        font-size: 12px;
        font-weight: 500;
    }

    .ramp {
        width: 80%;
        gap: 32px;
        flex-direction: column;
    }

    .ramp-cryptos {
        transform: scale(0.8);
    }

    #transactions {
        width: 90%;
    }

    hr {
        width: 90%;
    }

    .footer-items {
        width: 90%;
        grid-gap: 20px;
    }

    .footer-logo-container {
        width: 80%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
    }

    .footer-info {
        width: 90%;
    }
}