html {
    overflow-x: hidden;
}

body {
    background-color: #dde5b6;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-family: sans-serif;
    overflow-x: hidden;
    padding-bottom: 60px; /* leave room for the fixed footer */
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #6c584c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
    margin-bottom: 20px;
    padding: 0 20px;
}

header img{
    width: 60px;
    border-radius: 100%;
}

header .fa-right-from-bracket{
    font-size: 30px;
    cursor: pointer;
    color: white;
}

footer{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: #735A47;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    font-size: 24px;
    color: #fff;
    z-index: 99;
}

footer div:nth-child(2){
    display: flex;
    gap: 20px;
}

footer a{
    color: #fff;
    font-size: 30px;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 95%;
    box-sizing: border-box;
    z-index: 99;
    margin: 70px auto 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.logo-container span {
    font-size: 30px;
    font-weight: bold;
}

.logo-container img {
    width: 80px;
    border-radius: 100%;
}

.remember {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    margin-left: 15px;
}

.remember input {
    width: 16px;
    height: 16px;
}

.login-btn{
    width: 50%;
    border-radius: 20px;
}

/* Style for all form groups */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Style for all inputs within form groups */
.form-group input{
    padding: 12px 10px 8px;
    font-size: 16px;
    width: 98%;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}

/* Style for all labels within form groups */
.form-group label {
    position: absolute;
    left: 12px;
    top: 14px;
    color: #666;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 4px;
}

/* Floating label effect for all inputs when focused or filled */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -8px;
    font-size: 12px;
    color: #0066cc;
}

/* Style the input when focused */
.form-group input:focus{
    border-color: #0066cc;  
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* adjust eye position */
.form-group i {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #333;
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #f1f1f1;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.testHeader {
    background-color: #6c584c;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.score{
    color: #808080;
}

.points{ 
    font-weight: bold;
    
}

.question {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px 0;
    text-align: end !important;
    direction: rtl !important;
    text-decoration-line: none;
    color: #333;
}

/* ══════════════════════════════════════════════════════════════
    Responsive breakpoints
    ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 45px;
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }

    header img {
        width: 44px;
    }

    .container {
        padding: 16px;
        margin-top: 90px;
    }

    footer {
        height: auto;
        min-height: 50px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 8px 16px;
        font-size: 16px;
        text-align: center;
    }

    footer a {
        font-size: 22px;
    }

    table {
        font-size: 0.9rem;
    }

    .logo-container span {
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    th, td {
        padding: 6px 8px;
    }
} 