Amirth24's picture
Update static/styles.css
dd25652
Raw History Blame Contribute Delete
1.98 kB
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html {
scroll-behavior: smooth;
}
body{
background-image:url('https://img.freepik.com/free-vector/engraving-hand-drawn-mushroom-pattern_23-2148901998.jpg?w=2000');
background-size:fill;
background-attachment: fixed;
background-blend-mode: overlay;
width: 100vw;
display: flex;
padding: 2em 1em;
flex-direction: column;
align-items: center;
row-gap: 1em;
}
.header{
width: 100%;
background:#FFF36D;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
color: #fff;
position: absolute;
top: 0;
left: 0;
z-index: 1;
text-align: center;
}
h1{
font-size: 32px;
width:100%;
font-weight: 700;
}
.container{
width: 50%;
margin-top: 100px;
padding: 0 46px;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 10px;
padding: 25px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1{
text-align: center;
margin-bottom: 15px;
color: #333;
}
label{
padding: 10px;
}
select{
display: block;
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin: 10px auto;
font-size: 16px;
outline: none;
cursor: pointer;
}
button{
display: block;
width: 50%;
margin: 0 auto;
padding: 10px;
border: none;
background-color: #333;
color: #fff;
font-size: 16px;
cursor: pointer;
margin-top: 20px;
border-radius: 5px;
}
.container #result {
margin-top: 10px;
margin-bottom: 10px;
}
.fields {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
}
.edible {
color: green;
}
#result #prediction {
color: red;
}
@media only screen and (max-width: 768px) {
.container {
width: 80%;
}
.fields {
grid-template-columns: 1fr;
}
h2 {
font-size: 24px;
}
}