.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;
}

@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: #000001;
    /*font-family: NectoMono;*/
    font-family: Inter;
    font-size: 1.7rem;
    font-weight: 400;
    border: 2px solid #000001;
    border-radius: 30px;
    -webkit-filter: drop-shadow(2px 2px 0px #000001);
    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: rgb(255, 255, 47);
    border-bottom: solid 2px white;
}

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

#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: #00000100;
    color: #fff;
    border: 4px solid #fff;
}

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

/* Adding list indentation and styles for ul and ol */
#main ul,
#main ol {
    padding-left: 1em;
    /* Adds indentation to both unordered and ordered lists */
    margin-left: 1em;
    /* Adjust the margin if needed */
}

/* Ensuring bullets for ul 
#main ul {
    list-style-type: disc; 
}*/
p {
  text-indent: 2em; /* Adjust the value as needed (1em = ~16px) */
  margin: 0; /* Optional: Remove default margins if needed */
  padding: 0; /* Optional: Remove default padding if needed */
}

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;
    /* Bullets for unordered list items */
}

/* 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: #000001;
  color: #000001;
  display: flex;
  justify-content: center;
}


/* Navbar container */
.navbar {
  padding: 0 1em;
  margin: 0;
  background-color: #000001;
  color: #000001;
  border-bottom: solid 1px white;
  overflow: hidden;
  justify-content: center;
  display: flex;
  font-size: clamp(1rem, 2vw, 4.4rem);
  font-family: NectoMono;
  width: 100vw;
  height: auto;
}


.navbar a {
  --s: 0.1em;
  /* the thickness of the line */
  --c: #000001;
  /* 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: 100vw;
  display: block;
}

.navbar a:hover {
  --_p: 100%;
}

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

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

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


/* 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;
}

.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: #000001;
  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: #000001;
  font-size: 3vw;
}

#wrapper h2 {
  color: rgb(200, 200, 0);
  font-size: 1.2em;
}

#wrapper h3 {
  color: rgb(200, 200, 0);
  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 000001;
  /* background: #ade0ff;
  Ensures padding is included within the height/width */

  /*background-image: url('/images/people_bg.jpg');*/
  background: #00000100;
  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: #000001;*/
  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: #000001;
	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: #000001;
}

#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: #000001;*/
}/* 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 #000001;
	line-height: 3.65em;
	overflow: hidden;
	text-align: center;
	text-indent: 3.75em;
	white-space: nowrap;
	background: #000001;

}

.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: #000001;
}

@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: #000001;
	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: #000001;
  border: solid #000001 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: #000001;
  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: #000001;
  padding: 1rem 0;
  border-radius: 3rem;
}

@media (min-width: 768px) {
  .about-us {
    margin: 2rem  auto;       /* Center it horizontally */
    max-width: 800px;     /* Limit width on desktop */
    padding: 2rem 1rem;   /* 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;
}
