@font-face { font-family: Agraham; src: url("fonts/Agraham.otf"); } @font-face { font-family: Vanilla-Sky; src: url("fonts/Vanilla Sky.otf"); } *, :after, :before { margin: 0; padding: 0; box-sizing: border-box; } :root { --content-width: 1200px; --color: rgb(83, 36, 6); } body { background-color: antiquewhite; font-family: Vanilla-Sky, sans-serif; font-weight: 700; color: var(--color); } p { margin-bottom: 1em; } html, body { font-size: 24px; width: 100%; } @media screen and (max-width: 480px) { html, body { font-size: 12px; } html p, html div, body p, body div { font-size: 1.1em; } } h1, h2, h3, h4, h5, h6 { font-family: Agraham, sans-serif; } .head-section { margin: auto; text-align: center; padding: 1.5em 2em 3em; } .container { padding: 2rem; } .section { max-width: var(--content-width); margin: auto; text-align: center; border-top: 1px solid rgba(44, 22, 6, 0.14); padding: 2em 0; } @media screen and (max-width: 480px) { .section { padding: 1em 0; } } .section-content { display: flex; justify-content: start; align-items: start; padding: 1.5em 0; } .box { padding: 2em; border: 1px solid rgb(83, 36, 6); display: flex; justify-content: center; align-items: center; } @media screen and (max-width: 768px) { .box { padding: 1em 0.5em; } } .section-1 .section-content { height: 700px; flex-direction: column; flex-wrap: wrap; gap: 0.5em; font-size: 1rem; } .section-1 .section-content .box { max-width: 5em; height: 100%; } .section-1 .section-content .box:nth-child(4) ~ div { height: calc(25% - 0.375em); } @media screen and (max-width: 768px) { .section-1 .section-content .box { height: 75% !important; width: calc((100% - 2rem) / 5) !important; } .section-1 .section-content .box:nth-child(2), .section-1 .section-content .box:nth-child(4), .section-1 .section-content .box:nth-child(9), .section-1 .section-content .box:nth-child(8), .section-1 .section-content .box:nth-child(10) { height: calc(25% - 0.5rem) !important; } .section-1 .section-content .box:nth-child(1) { order: 1; } .section-1 .section-content .box:nth-child(2) { order: 2; } .section-1 .section-content .box:nth-child(3) { order: 3; } .section-1 .section-content .box:nth-child(4) { order: 4; } .section-1 .section-content .box:nth-child(5) { order: 5; } .section-1 .section-content .box:nth-child(6) { order: 7; } .section-1 .section-content .box:nth-child(7) { order: 9; } .section-1 .section-content .box:nth-child(8) { order: 10; } .section-1 .section-content .box:nth-child(9) { order: 6; } .section-1 .section-content .box:nth-child(10) { order: 8; } } @media screen and (max-width: 480px) { .section-1 .section-content { height: 500px; } } .section-2 .section-content { flex-wrap: wrap; gap: 0.5em; align-items: stretch; justify-content: stretch; } .section-2 .section-content .box { display: flex; align-items: center; justify-content: center; } .section-2 .section-content .box.main { flex: 1 1 clamp(300px, 500px, 100%); height: calc(360px + 0.5em); } .section-2 .section-content .left-column { display: block; flex: 0 1 300px; } .section-2 .section-content .left-column .aside { margin-bottom: 0.5em; } .section-2 .section-content .left-column > div { height: 180px; } @media screen and (max-width: 768px) { .section-2 .section-content .left-column { flex: 1 1 100%; } } .section-2 .section-content .block { flex: 1 1 100%; } .section-3 .grid-section { display: grid; grid-template-areas: "b-1 b-2 b-3 clr" "b-4 b-5 b-6 clr" "b-7 b-8 b-9 ok" "b-0 b-0 p ok "; } .section-3 .calculator-btn { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; min-width: 80px; min-height: 80px; } .section-3 .calculator-btn.btn-0 { grid-area: b-0; } .section-3 .calculator-btn.btn-1 { grid-area: b-1; } .section-3 .calculator-btn.btn-2 { grid-area: b-2; } .section-3 .calculator-btn.btn-3 { grid-area: b-3; } .section-3 .calculator-btn.btn-4 { grid-area: b-4; } .section-3 .calculator-btn.btn-5 { grid-area: b-5; } .section-3 .calculator-btn.btn-6 { grid-area: b-6; } .section-3 .calculator-btn.btn-7 { grid-area: b-7; } .section-3 .calculator-btn.btn-8 { grid-area: b-8; } .section-3 .calculator-btn.btn-clr { grid-area: clr; } .section-3 .calculator-btn.btn-period { grid-area: p; } .section-3 .calculator-btn.btn-ok { grid-area: ok; } .section-4 .grid-section { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr 0.6fr 1fr; grid-template-rows: 1fr 1fr 1fr 0.3fr 1.7fr 1fr 1fr; gap: 0.6rem; } .section-4 .grid-section .area { width: 100%; height: 100%; } .section-4 .grid-section .area.area1 { grid-area: 1/1/span 3/span 2; } .section-4 .grid-section .area.area2 { grid-area: 1/3/span 2/span 3; } .section-4 .grid-section .area.area5 { grid-area: 1/6/span 4/span 1; } .section-4 .grid-section .area.area4 { grid-area: 4/1/span 3/span 2; } .section-4 .grid-section .area.area3 { grid-area: 3/3/span 4/span 2; } .section-4 .grid-section .area.area7 { grid-area: 3/5/span 2/span 1; } .section-4 .grid-section .area.area8 { grid-area: 7/1/span 1/span 4; } .section-4 .grid-section .area.area6 { grid-area: 5/5/span 3/span 2; } @media screen and (max-width: 480px) { .section-4 .grid-section .area.area1 { grid-area: 1/1/span 3/span 2; } .section-4 .grid-section .area.area4 { grid-area: 1/3/span 2/span 3; } .section-4 .grid-section .area.area8 { grid-area: 1/6/span 4/span 1; } .section-4 .grid-section .area.area2 { grid-area: 4/1/span 3/span 2; } .section-4 .grid-section .area.area3 { grid-area: 3/3/span 4/span 2; } .section-4 .grid-section .area.area6 { grid-area: 3/5/span 2/span 1; } .section-4 .grid-section .area.area5 { grid-area: 7/1/span 1/span 4; } .section-4 .grid-section .area.area7 { grid-area: 5/5/span 3/span 2; } } @media screen and (max-width: 480px) { .grid-section { padding: 0; border: none; } } /*# sourceMappingURL=styles.css.map */