/* Importing Font */
@import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=devanagari,latin-ext');

/* General Styles */
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: #404040;
    font-family: 'Metrophobic', sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 1.5;
}

.custom-logo-link img {
    height: auto;
    max-width: 100%;
}

/* Add/Update this in your styles.css */

.content {
    width: 80%; /* Adjust this value to control the width of the content area */
    max-width: 1200px; /* This will ensure the content area does not stretch beyond 1200px */
    margin: 0 auto; /* This will center the content area on the page */
    padding: 20px; /* This will add some space around the content */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* This will center text within the content area */
}

/* Updated calcForm for centering */
.calcForm {
    display: inline-block;
    text-align: left;
}

.output {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Adjust this value to control spacing */
}

/* This style will help center the text within the paragraph */
#cbOutput {
    text-align: center;
    margin-bottom: 10px; /* Adjust this value to control spacing between the paragraph and the 'Clear' link */
}

/* Selection Styles */
::selection {
    color: #fff;
    background-color: #000;
}
::-moz-selection {
    color: #fff;
    background-color: #000;
}

/* Checkbox and Radio Button Styles */
[type="checkbox"]:checked,
[type="checkbox"]:not(:checked),
[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    visibility: hidden;
}

.checkbox:checked + label,
.checkbox:not(:checked) + label {
    /* ... existing styles ... */
}

.checkbox-tools:checked + label,
.checkbox-tools:not(:checked) + label {
    position: relative;
    display: inline-block;
    padding: 20px;
    width: 110px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 1px;
    margin: 0 auto;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    text-transform: uppercase;
    color: #fff;
}

.checkbox-tools:not(:checked) + label {
    background-color: #666;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.checkbox-tools:checked + label {
    background-color: transparent;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.4);
}

.checkbox-tools:not(:checked) + label:hover {
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.4);
}

.checkbox-tools:checked + label::before,
.checkbox-tools:not(:checked) + label::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-image: linear-gradient(10deg, #ffab6c, #ff6216);
    z-index: -1;
}

.checkbox-tools:checked + label .uil,
.checkbox-tools:not(:checked) + label .uil {
    font-size: 24px;
    line-height: 24px;
    display: block;
    padding-bottom: 10px;
}

/* Form Elements */
.calcForm {
    text-align: center;
}

input[type="number"],
button {
    font: inherit;
    margin: 0;
}

input[type="number"] {
    line-height: normal;
    padding: 0.5em;
    border: 1px solid #ccc;
}

button {
    display: inline-block;
    border: 1px solid #fff;
    padding: 1em 1.4em;
    border-radius: 3px;
    margin: 5px 0;
    text-decoration: none;
    color: #fff;
    background: #ff6216;
    font-size: 14px;
}

button:hover {
    background: #ff7c40;
}

/* Input Fields */
#userInput {
    background-color: white;
    background-image: url('/thecheese16.png');
    background-position: 25px 25px;
    background-repeat: no-repeat;
    padding: 22px 50px;
}

/* Text Elements */
p {
    margin-bottom: 1.5em;
}

a {
    background-color: transparent;
    text-decoration: none;
    color: #ff6216;
}

a:active,
a:hover {
    outline: 0;
    opacity: 0.7;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Icons */
.uil {
    font-size: 24px;
    vertical-align: middle;
    margin-right: 0.5em;
}

/* Site Info */
.site-info {
    display: inline;
}

.site-title {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0 0 0.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: center;
}

.site-description {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0 0 2rem;
    text-align: center;
    color: #333;
}

.site-info {
    font-size: 11px;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box; /* This ensures padding is included in the width */
}

.site-info a {
    text-decoration: none; /* This removes the underline from the links */
}

.site-info a:hover {
    text-decoration: underline; /* This underlines the links when hovered */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    position: relative;
    max-width: 500px; /* Match the native image width */
    width: 100%; /* Ensures it scales down on smaller screens */
    padding: 20px;
    background-color: #fff; /* Optional: Adds a white background */
    border-radius: 15px; /* Optional: Rounds the corners */
}

.close {
    position: absolute;
    top: -10px;
    right: -27px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    background-color: #333; /* Dark background */
    border-radius: 50%; /* Makes it circular */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Optional: Adds a shadow */
}

.qr-code {
    max-width: 100%; /* Ensures the image scales down */
    height: auto; /* Maintains the aspect ratio */
}

/* Media query to ensure QR code scales properly on smaller screens */
@media (max-width: 520px) {
    .overlay-content {
        padding: 10px; /* Reduces padding on smaller screens */
    }
}