* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #2d1b69 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    animation: backgroundShift 10s ease-in-out infinite;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(120, 100, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 150, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 100, 100, 0.06) 0%, transparent 50%);
    animation: floatingOrbs 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #2d1b69 100%); }
    50% { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #0a0a0a 100%); }
}

@keyframes floatingOrbs {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    border: 1px solid rgba(118, 185, 0, 0.2);
    position: relative;
    animation: containerFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #76b900, #00d4ff, #ff6b6b, #76b900);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes containerFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-5px) rotateX(1deg); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

footer {
    padding: 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(240, 244, 248, 0.95));
    border-top: 1px solid rgba(233, 236, 239, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(118, 185, 0, 0.3), transparent);
}

footer p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

footer a {
    color: #76b900;
    text-decoration: none;
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

footer a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #76b900, #00d4ff);
    transition: width 0.3s ease;
}

footer a:hover {
    text-decoration: none;
    color: #00d4ff;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(118, 185, 0, 0.2);
}

footer a:hover::before {
    width: 100%;
}

h1 {
    background: linear-gradient(135deg, #76b900 0%, #00d4ff 50%, #76b900 100%);
    background-size: 200% 200%;
    color: white;
    text-align: center;
    padding: 40px 30px;
    font-size: 2.5em;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(118, 185, 0, 0.3);
    animation: titleGlow 4s ease-in-out infinite, backgroundMove 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(118, 185, 0, 0.3); }
    50% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.5); }
}

@keyframes backgroundMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

header {
    position: relative;
    overflow: hidden;
}

header p {
    text-align: center;
    padding: 25px 20px;
    font-size: 1.1em;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 0;
    position: relative;
}

header p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(118, 185, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(118, 185, 0, 0.02) 75%);
    background-size: 30px 30px;
    animation: patternMove 10s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.input-section {
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(240, 248, 255, 0.9) 100%);
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
}

.input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(118, 185, 0, 0.03) 50%, transparent 70%);
    pointer-events: none;
}

.input-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #495057;
    font-size: 1.1em;
}

#resolution-select {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.1em;
    border: 2px solid rgba(233, 236, 239, 0.8);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

#resolution-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(118, 185, 0, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

#resolution-select:hover::before {
    left: 100%;
}

#resolution-select:focus {
    outline: none;
    border-color: #76b900;
    box-shadow: 0 0 0 4px rgba(118, 185, 0, 0.3), 0 8px 16px rgba(118, 185, 0, 0.1);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

#resolution-select:hover {
    border-color: rgba(118, 185, 0, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.results-section {
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(15px);
    position: relative;
    animation: sectionSlideIn 0.8s ease-out;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(118, 185, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section h2 {
    margin-bottom: 20px;
    color: #495057;
    font-weight: 500;
}

#selected-resolution {
    color: #76b900;
    font-weight: 500;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    animation: tableReveal 0.6s ease-out;
}

@keyframes tableReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

th {
    background: linear-gradient(135deg, #76b900 0%, #00d4ff 50%, #76b900 100%);
    background-size: 200% 200%;
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: headerShimmer 3s ease-in-out infinite;
}

th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes underlineGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(233, 236, 239, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.7);
}

td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(118, 185, 0, 0.1), rgba(0, 212, 255, 0.1));
    transition: width 0.3s ease;
    z-index: -1;
}

tr:hover td {
    background-color: rgba(118, 185, 0, 0.08);
    transform: translateX(5px);
    box-shadow: 5px 0 15px rgba(118, 185, 0, 0.1);
}

tr:hover td::before {
    width: 100%;
}

tr:hover {
    z-index: 1;
}

tr:last-child td {
    border-bottom: none;
}


@media (max-width: 768px) and (min-width: 481px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 1.8em;
        padding: 20px 15px;
        letter-spacing: 0.5px;
    }
    
    .container > p {
        padding: 15px;
        font-size: 1em;
    }
    
    .input-section {
        padding: 20px 15px;
    }
    
    .results-section {
        padding: 20px 15px;
        overflow-x: auto;
    }
    
    table {
        font-size: 0.85em;
        width: 100%;
        min-width: 400px;
    }
    
    th, td {
        padding: 8px 6px;
        min-width: 80px;
    }
    
    th:first-child, td:first-child {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
        padding: 15px 10px;
        letter-spacing: 0.3px;
    }
    
    .input-section, .results-section {
        padding: 15px 10px;
    }
    
    .results-section {
        overflow-x: visible;
    }
    
    table {
        font-size: 0.75em;
        width: 100%;
        min-width: unset;
        table-layout: fixed;
    }
    
    th, td {
        padding: 8px 4px;
        min-width: unset;
        word-wrap: break-word;
    }
    
    th:nth-child(1), td:nth-child(1) {
        width: 40%;
    }
    
    th:nth-child(2), td:nth-child(2) {
        width: 25%;
        text-align: center;
    }
    
    th:nth-child(3), td:nth-child(3) {
        width: 35%;
        text-align: center;
    }
}