StudioAmico / src /App.css
outshine84
fix: bundle logo and image assets for production
55e735c
.app-container {
min-height: 100vh;
--board-shift-x: 0px;
--board-shift-y: 0px;
--board-scale: 1;
--board-width: min(92vw, 1080px);
--board-min-height: 480px;
--board-max-height: 480px;
--side-column-width: 320px;
--layout-gap: 16px;
background-color: #F5E7C0;
background-image: url('../aula.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 20px;
padding-bottom: 170px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.app-container.onboarding-mode {
display: flex;
align-items: center;
justify-content: center;
padding: 24px 18px;
}
.onboarding-wrap {
width: min(1040px, 100%);
margin: 0 auto;
}
.onboarding-card {
margin: 0 auto;
width: min(960px, 100%);
background: rgba(255, 253, 242, 0.95);
border: 3px solid #C8860A;
border-radius: 18px;
box-shadow: 0 14px 32px rgba(72, 44, 0, 0.18);
padding: 28px;
}
.onboarding-card h1,
.onboarding-card h2 {
margin: 0 0 8px;
color: #3A2800;
}
.onboarding-card p {
margin: 0 0 16px;
color: #5A3F00;
font-size: 17px;
}
.onboarding-form {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
}
.onboarding-input {
flex: 1;
min-width: 220px;
border: 2px solid #D8C384;
border-radius: 10px;
font-size: 18px;
padding: 12px 14px;
color: #3A2800;
background: #FFFDF4;
}
.onboarding-input:focus {
outline: none;
border-color: #C8860A;
box-shadow: 0 0 0 3px rgba(200, 134, 10, 0.17);
}
.onboarding-primary-button {
border: 2px solid #B37708;
background: linear-gradient(180deg, #FFD95A 0%, #F6C72A 100%);
color: #4E3400;
border-radius: 999px;
padding: 11px 20px;
font-size: 16px;
font-weight: 800;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
box-shadow: 0 7px 14px rgba(163, 109, 0, 0.22);
}
.onboarding-primary-button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 10px 18px rgba(163, 109, 0, 0.28);
}
.onboarding-primary-button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.class-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
}
.class-option {
border: 2px solid #D8BC67;
background: #FFF6D6;
color: #4A3200;
border-radius: 12px;
padding: 12px 10px;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: transform 0.2s ease, background-color 0.2s ease;
}
.class-option:hover,
.class-option.selected {
background: #FFE58E;
transform: translateY(-1px);
}
.area-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
}
.area-option {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 8px;
border: 3px solid #B47A03;
border-radius: 16px;
background: linear-gradient(180deg, #FFE578 0%, #FFD53A 100%);
color: #4D3300;
padding: 26px 14px;
min-height: 210px;
cursor: pointer;
box-shadow: 0 10px 18px rgba(142, 89, 0, 0.2);
transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.area-option:hover {
transform: translateY(-4px) scale(1.01);
box-shadow: 0 14px 24px rgba(142, 89, 0, 0.28);
filter: saturate(1.08);
}
.area-icon {
font-size: 52px;
line-height: 1;
}
.area-title {
font-size: 23px;
font-weight: 900;
}
.area-description {
font-size: 15px;
line-height: 1.35;
max-width: 24ch;
}
.page-logo-wrap {
width: 100%;
display: flex;
justify-content: center;
margin-bottom: -14px;
position: relative;
z-index: 12;
}
.page-logo {
width: min(390px, 66vw);
height: auto;
filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}
.main-content {
max-width: 1200px;
margin: 0 auto;
}
.scene {
margin-bottom: 20px;
}
/* Wrapper che contiene bot (sul bordo) + lavagna */
.whiteboard-stage {
position: relative;
width: var(--board-width);
margin: 0 auto;
padding-bottom: 6px;
}
.progress-badge {
position: absolute;
top: -18px;
left: 22px;
z-index: 14;
padding: 9px 16px;
border-radius: 999px;
color: #ffffff;
font-size: 15px;
font-weight: 700;
letter-spacing: 0.02em;
}
.progress-badge.is-active {
background: linear-gradient(135deg, rgba(140, 201, 230, 0.96) 0%, rgba(94, 174, 216, 0.96) 100%);
border: 2px solid #4F98BE;
box-shadow: 0 6px 14px rgba(79, 152, 190, 0.28);
}
.progress-badge.is-inactive {
background: rgba(255, 248, 225, 0.95);
border: 2px solid rgba(200, 134, 10, 0.75);
color: #8A5A08;
box-shadow: 0 5px 12px rgba(160, 120, 40, 0.18);
}
.whiteboard-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) var(--side-column-width);
gap: var(--layout-gap);
align-items: start;
}
.board-column {
display: flex;
flex-direction: column;
gap: 0;
min-width: 0;
}
.side-column {
display: flex;
flex-direction: column;
gap: 14px;
}
.side-bot-wrap {
position: relative;
min-height: 520px;
}
.level-card {
background: rgba(255, 255, 240, 0.94);
border: 3px solid #C8860A;
border-radius: 12px;
box-shadow: 0 6px 16px rgba(180, 100, 0, 0.16);
color: #3A2800;
}
.level-card {
padding: 16px 14px;
}
.level-card h3 {
margin: 0 0 10px;
font-size: 18px;
}
.level-card p {
margin: 0 0 8px;
line-height: 1.4;
font-size: 16px;
}
.level-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
}
.level-row:last-child {
margin-bottom: 0;
}
.level-row p {
margin: 0;
}
.level-action-button {
border: 2px solid #4F98BE;
background: rgba(140, 201, 230, 0.16);
color: #2F6C8B;
border-radius: 999px;
padding: 6px 12px;
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
white-space: nowrap;
}
.level-action-button:hover:not(:disabled) {
background: rgba(140, 201, 230, 0.28);
transform: translateY(-1px);
}
.level-action-button:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.area-row {
margin-bottom: 12px;
}
.mini-area-switch {
display: flex;
flex-direction: column;
gap: 8px;
}
.lesson-actions {
margin-top: 12px;
display: flex;
}
.lesson-print-button {
width: 100%;
justify-content: center;
font-size: 14px;
padding: 9px 14px;
border-color: #B37708;
background: linear-gradient(180deg, #FFE085 0%, #F8C83A 100%);
color: #4A3200;
}
.lesson-print-button:hover:not(:disabled) {
background: linear-gradient(180deg, #FFE8A8 0%, #FFD75A 100%);
}
.mini-area-button {
width: 100%;
border: 2px solid #D29A1F;
background: #FFF3CA;
color: #5A3D00;
border-radius: 10px;
font-size: 14px;
font-weight: 700;
padding: 8px 10px;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.mini-area-button:hover {
background: #FFE7A4;
transform: translateY(-1px);
}
.mini-area-button.is-selected {
background: #FFD54A;
border-color: #B47A03;
}
.topic-badge-wrap {
margin-top: -16px;
position: relative;
z-index: 8;
display: flex;
justify-content: flex-start;
padding-left: 18px;
}
.topic-badge {
max-width: min(720px, calc(100% - 24px));
display: inline-flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
padding: 10px 16px;
border-radius: 999px;
background: rgba(255, 255, 240, 0.97);
border: 3px solid #C8860A;
box-shadow: 0 6px 14px rgba(180, 100, 0, 0.15);
color: #3A2800;
}
.topic-badge-label {
font-size: 15px;
font-weight: 700;
}
.topic-badge-value {
font-size: 15px;
font-style: italic;
}
@media (max-width: 768px) {
.app-container {
--board-width: min(96vw, 760px);
--board-min-height: 360px;
--board-max-height: 360px;
--board-scale: 1;
--side-column-width: 100%;
padding: 12px;
padding-bottom: 96px;
}
.page-logo-wrap {
margin-bottom: -4px;
}
.onboarding-card {
padding: 18px;
}
.onboarding-card p {
font-size: 16px;
}
.area-grid {
grid-template-columns: 1fr;
}
.area-option {
min-height: 160px;
padding: 20px 12px;
}
.area-icon {
font-size: 42px;
}
.area-title {
font-size: 20px;
}
.page-logo {
width: min(285px, 72vw);
}
.whiteboard-stage {
padding-bottom: 8px;
}
.progress-badge {
top: -14px;
left: 14px;
padding: 8px 14px;
font-size: 13px;
}
.whiteboard-layout {
grid-template-columns: 1fr;
gap: 10px;
}
.side-bot-wrap {
min-height: 230px;
}
.side-column {
gap: 10px;
}
.topic-badge-wrap {
margin-top: -12px;
padding-left: 12px;
}
.topic-badge {
max-width: calc(100% - 12px);
padding: 8px 12px;
border-width: 2px;
}
.topic-badge-label,
.topic-badge-value {
font-size: 13px;
}
.level-card {
width: 100%;
padding: 12px 10px;
}
.level-row {
align-items: flex-start;
flex-direction: column;
gap: 6px;
margin-bottom: 8px;
}
.level-card p {
font-size: 14px;
}
.mini-area-switch {
display: grid;
grid-template-columns: 1fr;
gap: 6px;
}
.mini-area-button {
font-size: 13px;
padding: 8px;
}
}
@media (max-width: 768px) {
.scene {
min-height: 0;
padding: 4px;
}
}
@media (max-width: 480px) {
.app-container {
--board-width: 100%;
--board-min-height: 320px;
--board-max-height: 320px;
--layout-gap: 8px;
padding: 8px;
padding-bottom: 84px;
}
.main-content {
width: 100%;
}
.progress-badge {
left: 10px;
top: -12px;
font-size: 12px;
padding: 7px 10px;
max-width: calc(100% - 20px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.topic-badge-wrap {
margin-top: -10px;
padding-left: 8px;
}
.topic-badge {
max-width: calc(100% - 8px);
}
.lesson-actions {
margin-top: 10px;
}
.lesson-print-button {
font-size: 13px;
padding: 8px 10px;
}
}