/* colors used Text color (light-blue): #99bbff; Primary color(White): "#ffffff; Secondary color (light-blue): #80aaff; */ /* style color organization*/ :root { --background_color: white; --maintext_color: #000000; --interactive_color: #0855ef; --buttons_background_color: white; --primary_buttons_background_color:#0855ef; --secondary_buttons_backgound_color: #e0b354; --secondary_buttons_text_color: #000000; } /*start color*/ body { background-color: var(--background_color); color: var(--maintext); font-family: 'Merriweather', serif; font-weight: 400; font-size: 16px; /*font size to 16px */ line-height: 1.7; /* Sets line-height to 1.7 */ } h1 { color: var(--maintext_color); font-size: 50px; font-weight: 800px; line-height: 2; text-emphasis-color: var(--maintext_color); } h3 { font-size: 24px; font-weight: 700px; line-height: 1.75; } footer { color: var(--maintext_color); font-size: 20px; font-weight: 600px; } p { color: var(--maintext_color); font-size: 24px; font-weight: 700px; } /*interactive elements and hover states*/ a { color: var(--interactive_color); } a:visited { /* visited link */ color: var(--interactive_color); } a:hover { /* No underlining when hovering over a link */ text-decoration: none; } a:active { /* selected link */ color: var(--interactive_color); } /*end color schemes*/ /*accessibility in active elements*/ a:hover, a:focus { /* No underlining when hovering over a link */ text-decoration: none; } /*button elements section*/ button { /* overwrites browser defaults and resets the border */ border: none; /* takes the font from the outer container */ font-family: inherit; /* styles the background color, font color, and text decoration (underline, etc.) of the button */ background-color: var(--buttons_background_color); color: white; text-decoration: none; /*adds spacing to the button (this will be discussed more in-depth later) */ padding: 25px; border-radius: 5px; /* gives the button a bottom border with a width of 2px, a type of solid, and a color in RGBA format */ border-bottom: 2px solid rgba(0, 0, 0, 0.3); } button:hover, button:focus { /* lets the mouse appear as a hand when hovering over the button */ cursor: pointer; /* reduces the opacity of the button to 80% */ opacity: 0.8; } /*secondary Button*/ .button__secondary { background-color: var(--secondary_buttons_backgound_color); color: var(--secondary_buttons_text_color); } .button, button { /* overwrites browser defaults */ /* resets the border */ border: none; display: inline-block; /* takes the font from the outer container */ font-family: inherit; /* style button */ background-color: var(--primary_buttons_background_color); color: white; text-decoration: none; padding: 10px; border-radius: 3px; /* width of the border, type, color */ border-bottom: 2px solid rgba(0, 0, 0, 0.3); transition: opacity 0.2s; } /*border box section*/ * { box-sizing: border-box; } /*profile picture section*/ .profile { max-width: 700px; margin: 0 auto; } .profile__portrait { float: left; width: 250px; margin-right: 40px; border-radius: 50%; } /*header section*/ .page-header { display: flex; width: 100%; padding: 20px; } .page-header__item { width: 100px; } .page-header-img { width: 200px; } .page-header__item:last-child { flex-grow: 1; text-align: right; } .navigation-list { list-style-type: none; } .navigation-list li { display: inline-block; margin-left: 15px; } /* Grid Section*/ #grid-container { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 100px; grid-gap: 20px; } #grid-container .grid__item { background-color: grey; color: white; text-align: center; min-height: 100px; } #grid-container .grid__item:nth-child(1) { grid-column-start: 1; } #grid-container .grid__item:nth-child(4) { grid-column-start: 1; } /*footer section*/ .page-footer { clear: both; display: flex; flex-direction: column; text-align: center; } .page-footer button { width: 150px; margin: 5px auto; } /*social media logos*/ .social-media img { width: 40px; } /*Responsive*/ @media all and (max-width: 500px) { #grid-container { grid-template-columns: 1fr; } } @media all and (min-width: 500px) and (max-width: 750px){ #grid-container { grid-template-columns: 1fr; } } @media all and (max-width: 750px) { .grid { grid-gap: 10px; } .grid__item:last-child { grid-column: auto / auto; grid-row: auto / auto; } h1 { font-size: 22px; } } /*Berlin Picture*/ @keyframes color-change { from { fill: #edc655; } to { fill: #f76414; } } @keyframes color-change { 0% { fill: #edc655; } 50% { fill: #fcffad; } 100% { fill: #f76414; } } .sun { animation-duration: 4s; animation-name: color-change; animation-iteration-count: infinite; animation-direction: alternate; animation-timing-function: linear; } @keyframes cloud-move { from { transform: translate(0, 50px); } to { transform: translate(200px, 50px); } } .cloud-front { animation-duration: 30s; animation-name: cloud-move; animation-iteration-count: infinite; animation-direction: alternate; animation-timing-function: linear; } @keyframes cloud-move-reverse { from { transform: translate(446px, 48px); } to { transform: translate(100px, 48px); } } .cloud-back { animation: 34s cloud-move-reverse infinite alternate linear; } /*End Berlin Picture*/