/* Main Stylesheet - style.css */

* {
  box-sizing: border-box;
}

/* Global Color Theme Variables */
:root {
	--text-color: #97aeb2;
	--accordion-title-color: #97aeb2;
	--website-background: #161616;
	--element-background: #1e1e1e;
	--header-text-color: #0097b2;
	--link-color: #0097b2;
	--link-hover-color: #fff;
	--filter-button-background: #2b2a2a;
	--filter-button-text: #97aeb2;
	--filter-button-active-text: #0097b2;
}

/* Base Body Styles */
body {
	font-family: 'AR One Sans', sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--website-background);
	color: var(--text-color);
}

/* Preload Styling */
#preload-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #161616;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: opacity 1s ease-out;
	opacity: 1;
}

/* Container Styles */
.container {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 20px;
	max-width: 1200px;
	margin: 20px auto;
}

/* Sidebar Styles */
#sidebar {
	flex: 0 0 250px;
	background-color: var(--element-background);
	padding: 20px;
	border-radius: 8px;
	max-height: fit-content;
	margin-left: 20px;
	margin-top: 39px;
}

#sidebar-links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
}

#sidebar-header {
	text-align: center;
	margin: 0;
}

#sidebar-subheader {
	text-align: center;
	margin: 0;
}

#sidebar-text {
	text-align: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 12px;
}

/* Custom Scrollbar - Handle */
::-webkit-scrollbar-thumb {
	background-color: #0097b2;
	border-radius: 6px;
	border: 3px solid #161616;
}

/* Custom Scrollbar - Track */
::-webkit-scrollbar-track {
	background-color: #1e1e1e;
}

/* Custom Scrollbar - Hover */
::-webkit-scrollbar-thumb:hover {
	background-color: #007b92;
}


/* Main Content Styles */
#main-content {
	flex: 1;
	max-width: calc(100% - 240px);
	margin: 20px auto;
	padding: 20px;
	background-color: var(--website-background);
}

/* Accordion Styles */
.accordion {
	margin-bottom: 10px;
	background-color: var(--element-background);
	border-radius: 4px;
	overflow: hidden;
}

.accordion-header {
	padding: 15px;
	color: var(--accordion-title-color);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.accordion-header-content {
	display: flex;
	align-items: center;
}

.accordion-arrow {
	font-size: 16px;
	transition: transform 0.3s ease;
}

.accordion-content {
	background-color: #1A1A1A;
	padding-left: 15px;
	padding-right: 15px;
	overflow: hidden;
	transition: max-height 0.3s ease;
	max-height: 0;
	border: 1px solid var(--element-background);
}

.accordion-content img,
.accordion-content video,
.accordion-content iframe {
  max-width: 100%; /* Ensures the media does not overflow its container */
}


.content-description {
	text-align: center;
}

/* Responsive image styles */
.community-banner {
	width: 100%;
	height: auto;
	max-width: 100%;
	margin-top: 15px;
	margin-bottom: 15px;
}

/* YouTube Embed Customization */
.ytplayer {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 720px;
	height: 405px;
}

/* Preview Image Customization */
.media-preview {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 720px;
	height: 405px;
}

/* Twitter1 Embed Customization, exactly 720 x 406 px */
.media-twitter1 {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 444px;
	aspect-ratio: 1.62 / 1;
}

/* Twitter2 Embed Customization, exactly 720 x 541 px */
.media-twitter2 {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 579px;
	aspect-ratio: 1.24 / 1;
}

/* Horizonal Rule Divider */
.dashed-divider {
	border: none;
	border-top: dashed 2px #97aeb2;
	margin: 15px 0;
}

/* Filter Styles */
.filter-category {
	margin-bottom: 10px;
}

.filter-header {
	background-color: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	padding: 10px;
	font-size: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	color: var(--header-text-color);
}

.arrow-indicator {
	font-size: 12px;
}

.filter-container {
	overflow: hidden;
	transition: max-height 0.3s ease;
	max-height: 0;
}

.filter-btn {
	margin: 5px;
	padding: 8px 10px;
	border: none;
	background-color: var(--filter-button-background);
	color: var(--filter-button-text);
	cursor: pointer;
	display: inline-block;
	border-radius: 5px;
}

.filter-btn.active {
	color: var(--filter-button-active-text);
}

/* Clear Filters Button Styles */
#clear-filters {
	width: 100%;
	padding: 8px 10px;
	border: none;
	background-color: var(--link-color);
	color: white;
	cursor: pointer;
	display: block;
}

/* Link Styles */
a {
	color: var(--link-color);
	text-decoration: none;
}

a:hover {
	color: var(--link-hover-color);
}

/* Social Buttons */

/* Social Buttons Container */
.social-container {
  display: flex;
  flex-wrap: wrap; /* Allows buttons to wrap onto the next line */
  gap: 10px; /* Space between buttons */
  margin-top: 15px;
  margin-bottom: 15px;
  justify-content: center; /* Center the buttons in the container */
}

/* Base style for all buttons */
.social-container a {
  flex: 1 1 auto; /* Allows buttons to grow and shrink */
  min-width: 120px; /* Minimum width of buttons */
  border-radius: 10px;
  font-family: 'AR One Sans', sans-serif;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.0);
  padding: 15px 30px;
  text-decoration: none;
  transition: 0.3s;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  text-align: center; /* Center the text inside the buttons */
  margin: 5px; /* Add some margin to avoid the buttons touching each other */
  border: 5px solid; /* Border for the button, color defined individually below */
}

/* Individual button styles */
.btn-website {
  color: #83de7b;
  border-color: #83de7b;
}

.btn-discord {
  color: #7289da;
  border-color: #7289da;
}

.btn-twitter {
  color: #1da1f2;
  border-color: #1da1f2;
}

.btn-twitch {
  color: #a49ce0;
  border-color: #a49ce0;
}

.btn-vrchat {
  color: #6fc8d6;
  border-color: #6fc8d6;
}

/* Hover state for all buttons */
.social-container a:hover {
  color: #fff;
  border-color: #fff;
}


/* Responsive Design for Tablets */
@media (max-width: 768px) {
	.container {
		flex-direction: column;
		align-items: center;
	}

	#sidebar,
	#main-content {
		flex-basis: auto;
		width: auto;
    max-width: 95%;
    margin: 20px;
	}

  #main-content {
    padding: 0;
  }

	#clear-filters {
		width: 100%;
		margin-top: 10px;
	}
}

/* Responsive Design for Mobile */
@media (max-width: 600px) {
	#main-content {
		margin: 10px auto;
    width: 95%;
	}

	.accordion-header {
		padding: 10px;
	}
}