        body {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #006d77;
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        html {
            height: 100%;
        }

        .container {
            display: flex;
            flex: 1; 
            gap: 10px;
            padding: 20px 20px 70px 20px;
            overflow: hidden;
        }

        .flags-gallery {
            width: 85%;
            height: 100%; 
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            overflow-y: auto;
            overflow-x: hidden;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            align-items: start;
        }

        .flags-gallery::-webkit-scrollbar {
            width: 10px;
        }

        .flags-gallery::-webkit-scrollbar-track {
            background: rgba(236, 240, 241, 0.5);
            border-radius: 10px;
            margin: 10px 0;
        }

        .flags-gallery::-webkit-scrollbar-thumb {
            background: #83c5be;
            border-radius: 10px;
        }

        .flags-gallery::-webkit-scrollbar-thumb:hover {
            background: #83c5be;
        }

        .flags-gallery h1 {
            grid-column: 1 / -1;
        }

        .flags-list {
            width: 15%;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            overflow-y: auto;
            overflow-x: hidden;
        }

        .flags-list::-webkit-scrollbar {
            width: 8px;
        }

        .flags-list::-webkit-scrollbar-track {
            background: rgba(236, 240, 241, 0.5);
            border-radius: 10px;
            margin: 10px 0;
        }

        .flags-list::-webkit-scrollbar-thumb {
            background: #83c5be;
            border-radius: 10px;
        }

        .flags-list::-webkit-scrollbar-thumb:hover {
            background: #66b2a0;
        }

        h1 {
            color: #2c3e50;
            text-align: center;
            margin-bottom: 30px;
            font-size: 2.5em;
            font-weight: 300;
        }

        h2 {
            color: #34495e;
            margin-bottom: 15px;
            font-size: 1.8em;
            font-weight: 400;
        }

        .search-input {
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 20px;
            border: 2px solid #83c5be;
            border-radius: 25px;
            font-size: 1em;
            outline: none;
            transition: all 0.3s ease;
            box-sizing: border-box;
            position: relative;
            z-index: 10;
            background: white;
        }

        .search-input:focus {
            border-color: #2980b9;
            box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
        }

        #flagsListContainer {
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 5;
        }

        .flag-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .flag-canvas {
            border: 3px solid #ecf0f1;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .flag-canvas:hover {
            transform: scale(1.02);
        }

        .flag-name {
            margin-top: 15px;
            font-size: 1.3em;
            font-weight: 500;
            color: #2c3e50;
            text-align: center;
        }

        .flag-link {
            display: block;
            padding: 15px 20px;
            background: #83c5be;
            color: white;
            text-decoration: none;
            border-radius: 15px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            font-weight: 500;
            text-align: center;
        }

        .flag-link:hover {
            background: #83c5be;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }

        .fullscreen-view {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .fullscreen-title {
            color: white;
            font-size: 3em;
            margin-bottom: 30px;
            text-align: center;
        }

        .fullscreen-canvas {
            border: 5px solid white;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            max-width: 80vw;
            max-height: 80vh;
            width: auto;
            height: auto;
        }

        .close-btn {
            position: absolute;
            top: 30px;
            right: 30px;
            background: #006d77;
            color: white;
            border: none;
            padding: 15px 20px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 1.2em;
            transition: background 0.3s ease;
        }

        .close-btn:hover {
            background: #83c5be;
        }

        .scale-info {
            color: white;
            margin-top: 20px;
            text-align: center;
            font-size: 1.2em;
        }

        .footer {
            background: transparent;
            height: 30px;
            width: auto;
            border-radius: 15px;
            color: white;
            text-align: center;
            padding: 15px 0;
            font-size: 1em;
            backdrop-filter: blur(10px);
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
            flex-shrink: 0;
        }

        .footer p {
            margin: 0;
            font-weight: 400;
        }