* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: #1a252f;
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    position: relative;
    top: 2px;
    filter: drop-shadow(0 0 3px rgb(255, 255, 255));
}

.logo a span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: bolder;
    background: linear-gradient(to right, #aa00ff, #0015ff, #1b9400, #ffae00, #ff0000, #ffae00, #1b9400, #0015ff, #aa00ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
    position: relative;
    top: -3px;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

@media (min-width: 350px) and (max-width:390px) {
    .nav-links a {
        margin: 0 0 0 10px;
    }

    .site-header {
        padding: 5px 10px;
    }
}

@media (min-width: 300px) and (max-width:350px) {
    .nav-links a {
        font-size: small;
        margin: 0 0 0 10px;
    }

    .logo {
        gap: 0;
    }

    .logo a span {
        font-size: 1.2rem;
        position: relative;
        top: -5px;
    }

    .site-header {
        padding: 5px 10px;
    }
}



.container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 10px;
}

header {
    background: linear-gradient(to right, #6e35ff, #0066ff);
    color: white;
    padding: 20px 15px;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
}

.content {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.converter-section {
    flex: 1;
    width: 100%;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.converter-section:hover {
    transform: translateY(-3px);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.section-title i {
    margin-right: 8px;
    background: linear-gradient(to right, #2130ff, #791fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #2638ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 35, 135, 0.2);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #4c1fed, #0655ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

button:active {
    transform: scale(0.98);
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px dashed #ddd;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 8px 0;
    color: #2437ff;
    word-break: break-word;
    line-height: 1.3;
}

.info-section {
    width: 100%;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.info-title {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.4rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.roman-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
}

.roman-table th,
.roman-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.roman-table th {
    background: linear-gradient(to right, #6a30fc, #0130ff);
    color: white;
    font-size: 0.95rem;
}

.roman-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.rules {
    margin-top: 20px;
}

.rules h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.rules ul {
    padding-left: 20px;
    font-size: 0.9rem;
}

.rules li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.validation {
    height: 18px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #0d00ff;
    line-height: 1.3;
}

footer {
    text-align: center;
    padding: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .container {
        margin: 20px;
    }

    header {
        padding: 25px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1.1rem;
    }

    .content {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 20px;
    }

    .converter-section {
        flex: 1 1 calc(50% - 20px);
        margin: 10px;
        padding: 20px;
    }

    .info-section {
        flex: 1 1 100%;
    }

    .result-value {
        font-size: 2rem;
    }
}

/* Desktop screens */
@media (min-width: 900px) {
    .container {
        max-width: 900px;
    }

    .content {
        padding: 25px;
    }

    .converter-section {
        flex: 1;
        min-width: 300px;
        padding: 25px;
    }

    .info-section {
        flex: 1;
        min-width: 300px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .result-value {
        font-size: 2.2rem;
    }
}

.seo-section {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 1rem;
  color: #212529;
}

.seo-section h2 {
  font-size: 1.8rem;
  color: #4361ee;
  margin-bottom: 20px;
  border-bottom: 2px solid #4361ee;
  padding-bottom: 10px;
}

.seo-section h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #3f37c9;
}

.seo-section p {
  margin-bottom: 15px;
}

.seo-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ul li {
  margin-bottom: 10px;
}

.seo-section ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ol li {
  margin-bottom: 10px;
}

.seo-section strong {
  color: #4361ee;
}

.seo-section a {
  color: #3f37c9;
  text-decoration: underline;
}

.seo-section a:hover {
  text-decoration: none;
}

footer{
    width: 100%;
}

footer p a {
    color: #aa00ff;
    text-decoration: none;
    font-weight: bold;
}