code
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #e0e5ec;
}
.container {
display: flex;
justify-content: space-around;
width: 800px;
}
.glassmorphism,
.neumorphism {
position: relative;
width: 300px;
height: 350px;
padding: 20px;
border-radius: 10px;
}
.glassmorphism {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
}
.neumorphism {
background: #e0e5ec;
box-shadow: -4px -4px 8px rgba(255, 255, 255, 0.5), 4px 4px 8px rgba(168, 178, 191, 0.5);
}
.inner {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
position: absolute;
width: 100%;
height: 50px;
top: 110px;
}
button {
padding: 10px 30px;
border-radius: 20px;
border: none;
font-size: 20px;
outline: none;
cursor: pointer;
transition: all 0.2s;
}
.glassmorphism button {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(6px);
color: #ffffff;
}
.neumorphism button {
background: #e0e5ec;
box-shadow: -4px -4px 8px rgba(255, 255, 255, 0.4), 4px 4px 8px rgba(168, 178, 191, 0.4);
color: #1a1a1a;
}
.glassmorphism button:hover {
background: rgba(255, 255, 255, 0.5);
}
.neumorphism button:hover {
box-shadow: inset -2px -2px 5px rgba(255, 255, 255, 0.5), inset 2px 2px 5px rgba(168, 178, 191, 0.5);
}
</style>