body {
    margin-top: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 100%;
    overflow-y: scroll;
    padding-bottom: 50px;
    background-color: #FAFAFA;
    color: #333;
    animation: fadeIn 1s ease-out;
}

.aviso-acesso {
  font-size: 21px;
}


#sobreBtn {
    position: fixed;
    bottom: 12px;
    right: 20px;
    z-index: 9999;
    width: 100px;
    background-color: #3498DB;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
    font-weight: bold;
    width: 100px;
    transition: background-color 0.3s, transform 0.3s;
}

#sobreBtn:hover {
    background-color: #2980B9;
    transform: scale(1.05);
}

#modalSobre {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#modalSobre .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

#modalSobre .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#modalSobre .close:hover,
#modalSobre .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#recuperarCalculoBtn {
  background-color: #3498DB;
  color: white;
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 9999;
  width: 200px;
  margin-left: auto;
  margin-bottom: auto;
}

#recuperarCalculoBtn:hover {
  background-color: #2980B9;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.imagens {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
}

.imagens img {
  margin: 0 30px;
  max-width: 100px;
  height: auto;
}

#iconimg {
    margin-top: -7px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 1s ease-out;
}

.titulopg {
    background-color: #1ABC9C;
    color: white;
    font-size: 2em;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    font-weight: bold;
    animation: fadeIn 1s ease-out;
}

input[type=text], button, select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    animation: fadeIn 1s ease-out;
}

button {
    background-color: #1ABC9C;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    animation: fadeIn 1s ease-out;
}

button:hover {
    background-color: #16A085;
    transform: scale(1.05);
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-text, .animate-label, .animated, .simples-nacional-btn {
    animation: fadeIn 1s ease-out;
}

.resultado-item {
    border: 2px solid #1ABC9C;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 16px;
    margin-top: 12px;
}

.calculator {
    position: fixed;
    bottom: 20px;
    color: black;
    left: 20px;
    border: 2px solid #ccc;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 230px;
    display: none;
}
.calculator-screen {
    width: 100%;
    height: 60px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: right;
    padding: 10px;
    font-size: 28px;
    overflow: hidden;
    box-sizing: border-box;
}
.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.calculator-button {
    width: 100%;
    height: 60px;
    display: flex;
    color: black;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.calculator-button:hover {
    background-color: #d0d0d0;
}
.calculator-button:active {
    transform: scale(0.98);
}
.calculator-button.operator {
    background-color: #fe9241;
    color: black;
}
.calculator-button.double {
    grid-column: span 2;
}
.calculator-button.double-operator {
    grid-column: span 4;
}

.toggle-calculator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #fe9241;
    color: black;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}
.toggle-calculator:hover {
    background-color: #e07b34;
}

.resultado-bloqueado {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.9;
    font-weight: bold;
}

.aviso-acesso {
    font-size: 14px;
    color: red;
    font-weight: bold;
    margin-top: 12px;
    text-align: center;
}
