@import url('https://fonts.googleapis.com/css?family=Fira+Sans&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese'); @import url('https://fonts.googleapis.com/css?family=Alfa+Slab+One&subset=latin-ext,vietnamese'); body { display: grid; grid-template-areas: 'ribbon ribbon' 'sidebar content'; background-color: #3498db; } a { text-decoration: none; color: #2c3e50; text-decoration: none; font-style: italic; border-bottom: 5px solid #2c3e50; transition: color 0.2s, border-bottom-color 0.2s; } a:hover { color: #8e44ad; border-bottom-color: #8e44ad; transition: color 0.4s, border-bottom-color 0.4s; } h1, h2 { margin: 0; padding: 0 20px; } .sidebar, .content { padding: 10px; background-color: #bdc3c7; color: black; } .center { display: block; margin-left: auto; margin-right: auto; } /* ribbon ********************************************************************/ .ribbon { grid-area: ribbon; padding: 0; margin: 0; background-color: #2c3e50; } .ribbon, .ribbon a { color: #ecf0f1; } .ribbon-links { display: table; list-style-type: none; margin: 0; padding: 0; background-color: #7f8c8d; width: 100%; white-space: nowrap; } .ribbon-links li { display: table-cell; float: left; padding: 5px 20px; background-color: #7f8c8d; } .ribbon li:hover { background-color: #34495e } /* sidebar *******************************************************************/ .sidebar { grid-area: sidebar; margin: 10px 5px 10px 10px; width: 300px; } .side-picture { margin: 10px auto; } .side-card { margin: 10px; background-color: #ecf0f1; } .side-card h4, .side-content { padding: 10px 1em; margin: 0; } p.side-content { padding: 0.5em 1em; } .side-links { line-height: 1.5em; } /* content *******************************************************************/ .content { grid-area: content; margin: 10px 10px 10px 5px; } .card { background-color: #ecf0f1; padding: 10px; margin: 40px 10px; box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7); transition: box-shadow 0.2s; } .card:hover { box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.7); transition: box-shadow 0.3s; } .card-lvl2 { margin: 10px 10px 20px 20px; padding-left: 0; background-color: #bdc3c7; } .list-lvl1, .list-lvl1 a { background-color: #bdc3c7; list-style: none; } .list-lvl1 { padding: 10px; } .list-lvl1 h4 { margin-block-start: 0.5em; margin-block-end: 1em; } .two-col-ul { collumns: 2; -webkit-columns: 2; -moz-columns: 2; } /* highlights ****************************************************************/ h1,h2,h3,h4,h5 { font-family: 'Alfa Slab One', serif; font-weight: 300; margin: 0; z-index: 20; position: relative; } h1 { font-size: 4em; } h2 { font-size: 3em; } h3 { font-size: 2em; } h4 { font-size: 1.2em; } .header-container { display: inline-block; } .highlight-h1, .highlight-h2, .highlight-h3, .highlight-h4, .highlight-h5 { position: relative; left: -10px; width: 120%; max-width: 90vw; z-index: 10; } .highlight-h1 { background-color: #1abc9c !important; height: 48px; top: -48px; } .highlight-h2 { background-color: #f1c40f !important; height: 34px; top: -34px; } .highlight-h3 { background-color: #2ecc71 !important; height: 24px; top: -24px; } .highlight-h4 { background-color: #e67e22 !important; height: 24px; top: -26px; left: 0; width: 110%; } .list-lvl1 .highlight-h4 { background-color: #e67e22 !important; height: 24px; top: -34px; left: 0; left: -10px; width: 120%; } .highlight-h5 { background-color: #9b59b6 !important; height: 12px; top: -12px; }