body {
    background: #05050a !important;
    color: #fff;
}

@font-face {
    font-family: TwemojiCountryFlags;
    src: url(../TwemojiCountryFlags.woff2);
}
.input-large{
    width: auto;
}
fieldset select { font-family: TwemojiCountryFlags,'Helvetica Neue',Helvetica,Arial,sans-serif ; }

@media (max-width: 1439px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 479px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.header {
    position: relative;
    z-index: 3;
    padding: 30px 0;
}

.header h1 {
    font-size: 56px;
    color: #2f84f2;
    font-weight: 400;
    background-image: linear-gradient(135deg, #fff, #ffffff80);
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    text-align:center;
}
h1 span{
    display:block;
    margin-top:10px;
}
@media (max-width: 1023px) {
    .header h1 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .header h1 {
        font-size: 28px;
    }
}

.header h1 a {
    text-decoration: none;
}

.header h1 img {
    vertical-align: middle;
    width:80px;
    height:auto;
}

.well {
    background: linear-gradient(135deg, #111827, #000) !important;
    border: 1px solid #374151 !important;
    border-radius: 16px !important;
    padding: 26px !important;
    box-shadow: 0 4px 6px #172554 !important;
}

form select.select,
input[type="text"],
input.input-large {
    background: #05050a !important;
    border: 1px solid #374151 !important;
    border-radius: 8px !important;
    color: #7a7d85 !important;
    font-size: 16px !important;
    transition: all 0.35s;
    position: relative;
    height: 45px;
}
input[type="text"],
input.input-large {
    height: 36px;
}
form select.select:focus,
input[type="text"]:focus,
input.input-large:focus {
    border-color: #0064c8 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 200, 0.1);
}

form select.select:hover,
input[type="text"]:hover,
input.input-large:hover {
    border-color: #0064c8;
}

input::placeholder {
    color: #eff5ff80;
}


.btn,
.btn-primary,
button[type="submit"] {
    background: #0064c8 !important;
    border: 1px solid #0064c8 !important;
    border-radius: 100px !important;
    color: #fff !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.35s;
    text-shadow: none !important;
}

.btn:hover,
.btn-primary:hover,
button[type="submit"]:hover {
    background: #747474 !important;
    border-color: #747474 !important;
    color: #fff !important;
}

.btn:active,
.btn-primary:active,
button[type="submit"]:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}


#ip .well {
    text-align: center;
    font-size: 18px;
    color: #eff5ffcc;
}

#userip {
    color: #00a3ff;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.35s;
}

#userip:hover {
    color: #2f83f4;
}


#results .well {
    background: linear-gradient(45deg, #111827, #000) !important;
}

#legend {
    font-size: 24px;
    font-weight: 600;
    background-image: linear-gradient(135deg, #fff, #ffffff80);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    display: block;
    margin-bottom: 16px;
}

#response {
    background: #05050a !important;
    color: #eff5ffcc !important;
    border: 1px solid #374151 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    font-family: 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6;
}

.download .well {
    background: linear-gradient(135deg, #111827, #000) !important;
    border: 1px solid rgba(212, 228, 254, .19) !important;
    padding: 30px 30px 30px 0!important;
}

.span2 {
    background: linear-gradient(135deg, #1a1f35, #0a0a0f) !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
    padding: 20px 10px !important;
    transition: all 0.35s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.span2:hover {
    background: linear-gradient(135deg, #2f83f4, #000, #000) !important;
    border-color: #0064c8 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 100, 200, 0.3);
}

.span2 strong {
    color: #fcfdffed !important;
    font-size: 1.1em !important;
    margin-bottom: 12px;
    display: block;
    font-family: TwemojiCountryFlags,'Helvetica Neue',Helvetica,Arial,sans-serif ;
    white-space: nowrap;
}

.span2 p {
    font-size: 0.9em;
}

.span2 a {
    color: #00a3ff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.35s;
    display: block;
}

.span2 a:hover {
    color: #2f83f4 !important;
    text-decoration: underline !important;
}


.control-group.error input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #ffffff1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff26;
}

::-webkit-scrollbar-track {
    background: #ffffff0d;
}

@media (max-width: 1023px) {
    .well {
        padding: 18px !important;
    }

    select,
    input[type="text"],
    input.input-large {
        font-size: 14px !important;
    }

    .btn,
    .btn-primary,
    button[type="submit"] {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .header h1 {
        font-size: 24px;
    }

    .download .well {
        padding: 20px 20px  20px  0 !important;
    }

    .span2 {
        margin-bottom: 15px;
    }
}

form.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

@media (max-width: 767px) {
    form.form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    form.form-inline select,
    form.form-inline input,
    form.form-inline button {
        width: 100% !important;
    }
}

.well::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: #06437f;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.3;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}


#response {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1024px) {
    .download .well {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1023px) {
    .download .well {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    .span2 {
        background: linear-gradient(110deg, #1a1f35, #0a0a0f) !important;
        padding: 5px 0px !important;
    }
}

@media (max-width: 479px) {
    .download .well {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .span2 {
        background: linear-gradient(110deg, #1a1f35, #0a0a0f) !important;
        padding: 5px 5px !important;
    }
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

