﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f4eab8;
    color: #4a3f1c;
}

.container {
    max-width: 1200px;
    margin: auto;
    background: #f4eab8;
    /* border: 1px solid #999;*/
}

/* Header Container */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #efe2a3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Logo */
.logo img {
    max-width: 160px;
    width: 100%;
    height: auto;
}

/* Right Section */
.header-right {
    display: flex;
    align-items: center;
}

/* Button */
.android-btn {
    background-color: #106cc8;
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    font-size: 20px;
}

    .android-btn:hover {
        background-color: red;
    }

/* Responsive - Tablet */
@media (max-width: 992px) {
    .logo img {
        max-width: 130px;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .android-btn {
        width: 80%;
        text-align: center;
    }
}

.center-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.matka {
    background: #ff00aa;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
}

.new {
    color: blue;
    font-weight: bold;
}



/* USER MESSAGE */
.user-msg {
    padding: 10px;
}

    .user-msg label {
        color: red;
        font-weight: bold;
    }

    .user-msg input {
        width: 100%;
        padding: 6px;
    }

/* TIME BAR */
.time-bar {
    font-size: 18px;
    font-weight: bold;
    background: #fdf3c0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /*margin: 10px;*/
}

/* MAIN */
.main {
    display: grid;
    grid-template-columns: 100% 1fr;
    gap: 20px;
    padding: 20px;
}

/* LOGIN */
.login-box {
    border: 1px solid #444;
    padding: 15px;
    background: #fff4c4;
}

.register {
    background: #ffef4d;
    padding: 8px;
    text-align: center;
}

.field {
    margin: 10px 0;
}

    .field input {
        width: 100%;
    }

.options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.login {
    background: #1e73ff;
    color: white;
    border: none;
    padding: 6px 14px;
}

.clear {
    background: yellow;
    border: none;
    padding: 6px 14px;
}

/* RESULT */
.result-box {
    border: 1px solid #444;
    background: #fff;
}
/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
}

.card {
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    color: #000;
    font-size: 40px;
    font-weight: 700;
    transition: 0.3s;
    position: relative;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

    .card .numbers {
        margin-top: 15px;
        display: flex;
        justify-content: center;
        gap: 10px;
    }


.green {
    background: #a6d600;
}

.red {
    background: #e0301e;
    color: #000;
}

.yellow {
    background: #ffee55;
}

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 10px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-weight:bold;
}

.visitor {
    margin-top: 10px;
    font-weight: 700;
    color: #b8860b;
}


.counter {
    border: 1px solid red;
    padding: 2px 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
        padding: 20px 20px 10px 20px;
    }

    .footer-row {
        flex-direction: column;
        gap: 8px;
    }
}
/* BOOTSTRAP-LIKE INPUT STYLE */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

    /* FOCUS EFFECT (Bootstrap-style blue glow) */
    input:focus,
    select:focus,
    textarea:focus {
        color: #212529;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
    }

/* DISABLED */
input:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* SMALL INPUT */
.input-sm {
    height: 30px;
    font-size: 13px;
}

/* LARGE INPUT */
.input-lg {
    height: 46px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #0d6efd;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
    }

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.odometer {
    font-size: 16px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-flex;
    gap: 10px;
    color: #00ff6a;
  /*  background: #000;
    box-shadow: 0 0 15px #00ff6a;*/
}

/* one digit window */
.digit-box {
    height: 70px;
    width: 50px;
    overflow: hidden;
    display: inline-block;
    background: #111;
    border-radius: 4px;
}

/* vertical strip */
.digit-strip {
    position: relative;
    transition: transform 0.5s ease;
}

    /* each number */
    .digit-strip div {
        display: block;
        height: 70px;
        line-height: 70px;
        text-align: center;
        font-size: 40px;
        font-weight: bold;
        color: #00ff00;
        text-align: center;
        font-family: monospace;
    }

.marquee-white {
    background-color: #fff; /* white background */
    color: #000; /* text color */
    padding: 10px;
}

.visitor {
    margin: 8px auto;
    padding: 2px;
    width: fit-content;
    text-align: center;
    font-size: 12px;
    border: 2px solid #000;
}

/* Layout */
.results-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 25px;
    padding: 30px;
}

/* Card Base */
.result-card {
    position: relative;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    transition: 0.4s ease;
    overflow: hidden;
}

    /* Animated Border */
    .result-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 2px;
        background: linear-gradient(45deg,#ff0000,#ffcc00,#00ffcc,#ff00ff);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }

    /* Hover Effect */
    .result-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    }

/* Label */
.label {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

/* Odometer */


/* Theme Colors */
.navratna {
    background: linear-gradient(135deg,#1e9600,#fff200,#ff0000);
}

.rajarani {
    background: linear-gradient(135deg,#8e2de2,#4a00e0);
}

.royal {
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
}

.golden {
    background: linear-gradient(135deg,#f7971e,#ffd200);
}

.result-section {
    margin: 10px 10px;
    max-width: 1200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
}

.result-header {
    font-size: 18px;
    background: #9c27b0;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 20px;
}
/* Responsive */
@media(max-width:768px) {
    .label {
        font-size: 36px;
    }

    .odometer {
        font-size: 28px;
    }

    .time-bar {
        font-size: 14px;
        font-weight: bold;
        background: #fdf3c0;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        /*margin: 10px;*/
    }

    .result-header {
        font-size: 12px;
        background: #9c27b0;
        color: #fff;
        padding: 10px 15px;
        border-radius: 6px;
        display: flex;
        justify-content: space-between;
        font-weight: 600;
        margin-bottom: 20px;
    }
}
