html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.title {
    color: #2c3e50;
    font-weight: bold;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.decorative-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

    .decorative-line::before,
    .decorative-line::after {
        content: '';
        height: 3px;
        width: 100px;
        background: linear-gradient(45deg, #ff6b6b, #ffa500);
        border-radius: 2px;
    }

.decorative-symbol {
    color: #ffa500;
    font-size: 1.5rem;
    margin: 0 15px;
}

.calculator-title {
    color: #34495e;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.form-label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

    .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

.calculate-btn {
    background: linear-gradient(45deg, #ff8a00, #ffe700c9);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

    .calculate-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(40, 167, 69, 0.4);
        background: linear-gradient(45deg, #ff8a00, #ff8a00);
    }

    .calculate-btn:active {
        transform: translateY(0);
    }

.grid-container {
    margin-top: 3rem;
}

.loshu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 2rem auto;
}

.grid-cell {
    aspect-ratio: 1;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
    transition: all 0.3s ease;
}

    .grid-cell.filled {
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
        border-color: #5a6fd8;
    }

.results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .main-container {
        margin: 10px;
        padding: 2rem 1.5rem;
    }
}

