@font-face {
  font-family: notosans; 
  src: url(assets/NotoSerif.ttf) format('truetype'); 
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: notosans;
    margin: 0;
}

body.light-mode {
    background-color: #ffffff;
    color: #000000
}

body.dark-mode {
    background-color: #000000;
    color: #ffffff
}

#content {
    margin: 8px;
}

h1 {
    font-size: 2em;
    font-weight: bold;
    font-variant: small-caps;
}

p#abouttext {
    font-size: 1.6em;
}

ul#floatbox  {
    position: sticky;
    top: 0;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color:  #ffd4aa;
    display: flex;
    flex-wrap: wrap;
    z-index: 20;
}

ul#floatbox li.icon a img {
    width: 1.5em;
    height: 1.5em;

}

body.light-mode li.icon a img {
    filter: invert(0%)
}


body.dark-mode li.icon a img {
    filter: invert(100%)
}
body.light-mode ul#floatbox {
    background-color:  #ffd4aa;
    box-shadow: 0 0 12px#ff4400ba
}

body.dark-mode ul#floatbox {
    background-color:  #012c4a;
    box-shadow: 0 0 12px #c2ddffee
}

ul#floatbox li a {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.1s;
    z-index: 21;
    font-size: 1em;
}

ul#floatbox li {
    flex-grow: 1;
    text-align: center;
    z-index: 21;
}

ul#floatbox li.icon {
    display: none;
}

@media screen and (max-width: 600px) {
  ul#floatbox {
    flex-direction: column;
  }

  ul#floatbox li:not(.icon) {
    display: none;
  }

  ul#floatbox li.icon {
    display: block;
    text-align: right;
  }

  ul#floatbox.responsive {
    position: sticky;
  }

  ul#floatbox.responsive li:not(.icon) {
    display: block;
    text-align: left;
  }

  ul#floatbox.responsive li.icon {
    position: sticky;
    right: 0;
    top: 0;
  }
}

body.light-mode ul#floatbox li a {
    color: black;
}

body.dark-mode ul#floatbox li a {
    color: white;
}
body.light-mode ul#floatbox li a:hover {
  background-color:#ffbb5c;
  text-shadow: 0px 0px 5px #ff4400ba;
}

body.dark-mode ul#floatbox li a:hover {
  background-color: #519bcf;
  text-shadow: 0px 0px 5px #c2ddffee;
}

#about {
    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
img#profilepic {
    width: 8em;
    height: 8em;
    display: block;
    margin: 8px;
    
}

#welcome-text {
    padding-top: 1em;
    font-size: 2em;
    text-align: center;
    letter-spacing: 0.1em;
  
}
body.light-mode #welcome-text {
    color: black;
    text-shadow: 0px 0px 5px #ff4400ba;
}

body.dark-mode #welcome-text {
    color: white;
    text-shadow: 0px 0px 5px #8fc1ffe7;
}

#welcome {
    height: 8em;

}

body.light-mode #welcome {
    background-color: #ffd4aa;
}

body.dark-mode #welcome {
    background-color: #012c4a;
}

#credits {
    text-align: center;
    font-size: 0.8em;
    padding: 1em;
}

#credits a {
    text-decoration: none;
}

body.light-mode #credits a {
    color: #000000;
}

body.dark-mode #credits a {
    color: #ffffff;
}

.contact-entry img {
    height: 2em;
    width: 2em;
    padding-right: 0.5em
}

body.light-mode .contact-entry img {
    filter: invert(0%);
}
body.dark-mode .contact-entry img {
    filter: invert(100%);
}

.contact-entry {
    padding-left: 4em;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding-bottom: 0.5em;
}

.decorationless-link{
    text-decoration: none;
}
body.light-mode .decorationless-link {
    color: black;
    
}

body.dark-mode .decorationless-link{
    color: white;
}

body.light-mode #site-visit {
    color: black;
    
}

body.dark-mode #site-visit{
    color: white;
}

.project-entry h3 a{
    color: black;
    text-decoration: none;
    
}

.section {
    padding-top: 8em;
}

#project-list {
    display: flex;
    align-items: center;
    flex-direction: row; 
    flex-wrap: wrap;
    justify-content: flex-start;
}

#project-list .project-entry {
    padding: 1em;
    margin: 1em;
    border: 1px solid ;
    width: 16em;
    height: 50%;
    flex-grow: 1;
    cursor: pointer;
}

body.light-mode #project-list .project-entry {
    border-color: rgba(0, 0, 0, 0.574)
}

body.dark-mode #project-list .project-entry {
    border-color: rgba(255, 255, 255, 0.574)
}



#dark-mode-button {
    width: 64px;
    height: 64px;
    z-index: 30;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    
}

body.light-mode #dark-mode-button {
    filter: drop-shadow(0 0 12px #ff4400ba)
}

body.dark-mode #dark-mode-button {
    filter: drop-shadow(0 0 12px #8fc1ffe7)
}

#extra-stuff {
    text-align: center;
}

.extra-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 1em;
}

.extra-photo {
    flex: 1 1 18em;
    max-width: 24em;
}

#whiley {
    width: 100%;
    height: auto;
    padding-top: 1em;
    
}

.music-player-card {
    flex: 1 1 18em;
    max-width: 24em;
    padding: 1.2em;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.light-mode .music-player-card {
    background: #fff7ef;
    border-color: rgba(0, 0, 0, 0.2);
}

body.dark-mode .music-player-card {
    background: #012c4a;
    border-color: rgba(255, 255, 255, 0.2);
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    margin-top: 1em;
}

.music-controls button {
    border: none;
    border-radius: 50%;
    padding: 0.7em 1.1em;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

body.light-mode .music-controls button {
    background-color: #ff8c42;
    color: white;
}

body.dark-mode .music-controls button {
    background-color: #519bcf;
    color: white;
}

#projects {
    text-align: center;
}


#footer {
    text-align: center;

}
body.light-mode #footer a {
    color: black;
}

body.dark-mode #footer a {
    color: white;
}