Image-Captioning / static /styles.css
shgyg99's picture
Sync from GitHub via hub-sync
98e58c0 verified
Raw
History Blame Contribute Delete
2.19 kB
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--main-color: #ff6f61;
--secondary-color: #ebf6eb;
--primary-color: #fbcdcd;
--light-bg: #ffffff;
--dark-bg: #333333;
}
html,
body {
font-family: "Handlee", cursive;
font-size: 16px;
line-height: 1.6;
scroll-behavior: smooth;
background-color: var(--light-bg);
color: var(--dark-bg);
}
button,
form input::file-selector-button {
border: 2px dashed var(--main-color);
background-color: var(--light-bg);
color: var(--dark-bg);
border-radius: 20px;
padding: 5px 10px;
margin: 10px;
cursor: pointer;
}
body h2 {
text-align: center;
background-color: var(--primary-color);
margin: 20px auto;
padding: 10px 0px;
}
.container {
display: flex;
flex-direction: row;
gap: 50px;
max-width: 800px;
min-height: calc(100vh - 120px);
margin: 20px auto;
padding: 20px;
padding-top: 70px;
background-color: var(--secondary-color);
border-radius: 20px;
}
.upload-section {
display: flex;
flex-direction: column;
align-items: center;
}
.upload-section form {
display: flex;
flex-direction: column;
}
.image-preview {
max-width: 300px;
}
.image-preview img {
width: 70%;
height: auto;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.image-preview h4 {
margin-bottom: 20px;
text-align: left;
}
.caption-box {
margin-bottom: 15px;
}
.upload-section {
margin-bottom: 20px;
max-width: 200px;
margin: 0 60px;
}
.results {
display: flex;
flex-direction: column;
}
.upload-section h3 {
margin-bottom: 20px;
}
button {
margin-top: 10px;
}
@media(max-width: 768px) {
.container {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
gap: 20px;
margin-top: 20px;
}
.upload-section {
max-width: 100%;
margin: 0 auto;
}
.image-preview{
max-width: 200px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.image-preview h4 {
text-align: center;
}
.image-preview img {
width: 200px;
heght: auto;
margin: 0 auto;
}
}