@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&display=swap');

@import url("https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css");

:root {
  --bg-dark: oklch(0.1 0 27);
  --bg-light: oklch(0.2 0 27);
  --text: oklch(0.96 0 27);
  --text-muted: oklch(0.76 0 27);
  --highlight: oklch(0.5 0 27);
  --border: oklch(0.4 0 27);
  --primary: oklch(0.66 0.18 27);
}

* {
  margin: 0;
  padding: 0;
}

body {
  background: var(--primary);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.125rem;
}

#page {
  width: 100%;
  max-width: 38rem;
  min-width: 15.625rem;
  background: var(--bg-dark);
  border: var(--text) solid 0.125rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  width: 92%;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-bottom: var(--highlight) solid 0.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#title, #to-be-continued {
  text-align: center;
} 

#title h2, #to-be-continued h2{
  margin-bottom: auto;
}

#banner {
  background: url("assets/banner.gif") center /cover no-repeat;
  height: 8rem;
  width: 100%;
  cursor: pointer;
}

#hero {
  position: relative;
  top: -2.6rem;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#avatarNnote {
  width: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
}


@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.spin{
  animation: spin 3s linear infinite;
}

#avatar {
  background-image: url("assets/avatar.png");
  background-size: cover;
  width: 6.25rem;
  height: 6.25rem;
  border: var(--bg-dark) solid 0.5rem;
  border-radius: 50%;
  cursor: pointer;
}

#navAvatar {
  background-image: url("assets/avatar.png");
  background-size: cover;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
}

#note {
  background: var(--bg-light);
  color: var(--text-muted);
  max-width: 13rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-top: 1px solid var(--highlight);
  border-radius: 1.5rem;
  user-select: none;
  cursor: pointer;
}

#dotin {
  background: var(--bg-light);
  height: 1rem;
  width: 1rem;
  border-top: 1px solid var(--highlight);
  border-radius: 50%;
  position: relative;
  top: 0.5rem;
  left: 1rem;
}

#dotout {
  background: var(--bg-light);
  height: 0.75rem;
  width: 0.75rem;
  border-left: 1px solid var(--highlight);
  border-radius: 50%;
  position: relative;
  top: 0.5rem;
  left: 0.25rem;
}

#plate {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
} 

#namePlate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#name a {
  font-size: 2rem;
  font-family: "Instrument Serif", serif;
  color: var(--text);
  text-decoration: none; 
  cursor: pointer;
}

#mailID {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: normal;
  cursor: pointer;
}

#badge {
  border: 0.125rem solid #FFF;
  border-radius: 50%;
  cursor: pointer;
}

address {
  width: 96%;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-top: 1px solid var(--highlight);
  border-radius: 50%;
  cursor: pointer;
}
  
address :hover,  nav :hover  {
  background: var(--primary);
  color: var(--bg-dark);
}

.iconoir-arrow-up-right {
  color: var(--text);
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  background: var(--bg-light);
  width: 84%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  border-top: 1px solid var(--highlight);
}

.cardTitle {
  color: var(--text);
  font-weight: bold;
}

.cardMore {
  text-align: end;
}

.cardMore p{
  color: var(--primary);
  font-weight: bold;
  margin-bottom: auto;
  text-decoration: none;
  cursor: pointer;
}

.friends {
  margin-bottom: 0.5rem;
}

.link {
  color: var(--text);
  text-decoration: none;
  font-weight: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.link p {
  margin-bottom: auto;
}

.project {
  display: flex;
  justify-content: start;
  align-items: center; 
  margin-top: 1rem; 
  gap: 1rem;
  text-decoration: none;
}

.pName {
  width: 90%;
  color: var(--text-muted);
  font-weight: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pName :hover {
  color: var(--text);
}

footer {
  text-align: center;
}

footer p {
  color: var(--text);
  margin-bottom: auto;
}

h1{
  color: var(--text);
  font-family: "Instrument Serif", serif;
  letter-spacing: 0.125rem;
}

h2 {
  color: var(--text);
  font-family: "Instrument Serif", serif;
  margin-bottom: 0.5rem;
  letter-spacing: 0.0625rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

a {
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
}

#popup {
  position: fixed;
  width: 38rem;
  height: 100%;
  background: rgba(5%, 5%, 5%, 0.7);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#popupAvatar {
  background: url("assets/avatar.png");
  background-size: cover;
  height: 16rem;
  width: 16rem;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

#popupBanner {
  background: url("assets/banner.gif") center /cover no-repeat;
  width: 100%;
  height: 12rem;
}