Spaces:
Running
Running
/* General Reset */ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: Arial, sans-serif; | |
color: #333; | |
background-color: #f9f9f9; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
min-height: 100vh; | |
height: 100%; | |
} | |
.container { | |
width: 100%; | |
height: 100vh; | |
display: grid; | |
place-items: center; | |
gap: 0; | |
padding: 20px; | |
background-color: #fff; | |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | |
border-radius: 8px; | |
text-align: center; | |
box-sizing: border-box; /* Ensure padding doesn't affect width */ | |
} | |
.title { | |
font-size: 2em; | |
color: #333; | |
margin-bottom: 1rem; | |
} | |
.upload-form { | |
display: flex; | |
flex-direction: column; | |
gap: 1rem; | |
margin-bottom: 2rem; | |
} | |
.file-label { | |
font-size: 1.1em; | |
color: #555; | |
} | |
.file-input { | |
padding: 8px; | |
border-radius: 4px; | |
border: 1px solid #ccc; | |
} | |
.submit-button { | |
padding: 10px 20px; | |
font-size: 1em; | |
font-weight: bold; | |
color: #fff; | |
background-color: #4caf50; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
transition: background-color 0.3s ease; | |
} | |
.submit-button:hover { | |
background-color: #45a049; | |
} | |
.result-section { | |
margin-top: 1.5rem; | |
padding: 1.5rem; | |
background-color: #f1f1f1; | |
border-radius: 8px; | |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | |
} | |
.result-title { | |
font-size: 1.5em; | |
margin-bottom: 1rem; | |
color: #333; | |
} | |
.result-text { | |
font-size: 1.1em; | |
color: #666; | |
margin: 0.5rem 0; | |
} | |
.result-image { | |
margin-top: 1rem; | |
max-width: 100%; | |
height: auto; | |
border-radius: 8px; | |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
} | |
.return-button { | |
padding: 10px 20px; | |
font-size: 1em; | |
font-weight: bold; | |
color: #fff; | |
background-color: #4caf50; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
transition: background-color 0.3s ease; | |
text-decoration: none; | |
} | |
.intervals-list { | |
margin-bottom: 2rem; | |
} | |
ul { | |
list-style-type: none; | |
padding-left: 0; /* Optional: removes default left padding */ | |
} | |
/* Mobile Responsive Styles */ | |
@media (max-width: 768px) { | |
/* Container adjustments for smaller screens */ | |
.container { | |
width: 90%; | |
height: auto; | |
padding: 15px; | |
} | |
/* Title font size for better readability */ | |
.title { | |
font-size: 1.5em; | |
} | |
/* Form layout adjustments */ | |
.upload-form { | |
gap: 0.75rem; | |
} | |
.file-label { | |
font-size: 1em; | |
} | |
.file-input { | |
padding: 6px; | |
font-size: 0.9em; | |
} | |
/* Button adjustments */ | |
.submit-button, | |
.return-button { | |
padding: 8px 16px; | |
font-size: 0.9em; | |
} | |
/* Results section adjustments */ | |
.result-section { | |
padding: 1rem; | |
} | |
.result-title { | |
font-size: 1.3em; | |
} | |
.result-text { | |
font-size: 1em; | |
} | |
.result-image { | |
max-width: 90%; | |
} | |
/* Fake Frame Intervals list spacing */ | |
.intervals-list ul { | |
padding-left: 10px; /* Adds a bit of space to the left */ | |
} | |
/* Plot container adjustments */ | |
.plot-container { | |
overflow-x: auto; /* Allows horizontal scrolling if plot exceeds screen width */ | |
} | |
} | |
/* Extra Small Screens (Phones) */ | |
@media (max-width: 480px) { | |
.title { | |
font-size: 1.3em; | |
} | |
.file-label, | |
.result-text { | |
font-size: 0.9em; | |
} | |
.file-input { | |
padding: 5px; | |
font-size: 0.8em; | |
} | |
.submit-button, | |
.return-button { | |
padding: 6px 12px; | |
font-size: 0.8em; | |
} | |
} | |