﻿@media (max-width: 480px) {
    .feature-icon-sm {
        width: 12rem;
        height: 3.5rem;
        min-width: 4rem;
    }
}

.form-signin {
    max-width: 400px;
    padding: 1rem;
}

.field-validation-error {
    display: block;
    width: 100%;
    padding-bottom: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}




/*********** WORKSHEETS ***********/
.ul-worksheets {
    list-style-type: none;
    padding: 20px;
}

.ul-worksheets li {
    padding-bottom: 20px;
    font-size: 15px;
}

/* Make table responsive */
.calculations {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
}

.calculations tbody tr, td {
    border-bottom: none;
    border-top: none;   
}

/* Make each row layout flexible */
.calculations td, #calculations-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive number inputs */
.calculations .number {
    width: 3.5rem;
    max-width: 18vw;
    padding: 0.4rem;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-align: center;
    box-sizing: border-box;
}

/* Operators (+ and =) */
.calculations .operator {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

/* Result image */
.calculations .resultImg {
    width: 1.5rem;
    height: auto;
}

/* Smaller screens adjustment */
@media (max-width: 480px) {

   #worksheet-template {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        flex-wrap: wrap;
    }
    #worksheet-template p {
        padding: 0px 15px;
    }

    .calculations td {
        gap: 0.3rem;
    }

    .calculations td:before {
        content: none !important;
        display: none !important;
    }

    .calculations td:first-child {
        background-color: #fff;
    }

    .calculations .number {
        width: 3rem;
    }

    .calculations .resultImg {
        width: 1.2rem;
    }
}