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

body {
    font-family: 'Piazzolla', serif;
    background-color: #F7F8F9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    width: 100%;
    min-height: 100vh;
}

/* Header */
h1 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    color: #DDF247;
}

/* Text Section */
#text {
    max-width: min(900px, 90%);
    margin: 0 auto 40px;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

#text a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

#text a:hover {
    text-decoration: underline;
}

.green-text {
    color: #4CAF50;
    font-weight: bold;
}

.red-text {
    color: #F44336;
    font-weight: bold;
}

/* Calculator Section */
.calculator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    justify-content: center;
    width: 100%;
}

#t2{    margin-right: 20px;}
.inputs label {
    font-weight: bold;
    color: black;
}

.inputs input[type="text"] {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    width: min(200px, 100%);
}

.button {
    padding: 13px 47px;
    background-color: #DDF247;
    color: black;
    border: 4px;
    border-radius: 5px;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: background-color 0.3s ease;
    font-weight: 900;
}


img {
    width: clamp(40px, 8vw, 60px);
    height: auto;
    aspect-ratio: 2/1;
}

.button:hover {
    background-color: #45a049;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

/* Stats Section */
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(15px, 3vw, 30px);
    margin-top: 30px;
    width: 100%;
}

#L2, #R2 {
    background-color: #A6AEBF;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: clamp(10px, 3vw, 20px);
    text-align: center;
    width: min(500px, 95%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.picpok {
    width: min(170px, 100%);
    height: auto;
    aspect-ratio: 5/4;
}

.monstats, .montotal, .monab, .monhab, .monweak {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin: 5px 0;
}

.montotal {
    font-weight: bold;
    color: #333;
}

.monweak {
    color: #555;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .inputs {
        flex-direction: column;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 200px;
    }
   #t2{    margin-right: 0;}

}

@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        align-items: center;
    }
    #t2{    margin-right: 0;}

}
