/* General Styles */
:root {
    --primary-color: #274c77;
    --secondary-color: #6096ba;
    --background-color: #f4f4f9; 
    --text-color: #333;
    --card-background: transparent;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --font-family: 'Arial', sans-serif;
}

body {
    font-family: 'Lora', serif !important;
    background: url('../theme/image/background.svg') no-repeat center center fixed;
    background-size: cover;
    background-color: #f0f3fb;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 70px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.herotext {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 0;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    margin-bottom: 40px;
}

.herotext h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.herotext h1 i {
    margin-right: 10px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}


h2 i {
    margin-right: 10px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Introduction Section */
.introduction {
    margin-bottom: 40px;
    padding: 30px;
    border: 0.5px solid #274c77;
    background-color: transparent;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.strong {
    
    font-weight: bold;
    color: var(--primary-color);
}

.main-card {
    background-color: var(--card-background);
    border: 0.5px solid #274c77;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.main-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    background-color: var(--card-background);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: left;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.05);
}

/* IP Address and Geolocation Cards */
#ip-address, #geo-location {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

#ip-address.hidden, #geo-location.hidden {
    display: none;
}

/* Loading Bar */
#loading-bar, #geo-loading-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
    display: none;
}

#loading-bar.visible, #geo-loading-bar.visible {
    display: block;
}

.loading-progress {
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    animation: loading 3s forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Buttons */
button {
    display: block;
    margin: 0 auto;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    transform: none;
}

button i {
    margin-right: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
    font-size: 1rem;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
    margin-left: 10px;
    text-align: center;
}

th i {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .herotext h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    p {
        font-size: 1.1rem;
    }

    .card {
        padding: 20px;
    }

    #ip-address, #geo-location {
        font-size: 1.25rem;
    }

    button {
        width: 100%;
        padding: 12px;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .herotext h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    #ip-address, #geo-location {
        font-size: 1.1rem;
    }

    .card {
        padding: 15px;
    }

    th, td {
        font-size: 0.85rem;
    }
}