body { background: linear-gradient(74deg, skyblue, pink 60%, salmon); padding: 0 12vw; } header { display: flex; justify-content: space-evenly; align-content: baseline; } h1::before, h1::after { content: " - "; } section h2 { font-style: italic; } a { color: black; text-decoration: none; } nav { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-evenly; position: relative; padding: default 3vw; height: 100%; } nav a, nav test { display: inline-block; } nav test { margin: auto 0; } .text-link::after { content: '<'; } .text-link::before { content: '>'; } section>span>p { padding-left: 30vw; } @media screen and (max-width: 600px) { body { padding: 10px 5vw; } section>span>p { padding-left: 10vw; } } section:nth-of-type(odd) { text-align: end; } section#presentation { display: flex; flex-direction: row-reverse; justify-content: end; height: 50vh; } #id-pic { height: auto; } h1, h2 { transition-property: text-decoration; transition-duration: 0.7s; transition-timing-function: ease-out; } h1:hover,h2:hover { text-decoration: underline; } #timeline { margin-top: 20px; position: relative; } #timeline::before { position: absolute; content: ''; width: 4px; height: 100%; background: #add8e6; left: 14px; border: 1px solid grey; box-shadow: 1px 1px 1px #696969; border-radius: 3px; } .timestamp { position: relative; padding: 4px 15px 4px 35px; background-color: salmon; display: inline-block; width: auto; border-radius: 40px; border: 1px solid pink; margin-bottom: 30px; } .timestamp::before { position: absolute; content: ''; width: 20px; height: 20px; background-color: green; border-radius: 100%; border: 1px solid #8db600; left: 5px; /*top: 3px;*/ } .events { padding-left:35px; display:block; position: relative; margin-bottom: 30px; } .events::before { content: ''; position: absolute; width: 30px; height: 0; border: 0.8px dashed red; top: 12px; left: 20px; } .events::after { content: ''; position: absolute; width: 10px; height: 10px; background: purple; top: 7px; left: 11px; border: 1px solid black; border-radius: 100%; } .event { position: relative; border-radius: 0 15px 0 15px; border: 1px solid gray; transition: all 0.3s ease-in-out; overflow: hidden; padding: 0 2%; max-width: 30vw; } footer { font-family: serif, Cousine; text-align: right; } @font-face{ font-family:Cousine; src:url(./fonts/CousineNerdFont-Regular.ttf); }