|
:root { |
|
--primary-color: #fdc500; |
|
--primary-hovered: #ffd500; |
|
--secondary-color: #5603ad; |
|
--secondary-hovered: #3d0066; |
|
--accent-color: #8367c7; |
|
--success-color: #6acc1a; |
|
--info--color: #72cdf4; |
|
--danger-color: #e71d36; |
|
--background-color: #ffffff; |
|
--text-color: #14213d; |
|
--muted-color: #8d99ae; |
|
} |
|
|
|
.hidden { |
|
display: none; |
|
} |
|
|
|
#loader { |
|
border: 16px solid #f3f3f3; |
|
border-top: 16px solid #3498db; |
|
border-radius: 50%; |
|
width: 120px; |
|
height: 120px; |
|
animation: spin 2s linear infinite; |
|
margin: 20px auto; |
|
} |
|
|
|
@keyframes spin { |
|
0% { |
|
transform: rotate(0deg); |
|
} |
|
100% { |
|
transform: rotate(360deg); |
|
} |
|
} |
|
|
|
|
|
|
|
* { |
|
margin: 0; |
|
padding: 0; |
|
box-sizing: border-box; |
|
} |
|
|
|
body { |
|
|
|
|
|
font-family: "Grandstander", cursive; |
|
background-color: var(--background-color); |
|
color: var(--text-color); |
|
height: 100vh; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.container { |
|
display: flex; |
|
width: 100%; |
|
height: 100%; |
|
padding: 20px; |
|
} |
|
|
|
.form-container, |
|
.result-container { |
|
flex: 1; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
padding: 20px; |
|
} |
|
|
|
.form-container { |
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="100%" viewBox="0 0 10 10"><path fill="none" stroke="gainsboro" stroke-width="1" d="M0 0l5 5 -5 5"/></svg>'); |
|
background-repeat: repeat-y; |
|
background-position: right center; |
|
|
|
justify-content: center; |
|
} |
|
|
|
h1 { |
|
margin-bottom: 20px; |
|
font-size: 2em; |
|
color: var(--secondary-color); |
|
} |
|
|
|
label { |
|
margin-bottom: 10px; |
|
font-size: 1.2em; |
|
color: var(--muted-color); |
|
} |
|
|
|
input { |
|
padding: 10px; |
|
margin-bottom: 20px; |
|
width: 300px; |
|
border: 2px solid var(--muted-color); |
|
border-radius: 5px; |
|
font-size: 1em; |
|
font-family: "Grandstander", cursive; |
|
} |
|
|
|
select { |
|
-webkit-appearance: none; |
|
-moz-appearance: none; |
|
appearance: none; |
|
background-color: #fff; |
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path d="M0 0 L5 5 L10 0 Z" fill="#666"/></svg>'); |
|
background-repeat: no-repeat; |
|
background-position: right 10px center; |
|
background-size: 10px; |
|
cursor: pointer; |
|
padding: 10px; |
|
margin-bottom: 20px; |
|
width: 300px; |
|
border: 2px solid #555; |
|
border-radius: 5px; |
|
font-size: 1em; |
|
color: var(--secondary-color); |
|
font-family: "Grandstander", cursive; |
|
} |
|
.primary-btn { |
|
background-color: var(--primary-color); |
|
color: var(--background-color); |
|
} |
|
|
|
.secondary-btn { |
|
border: 2px solid var(--secondary-color); |
|
color: var(--secondary-color); |
|
} |
|
|
|
button { |
|
padding: 10px 20px; |
|
color: white; |
|
border: none; |
|
border-radius: 5px; |
|
cursor: pointer; |
|
font-size: 1em; |
|
transition: background-color 0.3s ease; |
|
margin-top: 10px; |
|
font-family: "Grandstander", cursive; |
|
margin-bottom: 10px; |
|
} |
|
|
|
.primary-btn:hover { |
|
background-color: transparent; |
|
border: 2px solid var(--primary-hovered); |
|
color: var(--primary-color); |
|
} |
|
|
|
.secondary-btn:hover { |
|
background-color: var(--accent-color); |
|
} |
|
|
|
#img { |
|
margin-top: 20px; |
|
max-width: 200px; |
|
height: auto; |
|
border: 2px solid var(--muted-color); |
|
border-radius: 5px; |
|
} |
|
|
|
#history-container { |
|
margin-top: 20px; |
|
display: flex; |
|
flex-wrap: wrap; |
|
justify-content: center; |
|
} |
|
|
|
.history-header { |
|
display: flex; |
|
justify-content: space-between; |
|
align-items: center; |
|
} |
|
|
|
.history-header h1 { |
|
flex: 1; |
|
} |
|
|
|
.history-item { |
|
margin: 10px; |
|
position: relative; |
|
} |
|
|
|
.history-item img { |
|
max-width: 150px; |
|
height: auto; |
|
object-fit: cover; |
|
opacity: 0.8; |
|
border-radius: 10%; |
|
} |
|
.history-item img:hover { |
|
opacity: 1; |
|
} |
|
.removeButton { |
|
position: absolute; |
|
top: 0; |
|
right: 0; |
|
border-radius: 50%; |
|
padding: 2px 4px; |
|
color: var(--background-color); |
|
background-color: var(--danger-color); |
|
text-align: center; |
|
cursor: pointer; |
|
} |
|
|
|
.downloadButton { |
|
position: absolute; |
|
bottom: 0; |
|
left: 0; |
|
border-radius: 50%; |
|
cursor: pointer; |
|
padding: 6px 8px; |
|
background-color: var(--primary-color); |
|
color: var(--background-color); |
|
text-align: center; |
|
} |
|
|
|
.input-with-icon input { |
|
width: 280px; |
|
} |
|
|
|
.fa-eye-slash:before { |
|
content: "\f070"; |
|
} |
|
|
|
|
|
.hint-icon { |
|
display: inline; |
|
margin-left: 5px; |
|
cursor: pointer; |
|
} |
|
|
|
.hint-content { |
|
display: none; |
|
background-color: #e2eafc; |
|
padding: 10px; |
|
margin-top: 5px; |
|
margin-bottom: 5px; |
|
border-radius: 10px; |
|
} |
|
|
|
.hint-content p { |
|
font-size: 14px; |
|
font-family: "Courier New", Courier, monospace; |
|
} |
|
|
|
.hint-content ol { |
|
margin-left: 20px; |
|
font-size: 14px; |
|
} |
|
|
|
.show { |
|
display: block; |
|
} |
|
|
|
|
|
|
|
|
|
.notification { |
|
position: fixed; |
|
top: 20px; |
|
left: 20px; |
|
padding: 10px 20px; |
|
border-radius: 5px; |
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); |
|
color: #fff; |
|
z-index: 1000; |
|
} |
|
|
|
.notification.success { |
|
background-color: var(--success-color); |
|
} |
|
|
|
.notification.error { |
|
background-color: var(--danger-color); |
|
} |
|
|
|
.notification.info { |
|
background-color: var(--info--color); |
|
} |
|
|
|
.close-btn { |
|
cursor: pointer; |
|
float: right; |
|
font-size: 20px; |
|
font-weight: bold; |
|
line-height: 1; |
|
color: #fff; |
|
} |
|
|
|
.snakex { |
|
width: 100%; |
|
display: block; |
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="100%" viewBox="0 0 10 10"><path fill="none" stroke="gainsboro" stroke-width="1" d="M0 0l5 5 5-5"/></svg>'); |
|
background-repeat: repeat-x; |
|
background-position: bottom; |
|
} |
|
|
|
@media (max-width: 768px) { |
|
.container { |
|
flex-direction: column; |
|
align-items: center; |
|
} |
|
|
|
.form-container { |
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="100%" viewBox="0 0 10 10"><path fill="none" stroke="gainsboro" stroke-width="1" d="M0 0l5 5 5-5"/></svg>'); |
|
background-repeat: repeat-x; |
|
background-position: bottom; |
|
} |
|
|
|
.form-container, |
|
.result-container { |
|
width: 100%; |
|
padding: 10px; |
|
} |
|
|
|
input { |
|
width: 90%; |
|
} |
|
|
|
button { |
|
width: 90%; |
|
text-align: center; |
|
} |
|
} |
|
|