* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif
}

body {
    display: grid;
    background: rgba(10, 10, 10, 0.1);
}

.calc {
    padding-top: 20px;
    place-items: center;
    display: grid;
}

.main {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 300px;
    padding: 15px 10px;
    box-shadow: 5px 5px 10px 5px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px
}

footer {
    padding-top: 50px;
    align-content: center;
    text-align: center;
}

.display {
    position: relative;
    width: 80%;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2), inset -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1)
}

.display #result {
    font-size: 1.5em;
    padding: 10px;
    overflow: hidden;
    /* Apply animation without repetition */
}

.buttons {
    margin-top: 20px;
    width: 100%
}

.buttons button {
    height: 50px;
    width: 50px;
    padding: 10px;
    border-radius: 10px;
    background: none;
    border: none;
    outline: none;
    margin: 0 10px;
    cursor: pointer;
    font-size: 1.3em;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2), inset -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1)
}

.buttons button:hover {
    background: rgba(0, 0, 0, 0.2)
}

#equalTo {
    width: 125px;
    background: #58D68D
}

#clear {
    background: #FF8A65
}

.dark_mode_btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5em;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    margin: 10px;
}

.dark_mode_active {
    background: #1c1c25
}

.dark_mode_active button {
    color: #ddd
}

.dark_mode_active #clear,
#equalTo {
    color: #000
}

.dark_mode_active #result {
    color: #ddd
}

.dark_mode_active #history {
    color: #ddd
}

#history {
    position: absolute;
    padding: 50px 10px 2px 0px;
    right: 0;
}


/* Index */

.navbar-brand {
    font-weight: bold;
}

.nav-link.active {
    font-weight: 500;
}

.gradient-background {
    background: linear-gradient(300deg, #ed665a, #FF9E65, #F9F871);
    background-size: 180% 180%;
    animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.icon-square {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

.profile-img {
    border-radius: 50%;
    height: 100px;
}

.credits a {
    text-decoration: none;
    /* Remove underline */
    color: white;
    /* Inherit text color */
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(50px);
        /* Optional: Slide from bottom */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-image {
    opacity: 0;
    transform: translateY(20px);
    /* Move the images down by 20px initially */
    transition: opacity 1s ease, transform 1s ease;
    /* Add transition for smooth animation */
}

.animated-image.fade-in {
    opacity: 1;
    transform: translateY(0);
    /* Move the images back to their original position */
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99;
    opacity: 0;
    /* Initially hidden */
    visibility: hidden;
    /* Initially hidden */
    transition: opacity 0.3s ease-in-out;
    /* Fade-in transition */
}


/*** Spinner ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/* scroller*/

#title {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Set height to 100% of the viewport height */
}

.floating {
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    margin-left: 30px;
    margin-top: 5px;
}

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }
    50% {
        transform: translate(0, 15px);
    }
    100% {
        transform: translate(0, -0px);
    }
}

.riewv {
    margin: 0 50px;
}

.carousel-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}