﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    z-index: 1;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../images/background/logo.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 50%;
        opacity: 0.05;
        pointer-events: none;
        z-index: 0;
    }

.header {
    text-align: center;
    color: red;
    margin-bottom: 20px;
}

    .header h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

.brand {
    color: #FFD700;
    text-shadow: 0 0 5px #FFD700, 0 0 10px #FFA500, 0 0 15px #FF8C00;
    font-weight: bold;
    margin-right: 10px;
}

.exchange {
    color: white;
    border-bottom: 3px solid #FFD700;
    font-weight: lighter;
}

.header h2 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-top: 5px;
}

.rates {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    font-size: clamp(1.5rem, 6vw, 4rem);
    width: 100%;
}

.rate-header {
    font-size: clamp(1rem, 3vw, 2rem);
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    color: orange;
    margin-bottom: 10px;
    background-color: #fff1;
    padding: 5px 10px;
    border-radius: 8px;
}

    .rate-header .currency,
    .buy-label, .sell-label {
        flex: 1;
        text-align: center;
    }

.currency {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    font-family: 'DS-Digital', monospace;
    font-size: clamp(12rem, 3vw, 2rem);
    color: #FFD700;
    text-shadow: 0 0 5px #FFD700, 0 0 10px #FFA500, 0 0 15px #FF8C00, 0 0 20px #FF8C00;
}

.currency-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buy, .sell {
    flex: 1;
    font-family: 'DS-Digital', monospace;
    font-size: clamp(12rem, 4vw, 3rem);
}

.buy {
    color: red;
    text-align: center;
    text-shadow: 0 0 5px red, 0 0 5px #ff3333, 0 0 15px #ff6666;
}

.sell {
    color: limegreen;
    text-align: right;
    text-shadow: 0 0 5px limegreen, 0 0 5px #00ff66, 0 0 15px #33ff99;
}

.currencydoviz {
    font-size: 0.6em;
    color: white;
}

.footer {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: yellow;
    text-align: left;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .rate-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rate-header {
        display: none;
    }

    .currency,
    .buy,
    .sell {
        width: 100%;
        text-align: left;
    }

    .buy,
    .sell {
        display: flex;
        justify-content: space-between;
    }

    .flag {
        width: 30px;
    }
}

@media (min-width: 1600px) {
    .rate-row {
        font-size: 2rem;
    }

    .currency,
    .buy,
    .sell {
        font-size: 11.5rem;
    }
}


@font-face {
    font-family: 'DS-Digital';
    src: url('../font/DS-DIGI.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}
