html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
  position: absolute;
  right: 1vh;
  bottom: 1vh;
  color: white;
  height: 128px;
}

.logo img {
  position: relative;
  float: right;
}

.logo h2 {
  position: relative;
  float: left;
  top: 45px;
  font-size: xx-large;
}

#cursor {
  animation: blink 800ms linear infinite;
}

@keyframes blink {
  0% {
    color: transparent;
  }
  50% {
    color: white;
  }
  100% {
    color: transparent;
  }
}
  
body {
    font-family: 'Arial', sans-serif;
    background: url(bg.jpg);
    background-size:cover;
    height: 100vh;
    overflow: none;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
  
.wrapper {
    display: flex;
    height: 100%;
}

.sidebar.collapsed {
    width: 200px;
}
  
.sidebar {
    width: 55px;
    background: linear-gradient(to right, rgba(128, 0, 128, 0.4), transparent);
    backdrop-filter: blur(5px);
    padding-top: 20px;
    transition: width .5s;
    z-index: 1;
    height: 100%; 
    overflow: hidden;
}

.def {
  transform: rotate(0deg);
}

.rotate {
  transform: rotate(180deg);
}
  
.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.nav button {
    display: flex;
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color .3s;
    cursor: pointer;
    white-space: nowrap;
    margin: 5px 0;
}
  
.nav button i {
    margin-right: 8px;
    font-size: 1.5em; 
    transition: transform 1s, font-size 0.5s;
}

.sButton:hover i {
  transform: rotate(-20deg);
  font-size: 1.6em;
}
  
.nav button:hover {
    background-color: rgba(128, 0, 128, 0.5);
}

.nav button p {
  margin-left: 15px;
}
  
.content {
    flex: 1;
    padding: 20px;
    position: relative;
    color: white;
    height: 100%; 
    overflow-y: auto;
    scroll-behavior: smooth;
}
  
.section {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
  
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: transparent; 
    overflow: hidden;
}
  
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
}
  
.particle::before {
    content: ''; 
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: tail 1s linear infinite;
}
  
@keyframes tail {
    0% {
      transform: scale(1);
      opacity: .5;
    }
    100% {
      transform: scale(0);
      opacity: 0;
    }
} 

a:link {
  text-decoration: none;
  color: white;
  transition: color .5s;
}

a:visited {
  text-decoration: none;
  color: white;
}

a:hover {
  color: #7a16c2;
}

legend {
  padding: 5px;
}

fieldset {
  padding: 10px;
  width: fit-content;
}

#skills li, #serverOffer li, #updates li, #gamesinfo li {
  margin-left: 20px;
}

progress[value] {
  height: 10px;
  background: #8d8d8d;
  border-radius: 50px;
  border: 0;
  appearance: none;
}

hr {
  margin-top: 10px;
  margin-bottom: 10px;
}

#smlinks, #wupdates {
  overflow-y: auto;
  display: grid;
}

#gamesinfo {
  display: grid;
  grid-template-columns: auto auto;
}

#smlinks fieldset, #gamesinfo fieldset, #wupdates fieldset {
  margin: 5px;
}

#gamesinfo button {
  cursor: pointer;
  height: 40px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background-color: rgba(128, 0, 128, 0.4);
  color: white;
  transition: background-color .5s;
}

#gamesinfo button:hover {
  background-color: rgba(128, 0, 128, 0.8);
}

#gamesinfo fieldset {
  width: 98%;
}

#list {
  border: solid 2px #7a16c2;
  border-radius: 5px;
}

#list button {
  width: 100%;
  height: 50px;
  border: 0;
  font-size: larger;
  color: white;
  background: linear-gradient(to right, rgba(128, 0, 128, 0.8), rgba(128, 0, 128, 0.4));
}

#list button:hover {
  background: linear-gradient(to right, rgba(128, 0, 128, 0.8), rgba(255, 255, 255, 0.4));
}

#read {
  border: solid 2px #7a16c2;
  border-radius: 5px;
  align-content: center;
  text-align: left;
  overflow-y: auto;
  max-height: 70vh;
  transition: all .5s;
}

#list button i {
  position: relative;
  float: left;
  padding-left: 30px;
}

#list button p {
  position: relative;
  float: right;
  padding-right: 30%;
}

.light {
  color: black;
  background-color: white;
}

.default {
  color: white;
  background-color: rgba(0, 0, 0, .5);
}

@media only screen and (max-width: 600px) {
  .section {
    padding: 10px;
    height: fit-content;
    min-height: 100vh;
  }
  #gamesinfo {
    display: block;
  }
  #list {
    height: 20%;
    margin-bottom: 15px;
  }
  #read {
    height: 80%;
    overflow: scroll;
  }
}

@media only screen and (min-width: 720px) {
  .section {padding: 50px;}
  #smlinks, #wupdates {grid-template-columns: auto auto;}
  #list {
    position: relative;
    float: left;
    width: 29%;
    height: 100%;
  }
  #read {
    position: relative;
    float: right;
    width: 70%;
    height: 100%;
    padding: 20px 20% 20px 20%;
  }
}