/* You can either copy the below and paste it between style tags on your HTML page, OR you can copy this to a file and name it .css and link it from your HTML page. */
:root {
  --bg-color:##363740;
  --border-color:#FFE5F7;
  --subtitle-color:#FFE5F7;
  --link-color:#FFE5F7;
}
p {
  color:#FFE5F7;
}


html, body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: #a7efb8 url('hordebg.png') no-repeat center center / cover fixed;
}

body a {
  color:var(--link-color);
}
header {
  width:382px;
  height:400px;
  background-image:url('hordepfp.jpg');
  background-size:103%;
  border-radius: 25px;
}
.flex {
  display:flex;
}
.sidebar {
  background-color:var(--bg-color);
  max-width:250px;
  width:200px;
  height:100vh;
  border:1px solid var(--border-color);
  position:fixed;
}
article {
  background-color:var(--bg-color);
  border:1px solid var(--border-color);
  margin-top:20px;
  max-width:370px;
  margin-left:10px;
  margin-right:10px;
  
}
.subtitle {
  color:var(--subtitle-color);
  font-size:18px;
  font-weight:bold;
  border-bottom:2px solid var(--subtitle-color);
  margin-left:10px;
  margin-right:10px;
  text-align:right;
  padding-top:20px;
}
article > p {
  padding:10px;
  padding-left:20px;
}
.links {
  list-style-type:'+';
  font-size:16px;
  
}
.links li a {
  color:var(--link-color);
  letter-spacing:1px;
  text-decoration:none;
}
main {
  margin-top:-21px;
}
   section > p {
     padding:10px;
   }
footer {
  margin-left:20px;
  max-width:30%;
  font-size:12px;
}

 @media only screen and (max-width: 630px) {
   .sidebar {
     position:fixed;
     max-width:100%;
     width:100%;
     height:150px;
     display:flex;
     flex-direction:row;
     flex-wrap:wrap;
     overflow:hidden;
   }
   .flex {
     flex-wrap:wrap;
     flex-direction:row;
   }
   .right {
     order:1;
     width:100%;
   }
   .left {
     order:2;
   }
   section {
     display:flex;
     flex-wrap:wrap;
     width:120px;
   }
}

/*perhaps some dumb stuff*/

.container, .flex, .left, .right, .sidebar {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  margin: 0;
}


.container {
  max-width: 95vw; 
  width: 95%;
  margin: 0 auto; 
}


.flex {
  display: flex;
  flex-direction: row;
  gap: 1px;
  width: 100%;
}

.left {
  flex-shrink: 0;
  width: 500px; 
}


.right {
  flex-grow: 1; 
  width: auto;
}


.container, .flex, .left, .right, .sidebar {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  margin: 0;
}

.container {
  max-width: 95vw; 
  width: 95%;
  margin: 0 auto; 
}

.flex {
  display: flex;
  flex-direction: row;
  gap: 1px; 
  width: 100%;
}

.left {
  flex-shrink: 0;
  width: 500px; 
}

.right {
  flex-grow: 1; 
  width: auto;
}

/*sidebar*/
.sidebar {
  width: 100%;
  max-width: none; 
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  
  --sb-track-color: #363740;
  --sb-thumb-color: #ffe5f7;
  --sb-size: 12px;
}

.sidebar::-webkit-scrollbar {
  width: var(--sb-size);
}

.sidebar::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 9px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 9px;
  border: 2px solid #363740;
}

@supports not selector(::-webkit-scrollbar) {
  .sidebar {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

