 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary-color: #4a6fa5;
            --secondary-color: #6e9cd2;
            --accent-color: #ff9e40;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --gray-color: #6c757d;
            --success-color: #28a745;
            --border-radius: 8px;
            --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .icon-small {
  width: 70px;         /* Adjust size as needed */
  height: 70px;
  vertical-align: middle;  /* Aligns with text */
  margin-right: -7px;
  margin-left: -7px;       /* Space between icon and text */
}

        /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 1rem 2rem;
            box-shadow: var(--box-shadow);
            position: relative;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            display: flex;
            align-items: center;
        }

        .logo i {
            margin-right: 10px;
            color: var(--accent-color);
        }

        .nav-desktop {
            display: flex;
        }

        .nav-desktop a {
            color: white;
            text-decoration: none;
            margin-left: 1.5rem;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-desktop a:hover {
            color: var(--accent-color);
        }

        .mobile-toggle {
            display: none;
            font-size: 1.5rem;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
        }

        .nav-mobile {
            display: none;
            flex-direction: column;
            background-color: var(--primary-color);
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            padding: 1rem;
            box-shadow: var(--box-shadow);
            z-index: 1000;
        }

        .nav-mobile.active {
            display: flex;
        }

        .nav-mobile a {
            color: white;
            text-decoration: none;
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
        }

        .nav-mobile a i {
            margin-right: 10px;
            width: 20px;
        }

        /* Main Content */
        main {
            flex: 1;
            padding: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .page-title {
            text-align: center;
            margin-bottom: 2rem;
            color: var(--primary-color);
        }

        .dice-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--box-shadow);
            margin-bottom: 2rem;
        }

        .dice-display {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 2rem 0;
            flex-wrap: wrap;
        }

        .dice {
            width: 100px;
            height: 100px;
            position: relative;
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 3rem;
            color: var(--primary-color);
            transition: transform 0.5s ease;
        }

        .dice.rolling {
            animation: roll 0.5s ease-out;
        }

        @keyframes roll {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .btn {
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: var(--border-radius);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--secondary-color);
        }

        .btn-secondary {
            background-color: var(--light-color);
            color: var(--dark-color);
            border: 1px solid #ddd;
        }

        .btn-secondary:hover {
            background-color: #e9ecef;
        }

        .btn-accent {
            background-color: var(--accent-color);
            color: white;
        }

        .btn-accent:hover {
            background-color: #ff8c1a;
        }

        .dice-selector {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .dice-selector label {
            margin-right: 0.5rem;
            font-weight: 500;
        }

        .dice-selector select {
            padding: 0.5rem;
            border-radius: var(--border-radius);
            border: 1px solid #ced4da;
        }

        .history-container {
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--box-shadow);
            margin-bottom: 2rem;
        }

        .history-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--light-color);
        }

        .history-list {
            max-height: 300px;
            overflow-y: auto;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            padding: 0.8rem 0;
            border-bottom: 1px solid #eee;
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-timestamp {
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        .history-result {
            font-weight: 600;
            color: var(--primary-color);
        }

        .seo-section {
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--box-shadow);
            margin-bottom: 2rem;
        }

        .seo-section h2 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .seo-section p {
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        .seo-section ul {
            margin-left: 2rem;
            margin-bottom: 1rem;
        }

        .seo-section li {
            margin-bottom: 0.5rem;
        }

        /* Footer Styles */
        footer {
            background-color: var(--dark-color);
            color: white;
            padding: 3rem 2rem 1.5rem;
            margin-top: 2rem;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-section h3 {
            font-size: 1.2rem;
            margin-bottom: 1.2rem;
            color: var(--accent-color);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
            display: flex;
            align-items: center;
        }

        .footer-links a i {
            margin-right: 8px;
            width: 20px;
        }

        .footer-links a:hover {
            color: var(--accent-color);
        }

        .copyright {
            text-align: center;
            margin-top: 3rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #aaa;
            font-size: 0.9rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-container {
                padding: 0;
            }

            .nav-desktop {
                display: none;
            }

            .mobile-toggle {
                display: block;
            }

            .dice {
                width: 80px;
                height: 80px;
                font-size: 2.5rem;
            }

            .controls {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 300px;
            }
            
            .history-title {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 1rem;
            }
            
            .logo {
                font-size: 1.5rem;
            }

            .dice {
                width: 60px;
                height: 60px;
                font-size: 2rem;
            }

            .dice-display {
                gap: 1rem;
            }
            
            main {
                padding: 1rem;
            }
            
            .dice-container, .history-container, .seo-section {
                padding: 1.5rem;
            }
        }