html, body {
    padding: 0;
    margin: 0;
    border: 0;
    height: 100%;
    width: 100%;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 18px;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #211633;
}

body, a {
    color: #f7f2ff;
}


nav, footer {
    align-items: center;
    height: auto;
    display: flex;
    padding: 10px;
    background-color: #50306f;
}

footer {
    flex-shrink: 0;
    padding-bottom: 20px;
}


nav > div, footer > div {
    flex: 1;
    font-size: 20px;
    color: #e4d7f9;
    margin: 0 5vw;
}

.div-logo {
    font-weight: bold;
}

.social, .bottom-footer, .menu, .div-logo {
    height: 100%;
}

.div-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.div-logo > * {
    vertical-align: middle;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px;
    align-items: center;
}

a {
    text-decoration: none;
    cursor: pointer;
    transition: 0.5s;
}

.menu a, .homepage-link {
    padding: 20px;
    border-radius: 50px;
}

.active-link, .homepage-link, .card {
    border: solid 2px #6b52b0;
}

.menu a:not(.active-link):hover, .card:hover, .homepage-link:hover {
    background-color: #6b52b0;
}

.social {
    text-align: center;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.social span {
    font-weight: bold;
}

.social a {
    font-style: italic;
}

.social a:hover {
    color: #9e74cf;
}

.social hr {
    align-self: center;
}

.bottom-footer {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

main {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0 5vw;
}

.main-writeup {
    margin: 0 20vw;
}

.main-writeup img {
    width: 60%;
    margin-bottom: 20px;
}

hr {
    width: 10%;
    height: 1px;
    margin-left: 0;
    border: 0;
    background-color: #6b52b0;
}

main hr {
    margin-bottom: 30px;
}

.homepage-link {
    width: fit-content;
    align-self: center;
    margin-top: 20px;
}

.div-cards {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background-color: #211633;
    padding: 10px;
    width: 300px;
    height: 100px;
    text-align: center;
    margin: auto;
    font-weight: bold;
    font-size: 20px;
}

.writeup-info, .footer-notes {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2);
	border-radius: 20px;
	margin: 20px 0;
}

.writeup-info a {
	color: #493661;
    font-style: italic;
    font-weight: 600;
}

.writeup-info a:hover {
    color: #6b52b0;
}

.writeup-info h1 {
	width: 100%;
	color: #fff;
    text-align: center;
}

.main-writeup.offensive .writeup-info, .main-writeup.offensive .footer-notes {
	background: linear-gradient(0.93turn, #f7a1a7, #f2555f);
}

.main-writeup.general .writeup-info, .main-writeup.general .footer-notes {
	background: linear-gradient(0.93turn, #9cf7c8, #58cc90);
}

.main-writeup.defensive .writeup-info, .main-writeup.defensive .footer-notes {
	background: linear-gradient(0.93turn, #b8d5f9, #789fcf);
}

.main-writeup.attack-defense .writeup-info, .main-writeup.attack-defense .footer-notes {
	background: linear-gradient(0.93turn, #e4b3fc, #ce7cf7);
}

.main-writeup.programming .writeup-info, .main-writeup.programming .footer-notes {
	background: linear-gradient(0.93turn, #f5ee8e, #cfc64a);
}

.main-writeup.scripting .writeup-info, .main-writeup.scripting .footer-notes {
	background: linear-gradient(0.93turn, #fad884, #dea310);
}

h2 {
    color: #966bf4;
}

h3 {
    color: #a897c4;
}

.main-writeup.offensive strong {
    color: #f7a1a7;
}

.main-writeup.general strong {
    color: #89e8b7;
}

.main-writeup.defensive strong {
    color: #a3c9f7;
}

.main-writeup.attack-defense strong {
    color: #dba3f7;
}

.main-writeup.programming strong {
    color: #e3dc7d;
}

.main-writeup.scripting strong {
    color: #f5d27a;
}

.main-writeup li {
    margin-bottom: 10px;
}

pre {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    color: #000;
    box-shadow: inset 5px 5px 10px #a9b3bb, inset -5px -5px 10px #a9b3bb;
}

code {
    background-color: #a897c4;
    border-radius: 60px;
    padding: 1px;
    color: #000;
    border: solid 2px #6b52b0;
}

.date {
    font-size: 16px;
    color: #a897c4;
}

.row {
	display: flex;
    width: 100%;
    border-bottom: 2px solid #000;
}

.row:last-of-type {
	border-bottom: transparent;
}

.header {
	flex: 0 0 20%;
	font-weight: bold;
	border-right: 2px solid #000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cell {
	flex: 1;
	padding: 10px;
	text-align: left;
}

.footer-notes .cell {
    padding: 20px;
}

.footer-notes {
    padding: 5px 0;
    margin-bottom: 20px;
    color: #000;
}

.footer-notes .header {
    border-right: unset;
	border-bottom: solid 2px #000;
    padding: 5px;
}

hr {
	border-top: solid 2px #c7a6dd;
	margin: 0;
}

.writeup-info div, .writeup-info h1 {
    color: #000;
}

.summary-text {
    border-left: solid 3px #c7a6dd;
    padding: 10px;
    background: linear-gradient(83deg, rgba(49, 32, 79, 1), rgba(49, 32, 79, 0));
    border-radius: 2px;
}

.comment {
    color: #757575;
}

figcaption {
    font-style: italic;
}

.span-role {
    font-weight: bold;
}

.signature {
	text-align: right;
	font-weight: bold;
	color: #c7a6dd;
}

@media screen and (max-width: 800px) {
    .main-writeup {
        margin: unset;
    }
    .main-writeup img {
        width: 100%;
        height: 100%;
    }
}


