body,
html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
}
body {
    background-color: black;
    color: white;
}
body.lightmode {
    background-color: white;
    color: black;
}
a,
a:visited {
    color: white;
}
.lightmode a,
.lightmode a:visited {
    color: black;
}
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    text-align: center;
}
.links li {
    padding: 0;
    margin: 0;
    display: flex;
}
.links li a {
    display: flex;
    align-items: center;
}
.links li .description {
    display: none;
    position: absolute;
    left: 50px;
    bottom: 50px;
    text-align: left;
    transition: display 0.5s ease;
}
.logo-container {
    display: flex;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.logo {
    max-width: 100%;
    max-height: 100%;
}
.github .logo {
    background-color: white;
}
.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    color: white;
    background-color: #222222;
    text-decoration: none;
    text-align: center;
    border: 2px solid #444444;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.5s ease;
}
.lightmode .button {
    color: black;
    border-color: #bbbbbb;
    background-color: #dddddd;
}
.button:hover, .button:focus {
    background-color: transparent !important;
}
.links li:has(.button:hover) .description,
.links li:has(.button:focus) .description {
    display: block;
}
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.button.linkedin::before {
    background: linear-gradient(to right, #2867b2, black, black, #2867b2);
}
.button.github::before {
    background: linear-gradient(to right, #6e5494, black, black, #6e5494);
}
.button.ampersat::before {
    background: linear-gradient(to right, #007700, black, black, #007700);
}
.button.familydj::before {
    background: linear-gradient(to right, red, black, black, red);
}
.lightmode .button.linkedin::before {
    background: linear-gradient(to right, #2867b2, white, white, #2867b2);
}
.lightmode .button.github::before {
    background: linear-gradient(to right, #6e5494, white, white, #6e5494);
}
.lightmode .button.ampersat::before {
    background: linear-gradient(to right, #007700, white, white, #007700);
}
.lightmode .button.familydj::before {
    background: linear-gradient(to right, red, white, white, red);
}
.copyright {
    position: absolute;
    bottom: 10px;
    left: 10px;
}
.attribution {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.appearance-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: right;
}
.theme-selector {
    display: block;
}
.toggle-switch {
    display: block;
    position: relative;
    top: 10px;
    right: 50px;
}
.toggle-checkbox {
    display: none;
}
.toggle-label {
    width: 50px;
    height: 25px;
    background-color: #777777;
    border-radius: 25px;
    position: absolute;
    cursor: pointer;
    transition: background-color 0.3s;
}
.toggle-label::after {
    content: '';
    width: 23px;
    height: 23px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: transform 0.3s;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: royalblue;
}
.toggle-checkbox:checked + .toggle-label::after {
    transform: translateX(25px);
}
.toggle-label .fa-moon {
    position: absolute;
    top: 5px;
    left: 30px;
    color: white;
}
.toggle-label .fa-sun {
    position: absolute;
    top: 5px;
    left: 5px;
    color: yellow;
}
canvas {
    display: none;
}

/* Theme: Professional */
body.professional {
    display: inline;
}
html:has(body.professional) {
    display: inline;
}
.professional .content {
    display: grid;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 100px);
    min-height: 300px;
    margin: 50px;
}
.professional .links {
    min-height: 50vh;
}
.professional .links li{
    display: block;
}
.professional .links li a {
    font-weight: bolder;
    text-decoration: underline;
}
.professional .links li .description {
    display: block;
    position: relative;
    bottom: inherit;
    text-align: left;
    width: auto;
    left: 0;
    margin-left: 50px;
}
.professional .button {
    width: auto;
    text-align: left;
    border-radius: 0;
    margin: 0;
    border-width: 1px;
}
.professional .button.linkedin::before {
    background: linear-gradient(to right, black, black, #2867b2);
}
.professional .button.github::before {
    background: linear-gradient(to right, black, black, #6e5494);
}
.professional .button.ampersat::before {
    background: linear-gradient(to right, black, black, #007700);
}
.professional .button.familydj::before {
    background: linear-gradient(to right, black, black, red);
}
.professional.lightmode .button.linkedin::before {
    background: linear-gradient(to right, white, white, #2867b2);
}
.professional.lightmode .button.github::before {
    background: linear-gradient(to right, white, white, #6e5494);
}
.professional.lightmode .button.ampersat::before {
    background: linear-gradient(to right, white, white, #007700);
}
.professional.lightmode .button.familydj::before {
    background: linear-gradient(to right, white, white, red);
}

/* Theme: Grid */
body.grid {
    display: inline;
    font-family: 'Orbitron', Arial, Helvetica, sans-serif;
}
html:has(body.grid) {
    display: inline;
}
.grid .content {
    display: grid;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 100px);
    min-height: 300px;
    margin: 50px;
}
.grid h1 {
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.8);
}
.grid.lightmode h1 {
    background-color: rgba(255, 255, 255, 0.8);
}
.grid select {
    font-family: 'Orbitron', Arial, Helvetica, sans-serif;
}
.grid .links {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 10px;
}
.grid .links li {
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    grid-column: 1 / 3;
    align-items: center;
}
.grid .links li a {
    grid-column: 1;
    box-shadow: 4px 4px 6px black;
}
.grid .links li .description {
    display: block;
    position: relative;
    bottom: inherit;
    text-align: left;
    width: auto;
    left: 0;
    margin-left: 0px;
    grid-column: 2;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}
.grid.lightmode .links li .description {
    background-color: rgba(255, 255, 255, 0.5);
}
.grid .links li .description p {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0px 5px;
}
.grid.lightmode .links li .description p {
    background-color: rgba(255, 255, 255, 0.8);
}
.grid .button {
    width: auto;
    height: fit-content;
}
.grid.lightmode .button {
    background-color: white;
}
.grid #TheGrid,
.grid #LightCycles,
.grid #TheGridEffects {
    display: block;
}

/* Theme: Simple */
.simple .links li {
    display: inline-flex;
}
.simple .toggle-checkbox:checked + .toggle-label {
    background-color: #777777;
}
.simple .toggle-label .fa-sun {
    color: white;
}
.simple .logo-container {
    width: 25px;
    height: 25px;
}

/* Theme: Night and Day */
body.night-and-day {
    background: linear-gradient(to bottom, black, black, black, black, #003300);
}
body.night-and-day.lightmode {
    background: linear-gradient(to bottom, black, black, black, #003300, #007700);
}
.night-and-day #starfield,
.night-and-day #clouds {
    display: block;
}
#starfield,
#clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: -1;
}
#clouds {
    background-color: skyblue;
    transition: opacity 0.5s ease;
}
body:not(.lightmode) #clouds {
    opacity: 0;
}
body.lightmode #clouds {
    opacity: 1;
}
.night-and-day h1 {
    font-size: 3em;
    font-family: 'Londrina Outline', Arial, Helvetica, sans-serif;
}
.night-and-day .links li .description {
    width: calc(100vw - 100px);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
}
.night-and-day.lightmode .links li .description {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}