/* General */

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

.center {
    text-align: center;
}

a {
    color: #000;
    text-decoration: none;
    font-size: 0.8rem;
}

a:hover {
    color: #FFD700;
    text-decoration: none;
}


body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: 600;
    color: #334155;
}

input[type="number"] {
    padding: 15px 50px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    color: #334155;
    transition: border-color 0.2s ease-in-out;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button {
    padding: 15px 50px !important;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    background-color: #A38A00 !important;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    border: none;
    display: block;
    margin: 0 auto;
}


button:hover {
    color: white;
    background-color: #2563eb !important;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.message-box {
    padding: 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 15px;
    word-wrap: break-word;
    text-align: left;
}

.message-box.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

.message-box.info {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #0ea5e9;
}

.magic-square-display {
    margin-top: 25px;
    text-align: center;
}

.magic-square-display h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.magic-square-table {
    border-collapse: collapse;
    margin: 0 auto;
    border: 2px solid #94a3b8;
    border-radius: 10px;
    overflow: hidden;
}

.magic-square-table th,
.magic-square-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #475569;
}

.magic-square-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #1e293b;
}

.magic-square-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.magic-square-table tr:hover {
    background-color: #eff6ff;
}


.references-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.reference-item {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;

    a:hover {
        color: #A38A00;
        text-decoration: none;
        font-weight: 900;
    }

}

.reference-item i {
    margin-right: 8px;
}


/* Footer */

.footer {
    padding: 10px;
    width: 100%;
    background-color: #2563eb;
    font-size: medium;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 999;

    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer_text {
    font-size: medium;
    color: #ffff;
}


#footer .copyright {
    font-size: medium;
    text-align: center;
}


#footer .copyright {
    font-size: medium;
    text-align: center;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .footer {
        padding: 10px 15px;
    }

    .footer-text,
    .footer-copyright,
    .footer-credits {
        font-size: 0.85rem;
    }

    .references-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .reference-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .container {
        padding: 20px;
    }

    input[type="number"],
    button {
        font-size: 0.95rem;
        padding: 10px 30px !important;
    }

    .magic-square-display h2 {
        font-size: 1.5rem;
    }

    .magic-square-table th,
    .magic-square-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/*--------------------------------------------------------------
# by: Gamal Nabih |  1LineArt Studio | https://1lineart.com
--------------------------------------------------------------*/