:root {
    --RP-Highlight-Colour: #6a3dff;
    --RP-Link-Button-Colour: #ffffff;
    --RP-Link-Button-Colour-Dark: #222222;
}

::selection {
    background-color: #6a3dff6f;
}

input {
    caret-color: var(--RP-Highlight-Colour);
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/poppins-v20-latin-regular.woff2') format('woff2'),
         url('/assets/fonts/poppins-v20-latin-regular.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('/assets/fonts/poppins-v20-latin-300.woff2') format('woff2'),
         url('/assets/fonts/poppins-v20-latin-300.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/poppins-v20-latin-500.woff2') format('woff2'),
         url('/assets/fonts/poppins-v20-latin-500.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('/assets/fonts/poppins-v20-latin-600.woff2') format('woff2'),
         url('/assets/fonts/poppins-v20-latin-600.woff') format('woff');
}

.custom-letters {
    display: inline-block;
    white-space: nowrap;
}

.custom-r {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/assets/fonts/SVGs/R.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;   /* Hide the original letter */
}

.custom-p {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/assets/fonts/SVGs/P.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;   /* Hide the original letter */
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(75deg,#262527,#161A1D);
    margin: 0;
    color: var(--RP-Link-Button-Colour);
    font-family: Poppins, san-serif;
    font-weight: 400;
    font-size: 1.0rem;
    line-height: 1.7em;
    text-rendering: optimizeLegibility;
}

* {
    font-weight: 400;
}

a {
    color: var(--RP-Link-Button-Colour);
}

p {
    margin: 0;
}

strong {
    font-weight: 700;
}

/* Navbar */
nav {
    position: absolute;
    top: 0;
    z-index: 999;
    width: 100vw;
    height: 88px;
}

.nav-grid-container {
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
    align-content: center;
}

.nav-flex-container-1 {
    height: 88px;
    grid-column: 2/5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    width: 10%;
    height: 49px;
}

.nav-logo {
    height: 100%;
}

.nav-flex-container-2 {
    display: flex;
    gap: 30px;
    flex-direction: row-reverse;
    align-items: center;
}

.nav-primary-link {
    line-height: 57px;
    color: #ffffff;
    background-color: var(--RP-Highlight-Colour);
    padding-left: 30px;
    padding-right: 30px;
    height: 57px;
    border-radius: 28.5px;
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    overflow: auto;
}

.w-nav-link {
    position: relative;
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    color: var(--RP-Link-Button-Colour);
    text-align: left;
    margin-left: auto;
    margin-right: auto
}

.nav-link {
    line-height: 1.4em;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
}

.footer-column {
    grid-column: 2/5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-spacer {
    margin: 20px 0 40px 0;
    height: 2px;
    width: 100%;
    background-color: rgba(112, 112, 108, 0.15);
}

.footer-flex {
    display: flex;
    width: 100%;
    padding-bottom: 40px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-direction: column;
}

.footer-flex > * {
    font-size: 0.8rem;
}

.latest-project-logo {
    width: 150px;
    height: 150px;
    border-radius: 20px;
}

.socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-media-link {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(180, 180, 180, 0.2);
    border-radius: 50%;
    -webkit-transition: color .2s, background-color .2s, border-color .2s;
    transition: color .2s, background-color .2s, border-color .2s;
    color: #b4b4b4
}

.social-media-link:hover {
    border-color: #ffffff;
    background-color: #6a3dffaa;
    color: #ffffff
}

.social-media-icon {
    display: flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.link-icon {
    display: flex;
    width: 96px;
    height: 96px;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

/* Main container styles */
.main-container {
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
    margin: 120px 0 40px 0;
}

.main-container-framing {
    grid-column: 2/5;
    display: flex;
    justify-content: center;
    width: 100%;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container > * {
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
.title {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2em;
    color: var(--RP-Link-Button-Colour);
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    color: #b4b4b4;
}

/* Button styles */
.button {
    background-color: var(--RP-Highlight-Colour);
    color: var(--RP-Link-Button-Colour);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 28.5px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 57px;
}

.button:disabled {
    background-color: rgba(106, 61, 255, 0.5);
    cursor: not-allowed;
}

.button:hover:not(:disabled) {
    background-color: #5832d8;
}

/* Status messages */
.status, .success, .error, .loading {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.success {
    background-color: rgba(0, 101, 0, 0.313);
    color: #00ff8c;
}

.error {
    background-color: rgb(75, 0, 0);
    color: #ff8d8d;
}

.loading {
    background-color: #ffffff1a;
    color: var(--RP-Link-Button-Colour);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        background-color: #ffffff1a;
    }
    50% {
        background-color: #ffffff3a;
    }
    100% {
        background-color: #ffffff1a;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid var(--RP-Link-Button-Colour);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Info containers */
.info-container, .progress-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.progress-container {
    margin: 1rem 0;
}

/* Price details */
.price-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-box, .time-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.price-label, .time-label {
    font-size: 0.9rem;
    color: #b4b4b4;
    text-transform: uppercase;
}

.price-value, .time-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--RP-Link-Button-Colour);
    margin-top: 0.5rem;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--RP-Highlight-Colour);
    transition: width 0.3s ease;
}

/* Transaction list */
.transactions {
    margin-top: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.transaction {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.transaction:last-child {
    border-bottom: none;
}

.transaction a {
    color: var(--RP-Highlight-Colour);
    text-decoration: none;
}

/* Countdown styles */
.countdown-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.countdown-container.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.countdown-title {
    font-size: 1.2rem;
    color: var(--RP-Link-Button-Colour);
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    width: 80px;
}

.countdown-box span {
    display: block;
    font-size: 2rem;
    font-weight: 500;
    color: var(--RP-Highlight-Colour);
    margin-bottom: 0.25rem;
}

.countdown-box label {
    font-size: 0.8rem;
    color: #b4b4b4;
    text-transform: uppercase;
}

/* FAQ section */
.faq-container h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 1rem;
    color: var(--RP-Link-Button-Colour);
}

.faq-item p {
    color: #b4b4b4;
    font-size: 0.95rem;
}

.faq-item ul {
    color: #b4b4b4;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-item li {
    margin-bottom: 0.5rem;
}

.faqContractLink {
    color: var(--RP-Highlight-Colour);
    text-decoration: none;
}

.faqContractLink:hover {
    text-decoration: underline;
}

/* Auction complete */
.auction-complete-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.5s ease;
}

.auction-complete-message {
    font-size: 1.1rem;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 1857px) {
    .nav-grid-container, footer, .main-container {
        grid-template-columns: 1fr repeat(3,520px) 1fr;
    }
}

/* Responsive design */
@media (max-width: 767px) {
    footer, .main-container {
        grid-template-columns: 24px repeat(3,1fr) 24px;
    }

    .main-container {
        margin: 100px 0 40px 0;
    }
    
    .nav-grid-container {
        grid-template-columns: 24px 1fr 24px;
    }

    .nav-logo {
        width: 88px;
        max-height: 88px;
    }

    .nav-logo-link {
        min-width: 0px;
    }

    .nav-flex-container-1 {
        grid-column: 2/3;
    }

    .container {
        padding: 1.5rem;
    }

    .title {
        font-size: 2rem;
    }

    .price-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .countdown-box {
        width: 70px;
    }
}

@media (max-width: 600px) {
    .nav-flex-container-2 {
        gap: 15px;
    }

    .nav-primary-link {
        padding-left: 15px;
        padding-right: 15px;
    }

    .countdown-timer {
        gap: 8px;
    }

    .countdown-box {
        padding: 0.75rem;
    }
    
}

@media (max-width: 510px) {
    .container {
        padding: 1rem;
    }
    
    .countdown-box {
        width: 18%;
    }

    .countdown-box span {
        font-size: 1.5rem;
    }
}

@media (max-width: 440px) {
    .countdown-container {
        width: calc(100% + 16px);
    }
}

@media (max-width: 380px) {
    .countdown-timer {
        gap: 4px;
    }
}

@media (max-width: 330px) {
    .countdown-timer {
        gap: 1px;
    }

    .countdown-box label {
        font-size: 0.7rem;
    }
}