* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    max-width: 1264px;
}
h5 {
    font-size: 18px;
    font-weight: 550;
}

#container {
    background-image: url('img/Background.png');
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 700px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.highlight {
    padding-top: 30px;
    padding-left: 60px;
    padding-bottom: 3px;
    font-size: 45px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #6126A8;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Description */
.description {
    padding-left: 60px;
    font-size: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    max-width: 560px;
    margin-top: 20px;
    line-height: 1.6;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(50, 49, 49, 0.5);
}

/* Illustration (Left Side) */
.illustration {
    position: absolute;
    top: 330px;
    left: 130px;
    width: 500px;
    height: 350px;
    background: url('img/Group25.png') no-repeat center center/contain;
}

/* Cloud Container (Right Side) */
.cloud {
    position: absolute;
    top: 207px;
    left: 369px;
    width: 900px;
    height: 450px;
    background: url('img/Group\ 28.png') no-repeat center center/contain;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.95;
    margin: 0;
    padding: 0;
}

/* Graph Inside Cloud */
.graph {
    width: 550px;
    height: 350px;
    background: url('img/Group26.png') no-repeat center center/contain;
}

/* Arrow at Bottom */
.arrow {
    position:relative;
    top: -370.5px;
    left: 50%;
    width: 30px;
    height: 30px;
    background: url('img/Layer\ 2.png') no-repeat center center/contain;
    transform: translateX(-50%);
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
}

.mainn-heading {
    display: flex;
    justify-content: space-between;
}

.heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-weight: bold;
    align-items: center;
}

.heading p {
    font-weight: 100;
    font-size: 15px;
}

.ack{
    width:50px;
    height:50px;
    border-radius: 25px;
    margin-top: 5px;
    margin-right: 20px;
    color: #020202;
    cursor: pointer;
}

.right-pointer {
   display: inline-block; /* Ensures the image moves smoothly */
    animation: moveLeftRight 1s ease-in-out infinite; /* Infinite looping */
    margin-right: 10px;
}

.popup1 {
    display: none;
    position: absolute;
    top: 23%;
    left: 67%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 325px;
    text-align: start;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.close-btn2 {
    background: purple;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    display: block;
    margin: 10px auto 0;
}

.popup strong {
    font-weight: 100;
}

.popup1 h2 {
    font-size: 30px;
}

.popup1 li {
    font-size: 15px;
    font-weight: 100;
}

/* Popup background */
.popup {
    display: none; /* Initially hidden */
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    background: rgba(0, 0, 0, 0.5); /* Dark transparent background */
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
}

/* Popup content (PDF viewer) */
.popup-content1 {
    background: white;
    width: 1000px;
    padding: 0;
    border-radius: 8px;
    position: relative;
}

.close-btnn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
    color: rgb(102, 99, 99);
    transition: 0.1s;
}

.close-btnn:hover{
    font-size: 45px;
}

/* Close button */
.close-btnn1 {
    position: absolute;
    top: -9px;
    right: 2px;
    font-size: 40px;
    cursor: pointer;
    color: red;
}

.main-heading {
    font-size: 45px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #6126A8;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Income Pyramid Section */
#income-pyramid {
    position: relative;
    padding: 10px 50px;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 0;
}

.content1 {
    display: flex;
    justify-content: space-between;
}

#income-pyramid .sec2-p {
    font-weight: bold;
    font-size: 25px;
}

.sec2-highlight {
    font-size: 40px;
    font-weight: bold;
    color: #6126A8;
    margin-bottom: 2vh;
}

.sec2-span {
    color: #020202;
}

.stats-country {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Country Statistics */
.stats-container {
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    padding: 10px 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 200%;
    max-width: 600px;
    margin-top: 20px;
    transition: 0.5s ease;
}

#country {
    margin-top: 5px;
    justify-content: center;
    width: 200px;
    height: 30px;
    border-radius: 6px;
    border: 1.5px solid rgb(179, 178, 178);
    padding-left: 10px;
    color: rgb(83, 81, 81);
}

#inr {
    font-weight: bold;
    margin-top: 12px;
    width: 100px;
}

#net {
    font-weight: bold;
    margin-top: 12px;
    width: 200px;
}

#Income {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.col {
    display: flex;
    flex-direction: column;
    margin-bottom: 1vh;
}

#Income label {
    color: rgb(83, 81, 81);
}

.pop-container {
    display: flex;
    justify-content: space-between;
}

.pop-container label {
    color:  rgb(83, 81, 81);
    font-weight: lighter;
}

.col1 {
    font-weight: bold;
    margin-top: 10px;
    width: 200px;
}

.col2 {
    font-weight: bold;
    margin-top: 10px;
    width: 100px;
}

.col3 {
    font-weight: bold;
    margin-top: 10px;
    width: 200px;
    margin-left: 0px;
}

#pop, #pop1, #pop2 {
    margin-top: 10px;
}

.income-pyramid {
    top: 200px;
    left: 800px;
}

.pyramid-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Initially hide the info icon */
.info {
    position: fixed; /* Follows the mouse */
    display: none;
    width: 40px;
    pointer-events: none; /* Prevents interference */
}

/* Show the info icon when hovering over a layer */
.layer:hover ~ .info {
    display: block;
}


/* Positioning each layer properly */
.layer {
    position: absolute;
    cursor: pointer;
}

/* Positioning each layer as per your provided values */
.layer1 { top: 82px; left: 260px; height: 75px; width: 85px; }
.layer2 { top: 167px; left: 229px; height: 55px; width: 140px; }
.layer3 { top: 230px; left: 195px; height: 55px; width: 210px; }
.layer4 { top: 296px; left: 160px; height: 55px; width: 280px; }
.layer5 { top: 365px; left: 115px; height: 55px; width: 370px; }
.layer6 { top: 430px; left: 75px; height: 55px; width: 450px; }
.layer7 { top: 497px; left: 50px; height: 55px; width: 500px; }
.layer8 { top: 568px; left: 9px; height: 55px; width: 580px; }

/* Update position dynamically */
.layer:hover ~ .info {
    left: var(--mouse-x); /* Custom variable to track cursor */
    top: calc(var(--mouse-y) + 20px); /* Move 20px below cursor */
}

.popup {
    display: none;
    position: absolute;
    top: 51%;
    left: 70%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 330px;
    text-align: start;
}

.popup-content {
    position: relative;
}

.popup-content h3 {
    text-align: center;
    margin-bottom: 5px;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 30px;
    cursor: pointer;
    color: red;
}

.pyramid-image img {
    width: 100%;
    height: 550px;
    margin-top: 40px;
    margin-bottom: 0;
}

.pyramid-image .p1 {
    display: inline-block;
    width: 676px;
    margin-top: 20px;
    margin-left: -40px;
    font-size: 20.50px;
    font-weight: bold;
    color: #6126A8;
}

.pyramid-image .p2 {
    margin-top: 15px;
    margin-left: 450px;
    font-size: 20px;
    font-weight: bold;
}

.pyramid-image h1 {
    font-size: 1px;
    position: absolute;
    font-weight: bold;
    left: 800px;
}

.level {
    display: flex;
    flex-direction: column;
}

.heading {
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 25px;
}

.container1 {
    width: 400px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.level p{
    font-weight: bold;
}

table {
    border-collapse: collapse;
    width: 100%;
}
td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
td:first-child {
    text-align: left;
    font-weight: bold;
}

.details {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes moveLeftRight {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); } /* Moves 10px to the right */
    100% { transform: translateX(0); } /* Returns to original position */
}

.click-here-animation {
    display: inline-block; /* Ensures the image moves smoothly */
    animation: moveLeftRight 1s ease-in-out infinite; /* Infinite looping */
    margin-right: 10px;
}


/* Button */
.stats-button {
    display: block;
    background: #4285F4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin: 0;
}

.stats-button:hover {
    background: #3367D6;
}


.container {
    background-color: white;
    width: 600px;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    animation: fadInShow 0.3s;
}

@keyframes fadInShow {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

hr {
    color: red;
}

button {
    width: 100%;
    height: 45px;
    cursor: pointer;
    font-size: 16px;
    background: #0099ff;
    border-radius: 30px;
    border: none;
    color: white;
    margin-bottom: 20px;
}

.otp-form {
    display: block;
    margin: 20px 0;
}

.otp-form p {
    margin: 20px;
    color: green;
}

.otp-group {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 20px;
}

.otp-group input {
    height: 50px;
    width: 50px;
    padding: 5px;
    font-size: 25px;
    text-align: center;
    outline: none;
    border: none;
    border-bottom: 2px solid #a3a3a3;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

button.disable {
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.error-shake{
    animation: shake 0.2s ease-in-out 0s 2;
}

@keyframes shake {
    0%{
        margin-left: 0rem;
    }
    25%{
        margin-left: 0.5rem;
    }
    75%{
        margin-left: -0.5rem;
    }
    100%{
        margin-left: 0rem;
    }
}

.close-btnnn {
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 40px;
    cursor: pointer;
    color: rgb(102, 99, 99);
}

#form-container1 {
    display: none;
    left: 40%;
    margin-top: -350px;
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 500px;
}
.form-group {
    display: flex;
    align-items: center;
    margin: 8px 0;
}
.form-group label {
    width: 50%;
    text-align: left;
    padding-right: 10px;
}
.form-group input, .form-group select {
    width: 50%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#form-container1 button {
    width: 100%;
    background: #3b82f6;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
#form-container1 button:hover {
    background: #2563eb;
}

.hidden {
    display: none;
}
.final_infoo1 {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
}

.okButton {
    margin-left: 200px;
}

#final-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #F4F8FF;
    border-radius: 5px;
    width: 1190px;
    margin-top: 40px;
    margin-left: 35px;
    margin-right: 25px;
    margin-bottom: 50px;
    border: 2px solid rgb(146, 145, 145);
}

.final-info1 {
    display: flex;
    flex-direction: column;
    width: 450px;
}

.final-info1 p {
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 25px;
    font-weight: 500;
}

.percentile {
    display: flex;
    justify-content: space-between;
    width: 350px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

.footer {
    width: 100%;
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    color: white;
    padding: 20px 50px;
    background-color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer a {
    text-decoration: none;
    color: white;
}

.footer a:hover {
    text-decoration: underline;
}