finalTrain / static /css /style.css
pjxcharya's picture
initial commit
40518b9 verified
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}
body {
background-color: #f5f5f5;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 30px;
}
header h1 {
font-size: 2.5rem;
color: #3a3a3a;
margin-bottom: 10px;
}
header p {
font-size: 1.2rem;
color: #666;
}
.main-content {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.video-container {
flex: 1 1 600px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.video-container img {
width: 100%;
height: auto;
display: block;
}
.controls {
flex: 1 1 300px;
display: flex;
flex-direction: column;
gap: 20px;
}
.controls h2 {
font-size: 1.5rem;
margin-bottom: 15px;
color: #3a3a3a;
border-bottom: 2px solid #3498db;
padding-bottom: 5px;
}
.exercise-options {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.exercise-option {
flex: 1 1 calc(33% - 10px);
min-width: 80px;
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition:
transform 0.3s,
box-shadow 0.3s;
cursor: pointer;
text-align: center;
}
.exercise-option:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.exercise-option.selected {
border: 2px solid #3498db;
transform: translateY(-5px);
}
.exercise-option img {
width: 100%;
height: 100px;
object-fit: cover;
}
.exercise-option h3 {
padding: 10px;
font-size: 1rem;
}
.config-inputs {
display: flex;
gap: 15px;
}
.input-group {
flex: 1;
}
.input-group label {
display: block;
margin-bottom: 5px;
font-weight: 500;
}
.input-group input {
width: 100%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 1rem;
}
.action-buttons {
display: flex;
gap: 10px;
}
.btn {
flex: 1;
padding: 12px 20px;
border: none;
border-radius: 5px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.3s;
}
.primary-btn {
background-color: #3498db;
color: white;
}
.primary-btn:hover {
background-color: #2980b9;
}
.secondary-btn {
background-color: #e74c3c;
color: white;
}
.secondary-btn:hover {
background-color: #c0392b;
}
.btn:disabled {
background-color: #ccc;
cursor: not-allowed;
}
.workout-status {
background-color: white;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.status-display {
display: flex;
flex-direction: column;
gap: 10px;
}
.status-item {
display: flex;
justify-content: space-between;
padding: 5px 0;
border-bottom: 1px solid #eee;
}
.status-label {
font-weight: 500;
color: #555;
}
.status-value {
font-weight: 700;
color: #3498db;
}
@media (max-width: 768px) {
.main-content {
flex-direction: column;
}
.config-inputs {
flex-direction: column;
}
}