/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    background-color: pink;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div {
    width: 400px;
    height: 80vh;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}


.span {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: white;
    border-radius: 20px;

    transform-style: preserve-3d;
    transition: all 3.5s ease;

}

.front {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(175, 111, 175);
    border-radius: 20px;
    backface-visibility: hidden;
}

.back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(35, 148, 41);
    border-radius: 20px;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

.span p {
    width: 90px;
    height: 70%;
    font-size: 23px;
    color: white;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    margin: 15% auto;
    text-align: center;
}

button {
    width: 80px;
    padding: 10px 5px;
    background-color: yellow;
    border-radius: 15px;
}

input {
    width: 80%;
    height: 40px;
    background-color: aquamarine;
    border-radius: 15px;
} */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.div {
    width: 400px;
    height: 85vh;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px;
}

/* Flip Card */
.span {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 20px;
    transform-style: preserve-3d;
    transition: transform 3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    backface-visibility: hidden;
    color: #fff;
    letter-spacing: 1px;
}

.front {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.back {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    transform: rotateY(180deg);
}

/* Text inside card */
.span p {
    text-align: center;
    padding: 10px;
}

/* Result Section */
h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 5px 0;
}

span {
    font-weight: bold;
    color: #ffd700;
}

/* Input */
input {
    width: 85%;
    height: 45px;
    padding: 10px;
    border: none;
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 16px;
    text-align: center;
    transition: 0.3s;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px #00ffcc;
}

/* Button */
button {
    width: 120px;
    padding: 12px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00c6ff;
}
