@font-face {
  font-family: 'Alkhemikal';
  src: url(./fonts/alkhemikal/Alkhemikal.ttf) format('truetype');
}

@font-face {
  font-family: "Marietta";
  src: url(./fonts/marietta_seven/marietta-seven.ttf) format('truetype');
}

@font-face {
  font-family: "GrapeSoda";
  src: url(./fonts/grapesoda_2/GrapeSoda.ttf) format('truetype');
font-weight: 900;
}

:root {
  --left-bar-width: 60px;
  --top-bar-height: 48px;
  --profile-card-height: 256px;
}

html{
/* scrollbar-gutter: stable both-edges; */
}

body {
  background-color: #431675;
  /*filter: url(./images/nnnoise.svg);*/
  font-family: "GrapeSoda", "Marietta", "Alkhemikal", Franklin Gothic Medium;
  color:honeydew;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0px;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: hidden;
  overflow-x: hidden; /* while I don't love this solution it is better than scrollbar-gutter: ;*/
}

.full-view-width {
  max-width:  100vw;
}

.full-width {
  max-width: 100%;
}



.outline {
  -webkit-text-stroke: 4px black; /* Width and color of the outline */
  paint-order: stroke fill;
}

footer {
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 8px 4px 4px 4px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/*PROFILE*/

.profile-card {
height: var(--profile-card-height);
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 4px 0px 4px 0px;
}

#profile-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;

}

#avatar-container {
  position: relative;
}

.edit-element-button {
  width: 24px;
  position: absolute;
  background-color: rgba(255,255,255, 0.4);
  top: -16px;
  right: -26px;
}

#bio {
  position: relative;
  overflow-wrap: anywhere;
  overflow-y: scroll;
}

#home-button {
  color: honeydew !important;
  background-color: #123456;
  padding: 0px 2px 0px 2px;
}
#home-button:hover {
  background-color: #265788;
}

#profile-content-container {
  height: calc(100dvh - var(--profile-card-height));
  padding: 0px 0px 0px 0px;
  box-sizing: border-box;
  width: 100dvw;
  background-color: #123456;
}

#profile-control-bar {
  padding: 0px 4px 0px 4px;
}

#profile-posts-container {
  align-items: center;
  display: flex;
  flex-direction: column;
}

/* DASHBOARD */

#top-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0px 4px 0px 4px;
  box-sizing: border-box;
  align-items: center;
  width: 100vw;
  overflow: hidden;
  background-color: blue;
  min-height: 48px;
  height: var(--top-bar-height);
}


#left-bar {
  display: flex;
  padding: 4px 0px 4px 0px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: var(--left-bar-width);
  min-width: var(--left-bar-width);
  max-height: 100dvh;
  overflow-y: hidden;
  overflow-x: hidden;
  gap: 24px;
  background-color: honeydew;
}

#main-sections{
  width: 100vw;
  height: calc(100dvh - var(--top-bar-height));
  display: flex;
}

#main-feed {
  width: 100%;
  max-height: 100%;
  overflow-y: scroll;
}

#feed-container {
  
}

#logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100vw;
  overflow: hidden;
  padding: 16px 16px 58px 16px;
  background-color: black;
  box-shadow: 0px 4px 30px 20px rgb(0,0,0, 1);
  
}



button {
  box-sizing: border-box;
  color: honeydew;
  text-decoration: none;
  border-radius: 2px;
  padding: 2px;
  background-color: darkslategray;
  transform-origin: center;
  border-color: darkslategray;
  border-style: none;
  font-family: "GrapeSoda";
}


button:active {
  animation: scaleDown 0.2s ease-out forwards;
}

button:hover {
  background-color: dimgrey;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Adds space between each input row */
  width: 100%; /* Spans the width of the login container */
  max-width: 400px; /* Prevents the form from becoming too wide */
}

.form-group {
  display: flex;
  flex-direction: column; /* Stacks label above input. Change to 'row' if you want them side-by-side */
  align-items: flex-start;
  width: 100%;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #ffffff; 
}

.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box; /* Ensures padding doesn't affect the 100% width calculation */
}

input:user-valid {
  border: 4px solid green;
  border-color: green;
}

input:user-invalid {
  border: 4px solid red;
  border-color: red;
}

.no-valid {
  border: none !important;
}


.faux-btn {
  color:honeydew;
  text-decoration: none;
  border-radius: 2px;
  padding: 2px;
  background-color: darkslategray;
  transform-origin: center;
}

.faux-btn:visited {
  color:honeydew;

}

.faux-btn:hover {
  background-color: dimgrey;
}

.faux-btn:active {
  animation: scaleDown 0.2s ease-out  forwards;
}

/* Post styling */

#feed-container {

}

.post-card {
  padding: 8px;
  background-color: navy;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.post-title-bar {
  display: flex;
  justify-content: space-between; 
  padding: 8px;
  background-color: #1b0c66;
}

.post-settings-button {
  z-index: 4;
}

.post-settings-menu {
  display: none;
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 8px;
  height: 200px;
  width: 100px;
  background-color: #123456;
}

.post-content {
  background-color: #292057;
  padding: 8px;
  overflow-wrap: anywhere;
}

.author-link {
  text-decoration: none;
  color: honeydew;
}

.author-link:visited {
  text-decoration: none;
  color: honeydew;
}

#draft-overlay {
  z-index: 10;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  left:0;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  background-color: rgba(0,0,0, 0.6);
}

#changelog-container {
  height: 80dvh;
  width: 80dvw;
  display: flex;
  flex-direction: column;
}

.overlay {
  z-index: 10;
  position: absolute;
  display: none;
  justify-content: center;
  align-items: center;
  left:0;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  background-color: rgba(0,0,0, 0.9); 
}

#draft-box-container {
  z-index: 11;
  display: flex;
  flex-direction: column;
  width: 60vw;
  height: 80vh; /* happy accident */
  background-color: honeydew;
}

#draft-text {
  resize: none;
  border-radius: 0px;
  box-sizing: border-box;
  width: 100%;
  height: 70vw;
}

#draft-controls {
  gap: 20px;
  display: flex;
  height: 10vw;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.version-container {
  display: flex;
  flex-direction: row;
  z-index: 8;
  position: absolute;
  right: 8px;
  bottom: 16px;
}

/* Notifications */

#notification-queue {
  display: column-reverse;
  position: absolute;
  top: 4px;
  right: 4px;
}

.notification {
  background-color: purple;
  color: honeydew;
  z-index: 99;
  padding: 2px;

}



@keyframes expand-left-bar {
  from {
    transform: scaleX(1);
  }
  to { transform: scaleX(2);}

}

@keyframes scaleDown {
  from {
    transform: scale(1);
  }
  to {transform: scale(.9);}
}
