* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body takes up the full viewport height */
    background-image: url(./calcibg.avif);
    transition: background-color 0.3s ease, color 0.3s ease;
}


main {
    margin-top: 80px; /* Space for navigation bar */
   
   
}

.content {
    text-align: center;
    font-size: 18px;
    color: #333;
}
.nav {
    width: 100%;
    height: 70px;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

/* Logo styling */
.logo img {
    width: 40px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
}

.menu {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menus {
    padding: 0 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.menus a {
    color: white;
    text-decoration: none;
}

.menu-text {
    margin-left: 10px;
    color: white;
    font-weight: bolder;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menus:hover {
    transform: scale(1.1);
}

.content h1,p{
    color: black;
    font-weight: bolder;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.container {
    width: 30%;
    height: auto;
    padding: 20px;
    margin: 150px auto;
    border-radius: 10px;
    background: #ecf0f3;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -5px -5px 15px #ffffff;
}

.display #screen {
    width: 95%;
    height: 60px;
    font-size: 25px;
    outline: none;
    border: none;
    text-align: right;
    padding-right: 0.5em;
    background: #ecf0f3;
    border-radius: 6px;
    box-shadow: inset 8px 8px 8px #cbced1, inset -8px -8px 8px #ffffff;
}

.btns {
    width: 100%;
    margin-top: 1.7em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btns .rows button {
    width: 60px;
    height: 50px;
    font-size: 16px;
    border: none;
    outline: none;
    font-weight: bold;
    border-radius: 4px;
    background: #ecf0f3;
    box-shadow: 5px 5px 8px #cbced1, -5px -5px 8px #ffffff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.btns .rows button:active {
    background: #d1d9e6;
}

#toggle-mode {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background: linear-gradient(45deg, #130ccd, #130ccd);
    color: white;
    cursor: pointer;
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2), -5px -5px 8px #ffffff;
    transition: background 0.3s ease;
}

#toggle-mode:hover {
    background: linear-gradient(45deg, #0f09ac, #0f09ac);
}

.dark-mode {
    background-color: #181818;
    color: #f0f0f0;
}

.dark-mode .container {
    background: #1f1f1f;
}

.dark-mode .btns .rows button {
    background: #282828;
    color: #f0f0f0;
    box-shadow: 5px 5px 8px #121212, -5px -5px 8px #383838;
}

.dark-mode #toggle-mode {
    background: linear-gradient(45deg, #e613c7, #e613c7);
    color: #000;
}










/* Footer styling */
.foot {
    width: 100%;
    background-color: black;
    position: relative;
  
    color: white;
}

.footrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.js-section img{
    width: 50px;
    height: 50px;
}
.js-description{
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.top-section {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-bottom: 30px;
}

.bottom-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    width: 80%;
    margin-bottom: 20px;
}

.boxz ul {
    list-style: none;
    padding: 0;
}

.boxz ul a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

.boxz ul a:hover {
    text-decoration: underline;
}
.boxz p{
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.foot-panel2 {
    border-top: 1px solid white;
    text-align: center;
    padding: 10px 0;
}

.copyright p {
    margin: 0;
    font-size: 12px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
