@font-face {
    font-family: "Calculator";
    src: url('fonts/Technology.ttf');
}

#application {
    scale: 1
}
/* For Whole Background*/
body {
    background: rgb(34,148,195);
    background: linear-gradient(0deg, rgba(34,148,195,1) 0%, rgba(253,184,45,1) 100%);
    background-attachment: fixed;
}

/* For Scaling per device */
.app {
    margin-top: 50px;
    margin-left: -35px;
    padding: 20px;
    width: 100%;
    transform: scale(0.95);
}

.isMobile {
    width: 100vh;
    height: 100%;
}

/* For centering logo */
#logo {
    display: block; 
    margin: auto; 
}
/* For Calculator Table */
#calculator {
    border-color: black;
    margin: 0 auto;
}

#screen {
    padding: 10px;
    font-family:'Calculator';
    color: lime;
    font-weight: 500;
    font-size: 36px;
    width: 300px;
    height: 50px;
    border-radius: 3px;
    background-color: rgb(29, 44, 44);
}

#calculator-button {
    font-family: Arial;
    font-weight: 900;
    width: 70px;
    height: 40px;
    border-radius: 10px;
    border-width: 1px;
    font-size: 22px;
    background-color: beige;
    transition: ease-in-out 0.15s;
}

#calculator-button:hover:enabled {
    background-color: white;
    cursor: pointer;
    scale: 1.1;
}

/* For Buttons and Button Animations */
#choices {
    visibility:hidden;
    transition: ease-in-out 0.15s;
}
.buttonAnim {
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.out{
    font-family: 'Calculator';
    font-weight: 600;
    border-style:dashed;
    width: 100%;
    height: 100px;
    border-radius: 10px;
    border-width: 1px;
    font-size: 36px;
    background-color: beige;
    transition: ease-in-out 0.25s;
}

.out:hover:enabled {
    background-color: white;
    cursor: pointer;
    scale: 1.02;
}

#reset-button{
    font-family: 'Calculator';
    font-weight: 600;
    border-style:dashed;
    width: 100%;
    height: 100px;
    border-radius: 10px;
    border-width: 1px;
    font-size: 36px;
    background-color: beige;
    transition: ease-in-out 0.25s;
}

#reset-button:hover:enabled {
    background-color: white;
    cursor: pointer;
    scale: 1.02;
}

.wrongAns {
    background-color: lightgray;
    color: gray;
}

.correctAns {
    background-color: lime;
}

/* For Timer */
#timer-container {
    border: 2px solid rgb(230, 229, 229);
    width: 100%;
    background-color: #ddd;
    height: 5px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    align-content: flex;
    gap:3px;
}

#timer-bar {
    width: 100%;
    height: 100%;
    background-color: rgb(76, 175, 80);
    transition: width 0.1s linear, background-color 0.1s linear;
}

#timer-text {
    margin-top: -18px;
    position: absolute;
    text-align: center;
    font-weight: 900;
    font-size: 12px;
    font-family: Arial;
    color: black;
    z-index: 2;
    text-shadow: 1px 1px rgb(117, 117, 117);
}

/* For Header Bar */
.top-bar {
    background-color: #333;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    gap:10px;
    box-shadow: 0px 2px rgb(40, 40, 40);
    z-index: 21;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

.menu {
    font-family: 'Segoe UI';
    font-weight: 600;
    margin-top: 50px;
    text-shadow: 2px 2px #333;
    position: fixed;
    top: 30px;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #444;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    z-index: 20;
}

.menu a {
    color: white;
    padding: 15px;
    text-decoration: none;
    display: block;
}

.menu a:hover {
    background: #666;
}

#scoreboard{
    position: fixed;
    top: 90px;
    right: -400px;
    background: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: left;
    width: 300px;
    z-index:18;
    transition: right 0.3s ease-in-out;
    border: 3px solid #444;
}
#scoreWrong{
    font-size: 28px;
    font-family: 'Calculator';
    font-weight: 600;
    color: red;
    background-color: #222222;
    border-radius: 4px;
    padding: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

#scoreCorrect{
    font-size: 28px;
    font-family: 'Calculator';
    font-weight: 600;
    color: lime;
    background-color: #222222;
    border-radius: 4px;
    padding: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

#about{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

div#aboutContainer {
    transform: scale(1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 768px) {
    div#aboutContainer {
        transform: scale(0.8);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .loginCard {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    div#aboutContainer {
        transform: scale(0.6);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .loginCard {
        transform: scale(0.6);
    }
}

#about.active {
    visibility: visible;
    opacity: 1;
}
.aboutClose{
    background: white;
    text-align: center;
    font-size: 12px;
    width:30px;
    height:30px;
    border: 1px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    left: -250px;
}

.aboutContent{
    justify-content:left; 
    gap: 10px;
    background: #ddd;
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 5px rgba(0, 0, 0,0.9);
    text-align: left;
    border: 3px solid #ccc;
    width: 500px;
    z-index:100;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.aboutText{
    font-family: arial;
    font-size: 14px;
    text-align: justify;
    font-weight: 600;
}

.aboutImg {
    float:left;
    margin-right: 10px;
}

#history{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

#history.active {
    visibility: visible;
    opacity: 1;
}
.historyClose{
    background: white;
    text-align: center;
    font-size: 12px;
    width:30px;
    height:30px;
    border: 1px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    left: -250px;
}

.historyContent{
    justify-content:left; 
    gap: 10px;
    background: #222222;
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 5px rgba(0, 0, 0,0.9);
    text-align: left;
    border: 3px solid #ccc;
    width: 500px;
    z-index:100;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.historyText{
    font-family: 'Calculator';
    font-size: 36px;
    color:lime;
    text-align: justify;
    letter-spacing: 3px;
}
/*Login Register CSS*/

.loginContainer {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    margin-top: 92px;
    perspective: 1000px;
}

.loginCard {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.loginCard {
    scale: 1.0;
}
.loginContainer.flipped .loginCard {
    transform: rotateY(180deg);
}

.registerbox, .loginbox {
    position: absolute;
    max-width: 400px;
    max-height: 300px;
    width: 400px;
    height: 300px;
    backface-visibility: hidden;
    display: flex;
    background-color: rgb(8, 8, 8);
    border-radius: 10px;
    padding: 20px;
    font-family: 'Segoe UI';
    font-weight: bolder;
    flex-direction: column;
    justify-content: center;
    color: #eef;
  }

.loginbox {
    transform: rotateY(180deg);
}

div.registerbox input, div.loginbox input {
    border-radius: 50px;
    border: none;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    background-color: rgb(8,8,8);
    font-family: Arial;
    font-weight: 600;
    outline-style: solid;
    outline-color: aqua;
    color: #eef;
}

div.registerbox input::placeholder, div.loginbox input::placeholder {
    font-family: sans-serif;
    font-weight: 100;
    color: #dde;
}

div.loginContainer button {
    border:none;
    background-color: rgba(0,0,0,0);
    font-size: 14px;
    font-weight: bold;
    color: #eef;
    cursor: pointer;
    outline-style: solid;
    outline-color: aqua;
    text-align: center;
    border-radius: 50px;
    padding-inline: 30%;
    padding-block: 5px;
    margin-bottom: 20px;
}