.conversation {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.sender {
    align-items: flex-end;
    align-self: flex-end;
}

.receiver {
    align-items: flex-start;
    align-self: flex-start;
}

.bubble {
    padding: 0.75rem 1rem;
    border-radius: 1.125rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.sender .bubble {
    background-color: #0084ff;
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.receiver .bubble {
    background-color: #e5e5ea;
    color: black;
    border-bottom-left-radius: 0.25rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    .message {
        max-width: 90%;
    }
    
    .bubble {
        padding: 0.5rem 0.75rem;
        border-radius: 1rem;
    }
}

/* Optional: Add some subtle animation */
.message {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Load the custom font */
@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

@font-face {
    font-family: 'NulshockBold';
    src: url('/fonts/nulshock_bd.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ChineseRocksHalf';
    src: url('/fonts/chinese_rocks_rg_halfheight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ChineseRocks';
    src: url('/fonts/chinese_rocks_rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NofileFont';
    src: url('/nofile') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap');

/* Adjust vertelements to display columns */
.vertelements {
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: space-between;
    /* Distribute space between elements */
    align-items: flex-start;
    /* Align items at the top of the container */
    width: 100%;
    text-align: left;
}

/* Vertical text styling for English */
.vertical-text.english {
    /*font-family: 'Bungee', sans-serif;
    font-family: 'Noto Sans JP', sans-serif;*/
    font-family: 'ChineseRocksHalf', sans-serif;
    font-size: 3.4em;
    writing-mode: vertical-lr;
    text-orientation: upright;
    /* transform: scaleY(0.5); Compresses vertically */
    line-height: 0.85;
    letter-spacing: -0.82em; /*Slightly reduces space between characters */
    white-space: normal;
    overflow-wrap: break-word;
    flex-grow: 1;
    /* Allows English to take up available space on the left */

}

/* Vertical text styling for Whitespace */
.vertical-text.whitespace {
    flex-grow: 1;
    /* Expands to fill the middle space */
}

/* Vertical text styling for Chinese */
.vertical-text.chinese {
    font-family: 'ChineseRocks', sans-serif;
    font-size: 2em;
    writing-mode: vertical-rl;
    text-orientation: upright;
    
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: break-word;
    flex-grow: 0;
    /* Chinese text remains at the right */
}/* Button */
/* main */

/* Main Section Styles */
#main {
    padding: 2em 1em;
    background: #a0d6ff;
    cursor: default;
    max-width: 100%;
    text-align: center;
    word-break: break-word;
    
    width: 100%;
    color: #002a61;
    /*font-family: NectoMono;*/
    font-family: Inter;
    font-size: 1.7rem;
    font-weight: 400;
    border: 2px solid #002a61;
    border-radius: 30px;
    -webkit-filter: drop-shadow(2px 2px 0px #002a61);
    filter: drop-shadow(0px 0px 16px #000000);
    box-sizing: border-box;
    /* Include padding and border in width calculation */

}

#main.horizontal {
    padding: 2em 2em;
    width: 100%;
    /* Take full width in horizontal layout */
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    /* Prevent horizontal overflow */
    overflow-y: hidden;
    /* Prevent vertical overflow */
}

#main img {
    display: block;
    /* Ensures the image is treated as a block-level element */
    width: 90%;
    /* Sets the image width to 90% of the container's width */
    margin: 0 auto;
    /* Centers the image horizontally */
}

@media screen and (max-width: 800) {
    #main {
        padding: 0em 2em 2.5em 2em;
        width: 100%;
    }
}

#main.dark-mode title {
    color: rgb(255, 255, 255);
    border-bottom: solid 2px white;
}

#main.dark-mode a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
}

#main.dark-mode h1 {
    color: rgb(255, 255, 255);
    border-bottom: solid 2px white;
}

#main.dark-mode h2 {
    color: #87CEEB;
    border-bottom: solid 2px white;
}

#main.dark-mode h3 {
    color: #b8e7ff;
    border-bottom: solid 1px rgba(255, 255, 255, 0.45);
}

#main.dark-mode h4 {
    color: rgb(255, 103, 255);
    border-bottom: solid 2px white;
}

#main.dark-mode h5 {
    color: rgb(94, 242, 94);
    border-bottom: solid 2px white;
}

#main.dark-mode h6 {
    color: green;
    border-bottom: solid 2px white;
}

#main.dark-mode {
    transition: opacity 1s ease, transform 1s ease;
    background: #002a6100;
    color: #fff;
    border: 4px solid #fff;
}

#main.dark-mode ::selection {
  background: #ffffff; /* Dark blue background */
  color: #002a61;      /* White text */
}

/* Adding list indentation and styles for ul and ol */
#main ul,
#main ol {
    margin: 0.4rem 0 1rem 1.2rem;
    padding-left: 0.8rem;
}

/* Ensuring bullets for ul 
#main ul {
    list-style-type: disc; 
}*/
#main p {
  text-indent: 0;
  line-height: 1.45;
  margin: 0.35rem 0 0.55rem;
  padding: 0;
}

b, strong, .bold-text {
  color: #ffffdb; /* Bright yellow */
  font-weight: bold; /* Ensures it stays bold */
}

/* Styling the li elements */
#main li {
    list-style-type: disc;
    margin: 0.22rem 0;
    line-height: 1.35;
}

/* Additional styling for ordered list items */
#main ol {
    list-style-type: decimal;
    /* Ensures numbers for ordered lists */
}


#main.longform {
    text-align: left;
}/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-nav {
  height: auto;
  background-color: #002a61;
  color: #002a61;
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
}


/* Navbar container */
.navbar {
  padding: 0.2rem 0.75rem;
  margin: 0 auto;
  background-color: #002a61;
  color: #002a61;
  border-bottom: solid 1px white;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr);
  align-items: center;
  font-size: clamp(1rem, 2vw, 4.4rem);
  font-family: NectoMono;
  width: 100%;
  height: auto;
  gap: 0.6rem;
  overflow: visible;
}

/* Mobile */
@media (max-width: 600px) {
  .navbar {
    font-size: 0.8rem;
  }
}

.nav-primary,
.nav-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-projects {
  position: relative;
  flex: 0 0 auto;
}

.nav-projects-menu {
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 50%;
  z-index: 1300;
  display: none;
  width: max-content;
  min-width: 16rem;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.45rem;
  background: #002a61;
  box-shadow: 0 0.7rem 1.8rem rgba(0, 16, 38, 0.35);
  transform: translateX(-50%);
}

.nav-projects:hover .nav-projects-menu,
.nav-projects:focus-within .nav-projects-menu,
.nav-projects.is-open .nav-projects-menu {
  display: block;
}

.navbar .nav-projects-menu a,
.navbar.dark-mode .nav-projects-menu a {
  display: block;
  width: 100%;
  padding: 0.62rem 0.75rem;
  border-radius: 0.3rem;
  background: transparent;
  color: #ffffff;
  font-family: NectoMono;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.navbar .nav-projects-menu a:hover,
.navbar .nav-projects-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: -2px;
}

.nav-primary {
  grid-column: 2;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-actions {
  grid-column: 3;
  justify-content: flex-end;
  gap: 0.45rem;
}

.navbar a,
.nav-primary a,
.nav-actions a {
  --s: 0.1em;
  /* the thickness of the line */
  --c: #002a61;
  /* the color */

  color: #0000;
  padding: .5em .5em;
  text-align: center;
  padding-bottom: .5em;
  padding-left: 0em;
  padding-right: 0em;
  background:
    linear-gradient(90deg, var(--c) 50%, #000 0) calc(100% - var(--_p, 0%))/200% 100%,
    linear-gradient(var(--c) 0 0) 0% 100%/var(--_p, 0%) var(--s) no-repeat;
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  transition: 0.5s;
  font-family: NectoMono;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  flex: 0 0 auto;
  display: block;
  padding: 0.7rem 0.85rem;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .navbar {
    row-gap: 0.1rem;
    padding: 0.28rem 0.45rem;
  }

  .navbar a,
  .nav-primary a,
  .nav-actions a {
    padding: 0.55rem 0.62rem;
    font-size: 0.93rem;
  }
}

.navbar a:hover,
.nav-primary a:hover,
.nav-actions a:hover {
  --_p: 100%;
}

.navbar.dark-mode a,
.navbar.dark-mode .nav-primary a,
.navbar.dark-mode .nav-actions a {
  --c: #ffffff;
  /* Set the color to white in dark mode */
  color: white;
  /* Set text color to white */
}

.navbar a.nav-login-button,
.nav-actions a.nav-login-button {
  margin-left: 0;
  padding: 0.48rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  background: #ffffff;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #002a61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  line-height: 1;
}

.navbar a.nav-login-button:hover,
.nav-actions a.nav-login-button:hover {
  background: #f4f8ff;
  color: #002a61;
}

.navbar.dark-mode a.nav-login-button,
.navbar.dark-mode .nav-actions a.nav-login-button {
  color: #002a61;
}

.navbar a.nav-account-link,
.nav-actions a.nav-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  box-shadow: 0 0 0 1px rgba(0, 42, 97, 0.18);
  overflow: hidden;
  line-height: 1;
}

.navbar a.nav-account-link:hover,
.nav-actions a.nav-account-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-account-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #002a61;
  font-family: NectoMono;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.login-modal[hidden] {
  display: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 38, 0.58);
}

.login-modal__panel {
  position: relative;
  width: min(100%, 24rem);
  background: #ffffff;
  color: #002a61;
  border: 1px solid rgba(0, 42, 97, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 16, 38, 0.24);
  padding: 1rem;
  outline: none;
}

.login-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.login-modal__header h2 {
  margin: 0;
  font-family: NectoMono, system-ui, sans-serif;
  font-size: 1.25rem;
  color: #002a61;
}

.login-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 42, 97, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #002a61;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.login-modal__options {
  display: grid;
  gap: 0.65rem;
}

.login-modal__option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #002a61;
  border-radius: 6px;
  background: #002a61;
  color: #ffffff;
  font-family: NectoMono, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}

.login-modal__option:hover {
  background: #073b7d;
}

.login-modal__option--secondary {
  background: #ffffff;
  color: #002a61;
}

.login-modal__option--secondary:hover {
  background: #f4f8ff;
}

@media (max-width: 700px) {
  .navbar {
    grid-template-columns: 1fr;
  }

  .nav-primary {
    grid-column: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.1rem;
  }

  .nav-actions {
    grid-column: 1;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .nav-projects-menu {
    right: 0;
    left: auto;
    transform: none;
  }

}

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

button:focus {
  outline: none;
  background-color: #002a61;
}


/* Materialize overrides */
@media only screen and (max-width: 800px) {
  .navbar {
    line-height: initial;
  }
}.event-card {
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    display: flex;
    align-items: center; /* Center items vertically */
    gap: 20px; /* Space between image and text */
}

.event-card-left {
    flex-direction: row; /* Image on the left, text on the right */
}

.event-card-right {
    flex-direction: row-reverse; /* Image on the right, text on the left */
}

.event-content {
    flex: 1; /* Allow text content to take up remaining space */
}

.event-title {
    font-size: 1.5em;
    margin: 0 0 10px;
}

.event-title a {
    text-decoration: none; /* Remove underline from links */
    transition: color 0.3s;
}

.event-title a:hover {
    color: #0056b3;
}

.event-subtitle {
    font-size: 1.2em;
    margin: 15px 0 5px;
}

.event-date,
.event-location {
    font-size: 1em;
    margin: 0 0 10px;
    line-height: 1.5;
}

.event-description {
    font-size: 1em;
    margin: 0 0 10px;
    max-height: 60px; /* Adjust based on your needs */
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

/* Mobile */
@media (max-width: 600px) {
  .event-description {
      font-size: 0.6em;
  }
}



.event-description.collapsed {
    max-height: 60px; /* Adjust based on your needs */
}

.event-description.expanded {
    max-height: none;
}

.see-more {
    color: #007bff;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none; /* Remove underline from "see more" links */
}

.see-more:hover {
    text-decoration: underline;
}

.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.event-actions button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.event-actions button:hover {
    background-color: #0056b3;
}

.event-image {
    border-radius: 2rem; /* Rounded corners */
    width: 300px; /* Fixed width for the image */
    height: 200px; /* Fixed height for the image */
    flex-shrink: 0; /* Prevent the image from shrinking */
    overflow: visible; /* Ensure the image is not clipped */
}

.event-image img {    
    height: 100%;
    border-radius: 2rem; /* Match the container's border radius */
    object-fit: scale-down; /* Ensure the image fills the container */
    display: block; /* Remove extra space below the image */
}@import url(fontawesome.min.css);

/* # Webfonts */
@font-face {
  font-family: NectoMono;
  src: url(../fonts/CLT-NectoMono/web/NectoMono-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: MaziusDisplay;
  src: url(../fonts/CLT-MaziusDisplay/web/MaziusDisplay-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: Mattone;
  src: url(../fonts/CLT-Mattone/web/Mattone-Black.woff2) format("woff2");
  font-weight: 900;
  font-style: normal;
}

.font-Mattone-regular {
  font-family: "Mattone";
  font-weight: 400;
}

.font-Mattone-bold {
  font-family: "Mattone";
  font-weight: 700;
}

.font-Mattone-black {
  font-family: "Mattone";
  font-weight: 900;
}

.font-MaziusDisplay-bold {
  font-family: "MaziusDisplay";
  font-weight: 700;
}

.font-NectoMono-regular {
  font-family: "NectoMono";
  font-weight: 400;
}

::selection {
  background: #002a61;
  color: #fff;
}

/* Button */

#wrapper .title {
  position: relative;
  display: block;
  margin-bottom: 1em;

  font-family: "Mattone";
  letter-spacing: 0em;
  font-size: 2em;
  color: #fff;
}

.type-wrapper {
  /*This part is important for centering*/
  display: grid;
  place-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.typing-demo {
  width: 13ch;
  animation: typing 2s steps(22), blink 0.5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid;
  font-family: monospace;
  font-size: 1.5em;
}

@keyframes typing {
  from {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

#wrapper h1,
#wrapper h2,
#wrapper h3,
#wrapper h4,
#wrapper h5,
#wrapper h6 {
  line-height: 1.2;
  margin: 1.5em 0 0.5em 0;
  font-family: "Mattone";
  font-weight: 400;
  border-bottom: solid 2px black;
}


#wrapper h1 {
  color: #002a61;
  font-size: 3vw;
}

#wrapper h2 {
  color: rgb(0, 0, 255);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin: 1.25rem 0 0.6rem;
}

/* Mobile */
@media (max-width: 600px) {
  #wrapper h1 {
    font-size: 5vw;
  }
}

#wrapper h3 {
  color: rgb(0, 72, 197);
  font-size: 1em;
}

#wrapper h4 {
  color: purple;
  font-size: 0.9em;
}

#wrapper h5 {
  color: green;
  font-size: 0.75em;
}

#wrapper h6 {
  color: green;
  font-size: 0.6em;
}

@media screen and (max-width: 800px) {
  #wrapper {
    padding: 4em 2em 2.5em 2em;
    width: 100%;
  }
}

/* Wrapper Section Fade-In Effect */
#wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  height: 100%;
  padding: 1em 15em;
  z-index: 2;
  border-bottom: solid 2px 002a61;
  /* background: #ade0ff;
  Ensures padding is included within the height/width */

  /*background-image: url('/images/people_bg.jpg');*/
  background: #002a6100;
  background-size: cover; /* Ensures the image covers the entire background */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
}

#wrapper.horizontal {
  padding: 2em 2em;
  /* Reduced padding for the horizontal layout */
  height: auto;
  /* Occupy full viewport height */
  overflow: hidden;
  /* Prevent any overflow that might cause scroll */
  overflow-y: hidden;
  /* Prevent vertical scrolling */
  overflow-x: auto;
  /* Allow horizontal expansion */
  flex-direction: row;
  /* Ensure content flows horizontally */
}

#wrapper.dark-mode {
  /*background: #002a61;*/
  border-bottom: solid 2px white;
}

/*
#wrapper:before {
  content: "";
  display: block;
}*/

@media screen and (max-width: 800px) {
  #wrapper {
    padding: 4em 2em 2.5em 2em;
    padding: 0.75em;
  }
}

/* Button styles */
#toggle-dark-mode {
  position: fixed;
  bottom: 15px;
  left: 20px;
  padding: 10px 20px;
  background-color: transparent;
  color: #fff;
  border-color: transparent;
  cursor: pointer;
  border-radius: 5px;
  z-index: 100;
}

#toggle-dark-mode:hover {
  background-color: #555;
}

#home-wrapper {
  max-height: 90%;
  /* Force the height to 60vh */
  position: relative;
  /* Ensure positioning context for contained elements */
}/* Footer */

#footer {
	align-self: flex-end;
	width: 100%;
	padding: 1.5em 0 0 0;
	color: #002a61;
	cursor: default;
	text-align: center;
}

#footer .copyright {
	margin: 0;
	padding: 0;

	list-style: none;
}

#footer .copyright li {
	display: inline-block;
	margin: 0 0 0 0.45em;
	padding: 0 0 0 0.85em;
	border-left: solid 1px rgba(255, 255, 255, 0.5);
	line-height: 1;
}

#footer .copyright li:first-child {
	border-left: 0;
}

/* Dark mode footer styling */
#wrapper.dark-mode #footer {
	color: #fff;
	/* Change the footer font color to white in dark mode */
}#body {
    display: flex;
    flex-direction: column;
    /* Arrange elements in a column */
    gap: 0;
    /* No space between elements */
    padding: 0;
    /* Remove any default padding on the body */
    margin: 0;
    /* Remove any default margin on the body */
    min-height: 100vh;
    /* Ensure it takes the full viewport height */
    box-sizing: border-box;
    /* Include padding/border in element dimensions */
    background-color: #002a61;
}

#body.horizontal {
    height: 100vh;
    /* Ensure it takes the full viewport height */
    min-height: 0px;
    /* Ensure it takes the full viewport height */

}



#html {
    padding: 0;
    margin: 0;
    overflow: hidden;
    min-height: 100vh;
    /*background-color: #002a61;*/
}/* header */
.logo {
	margin-bottom: 0em;
}

/* Icons */

.icons {
	cursor: default;
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.icons li {
	display: inline-block;
	padding: 0.25em 0.25em;
}

.icons li a {
	text-decoration: none;
	position: relative;
	display: block;
	width: 3.75em;
	height: 3.75em;
	border-radius: 100%;
	border: solid 0px #002a61;
	line-height: 3.65em;
	overflow: hidden;
	text-align: center;
	text-indent: 3.75em;
	white-space: nowrap;
	background: #002a61;

}

.icons li a:before {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	text-transform: none !important;
}

.icons li a:before {
	color: #fff;

}

.icons li a:hover:before {}

.icons li a:before {
	position: absolute;
	top: 0;
	left: 0;
	width: inherit;
	height: inherit;
	font-size: 1.85rem;
	line-height: inherit;
	text-align: center;
	text-indent: 0;
}

.icons li a:hover {
	border-color: #002a61;
}

@media screen and (max-width: 800) {

	.icons li a:before {
		font-size: 1.5rem;
	}

}.img-fluid {
	max-width: 40%;
	height: auto;
}

.card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 5px;

	background-color: #002a61;
	margin: 0px;
}

.circle-image {
	border-radius: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Ensures the image covers the container */
	display: block;
}

.card-image {
	position: relative;
	width: 250px;
	/* Adjust the width as needed */
	height: 250px;
	/* Adjust the height as needed */
	margin-bottom: 15px;
	/* Space between image and text */
	overflow: hidden;
	/* Ensure the image does not overflow */
}

.circle-image {
	border-radius: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Ensures the image covers the container */
}

.hover-image {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	width: 100%;
	height: 100%;
}

.card-image:hover .hover-image {
	opacity: 1;
}

.card-image:hover img:not(.hover-image) {
	opacity: 0;
}

.imageBox {
	position: relative;
	width: 250px;
	/* Ensure square dimensions */
	height: 250px;
	/* Ensure square dimensions */
	margin-bottom: 15px;
	/* Space between image and text */
}

.imageBox .hoverImg {
	position: absolute;
	left: 0;
	top: 0;
	display: none;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	/* Ensures hover image remains circular */
}

.imageBox:hover .hoverImg {
	border-radius: 50%;
	display: block;
}

.imageBox:hover .hoverImg {
	display: block;
}

.imageInn {
	position: absolute;
	width: 100%;
	height: 100%;
}

.social__container {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: row;
}

.social__link {
  background-color: transparent !important;
  /* color: transparent !important; */
}

.social__button {
  padding: 0 10px;
  height: 45px;
  border-radius: 12px;
  background-color: #002a61;
  border: solid #002a61 3px;
  box-shadow: #bdbdbd 0px 2px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.social__button:hover {
  background-color: yellow;
}

.social__icon {
  height: 60%;
}

/* DARK MODE */
#slackButton.dark-mode .social__button {
  background-color: white;
  color: #002a61;
  box-shadow: #b7b7b7b7 0px 2px 4px;
}

#calendar {
  width: 100% !important;
  max-width: 100% !important;
}

.container {
  padding: 0 15px !important;
}

.download-button {
  display: inline-block;
  margin: 2px auto;
  padding: 2px 2px;
  background-color: #00796b;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

.download-button:hover {
  background-color: #004d40;
}

.code-collective-events {
  margin: 0 0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.cc-event-card {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  justify-content: center;
  margin-bottom: 20px;
  max-width: 800px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cc-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 121, 107, 0.3);
}

.cc-event-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #2a2a2a;
}

.cc-event-card-content {
  justify-content: center;
  padding: 20px;
}

.cc-event-card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cc-event-card-date {
  color: #fff200;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.cc-event-card-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.cc-event-card-location {
  color: #999;
  font-style: italic;
  margin-bottom: 15px;
}

.cc-event-card-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.cc-event-card-link:hover {
  background-color: #004d40;
}
.about-us {
  margin: 2rem 0.5rem; /* Small side margins on mobile */
  background-color: #002a61;
  padding: 1.5rem 1.25rem;
  border-radius: 2rem;
}

/* About hero layout */
.about-us .hero {
  padding: 1rem 1.25rem 0;
}

.about-us .hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 0.25rem;
}

.about-us .hero-kicker {
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-indent: 0;
}

.about-us .hero-lede {
  text-indent: 0;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
}

.info-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.info-card p {
  text-indent: 0;
  line-height: 1.35;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
  width: min(64rem, calc(100% - 2rem));
  margin: 3rem auto;
}

.donation-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.donation-card p {
  text-indent: 0;
}

.donation-card__action {
  display: block;
  margin: 1.5rem 0 1rem;
  padding: 0.9rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.donation-card__action:hover,
.donation-card__action:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.donation-card__qr {
  display: block;
  width: min(18rem, 100%);
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.75rem;
}

.donation-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #002a61;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.donation-card__address {
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 1.05rem;
}

.project-grid .project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

#main.dark-mode .project-grid .project-card-link,
#main.dark-mode .project-grid .project-card-link:hover,
#main.dark-mode .project-grid .project-card-link:focus-visible,
#main.dark-mode .project-grid .project-card-link:visited {
  color: inherit;
  text-decoration: none;
}

.project-grid .project-card-link .info-card {
  height: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-grid .project-card-link:hover .info-card,
.project-grid .project-card-link:focus-visible .info-card {
  background: rgba(135, 206, 235, 0.2);
  border-color: rgba(135, 206, 235, 0.7);
  box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.3);
  transform: translateY(-2px);
}

.brand-page {
  max-width: 1100px;
  word-break: normal;
  overflow-wrap: normal;
}

#wrapper .brand-page p {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

#wrapper .brand-page h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
  overflow-wrap: normal;
}

#wrapper .brand-page h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1.25rem;
  align-items: center;
}

.brand-hero img {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-kicker {
  color: #87ceeb;
  font-family: NectoMono, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-section {
  margin-top: 2rem;
}

.brand-color-grid,
.brand-asset-grid {
  display: grid;
  gap: 1rem;
}

.brand-color-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.brand-color-card,
.brand-asset {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 1rem;
}

.brand-color-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.brand-swatch {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: var(--brand-swatch-color);
}

.brand-asset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-asset--wide {
  grid-column: span 2;
}

#wrapper .brand-color-card h3,
#wrapper .brand-asset h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

#wrapper .brand-color-card p,
#wrapper .brand-asset p {
  font-size: 0.95rem;
  line-height: 1.35;
}

.brand-asset-preview {
  display: grid;
  place-items: center;
  min-height: 10rem;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-color: rgba(0, 18, 42, 0.72);
  background-position: 0 0, 0 0.75rem, 0.75rem -0.75rem, -0.75rem 0;
  background-size: 1.5rem 1.5rem;
  overflow: hidden;
}

.brand-asset-preview img {
  display: block;
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  padding: 0.75rem;
}

.brand-asset-preview--logo img {
  width: min(100%, 15rem);
}

.brand-asset p,
.brand-color-card p {
  overflow-wrap: anywhere;
}

.kimi-page {
  max-width: 1180px;
  word-break: normal;
  overflow-wrap: normal;
}

.kimi-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
  gap: 1.25rem;
  align-items: stretch;
}

#wrapper .kimi-page h1 {
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
}

#wrapper .kimi-page h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.1;
}

#wrapper .kimi-page p,
#wrapper .kimi-page label,
#wrapper .kimi-page input,
#wrapper .kimi-page textarea {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.kimi-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.kimi-panel,
.kimi-status-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 1rem;
}

.kimi-status-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.kimi-status-dot {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a5332b;
  box-shadow: 0 0 0 5px rgba(165, 51, 43, 0.18);
}

.kimi-status-dot.is-live {
  background: #2d6048;
  box-shadow: 0 0 0 5px rgba(45, 96, 72, 0.2);
}

.kimi-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.kimi-form label {
  font-family: NectoMono, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kimi-form input,
.kimi-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 18, 42, 0.65);
  color: #fff;
  padding: 0.75rem;
  font-family: NectoMono, monospace;
}

.kimi-form textarea {
  min-height: 12rem;
  resize: vertical;
}

.kimi-form button,
.kimi-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.7rem;
  border: 1px solid rgba(135, 206, 235, 0.65);
  border-radius: 8px;
  background: rgba(135, 206, 235, 0.16);
  color: #fff;
  padding: 0.7rem 1rem;
  font-family: NectoMono, monospace;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.kimi-form button:hover,
.kimi-form button:focus-visible,
.kimi-open-link:hover,
.kimi-open-link:focus-visible {
  background: rgba(135, 206, 235, 0.28);
}

.kimi-message {
  min-height: 1.5rem;
  color: #87ceeb;
  overflow-wrap: anywhere;
}

.kimi-dashboard-panel {
  margin-top: 1rem;
}

.kimi-dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.kimi-dashboard-frame {
  width: 100%;
  height: min(78vh, 54rem);
  min-height: 34rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #f2efe6;
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero,
  .brand-asset-grid,
  .kimi-hero,
  .kimi-grid {
    grid-template-columns: 1fr;
  }

  .brand-asset--wide {
    grid-column: auto;
  }

  .kimi-dashboard-head {
    display: grid;
  }
}

@media (min-width: 768px) {
  .about-us {
    margin: 2rem  auto;       /* Center it horizontally */
    max-width: 900px;     /* Limit width on desktop */
    padding: 2rem 1.75rem;   /* Add more padding on desktop */
  }
}

#bg-video {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: 40vh;
  font-size: 2em;
}
