/* General Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
}

html {
	width: 100vw;
}

body {
	background-color: #000;
	color: #C8E2CB;
	overflow-x: hidden;
	width: 100vw;
	height: 100vh;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.nohide {
	display: block !important;
}

.copyright-text {
	font-size: .5em;
}

button {
	padding: 10px;
	color: #C8E2CB;
	padding: 5px;
	background-color: #161d17;
	border-radius: 10px;
	border: 1px solid #C8E2CB;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

button:hover{
	background-color: #272e28;
}

h2.section-header{
	position: absolute;
	margin-top: -50px !important;
	left: 0;
	right: 0;
	text-align: center;
	margin: 0 auto;
	text-shadow: 2px 2px 3px #000000;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
	height: 100vh;
	background-image: url('./media/background/charity.jpg');
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    z-index: -10;
	overflow: hidden;
}

a {
	color: #99DCA1;
	text-decoration: none;
}

a:hover {
	color: #0DB221;
}

hr {
	margin: 10px 0 15px 0;
}

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	width: 100vw;
	height: 40px;
	background-color: #2C382E;
	display: flex;
	align-items: center;
	padding: 0 20px;
	z-index: 1000;
	border-bottom: 1px solid #00FF00;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
}

.navbar img {
	height: 30px;
	margin-right: 20px;
}

.navbar .menu {
	display: flex;
	margin-left: auto;
	list-style: none;
	white-space: nowrap;
}

.navbar .pagelink {
	margin: 0 10px;
}

.navbar .social-icons {
	margin: 0 4px;
}

.navbar .divider {
	border-left: 1px solid #C8E2CB;
	height: 20px;
	margin: 0 15px;
}

.mobile-nav {
    display: none;
}

#welcome {
	height: 260px;
	overflow: visible;
	width: 100vw;
}

#welcome.content-left{
	margin-top: 100px;;
}

.photo-style {
	border-radius: 10px;
	border: 3px solid #C8E2CB;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
	transition: transform 0.2s ease;
	width: inherit;
	max-width: 400px;
	margin-bottom: 20px;
}

.photo-style:hover {
	transform: translateY(-5px);
}

/* Hero Section */
.hero {
	position: relative;
	align-items: center;
	padding: 150px 0 0 0;
	overflow: hidden;
	width: 100vw;	
}

.background-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	max-height: 600px;
	z-index: -1;
    object-fit: cover;
	margin: 0;
	padding: 0;	
	overflow: hidden;
}

.hero h1 {
	font-size: clamp(18px);
}

.hero p {
	font-size: clamp(12px);
	color: #99DCA1;
}

.charity-card {
	text-align: left !important; 
	padding: 0px !important; 
	width: calc(33% - 17px) !important; 
	margin: 0 20px 20px 0 !important; 
	float: left !important; 
	max-height: 80px !important; 
	overflow: hidden !important;
}

#total-raised{
	width: calc(33% - 17px);
}

/* Style for the full-width banner within content-width */
.full-width-banner {
    width: 100%; /* Spans the full width of .content-width */
    color: #fff; /* Text color */
    text-align: center;
    padding: 20px; /* Padding for content */
    margin-bottom: 20px; /* Space between banner and the columns below */
    box-sizing: border-box;
}


/* Column Layouts */
.content-left,
.content-mid,
.content-right {
	padding: 10px;
	box-sizing: border-box;
}

.content-left,
.content-right {
	width: calc(50% - 15px);
}

.content-mid {
	width: calc(33.33% - 20px);
	margin: 0 10px;
}

.three-column .content-left,
.three-column .content-right {
	width: calc(33.33% - 20px);
}

.two-column .content-left {
	margin-right: 20px;
}

.two-column {
	display: flex;
	justify-content: space-between;
}

.three-column {
	display: flex;
	justify-content: space-between;
}

/* Centered Content Wrapper */
.content-width {
    width: 1090px;
    margin: 0 auto; /* Centers the content */
    padding: 0 40px; /* Horizontal padding for spacing */
    display: flex;
    justify-content: space-between;
}

/* Informational Sections */
.info-section {
    padding: 20px 40px; /* Reduced padding for tighter spacing */
    color: #C8E2CB;
    background-color: #2C382E;
    z-index: 1;
    overflow: hidden;
    margin: 0 auto;
	width: 100vw;
}

/* Section Wrapper */
.section-wrapper {
    width: 100vw;
    display: block;
    align-items: center;
    margin: 0;
    padding: 0;
	overflow: hidden;
}

.bottom-section {
}

/* Base Trapezoid Edge Styling */
.trapezoid-edge {
    background-image: url('./trapezoid_edge.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    width: 100%;
    height: calc(100vw / 10); /* Adjusted to reduce height */
    padding: 0;
	margin: -1px 0;
}

/* Specific Classes for Each Position */
.trapezoid-top-left {
    transform: rotateX(0deg) rotateY(0deg) scaleX(8); /* No rotation */
	-webkit-filter: drop-shadow(0px -6px 3px #000);
	filter: drop-shadow(0px -6px 3px #000);
}

.trapezoid-bottom-left {
    transform: rotateX(180deg) rotateY(0deg) scaleX(8); /* Flip vertically */
	-webkit-filter: drop-shadow(0px -6px 3px #000);
	filter: drop-shadow(0px -6px 3px #000);
}

.trapezoid-top-right {
    transform: rotateX(0deg) rotateY(180deg) scaleX(8); /* Flip horizontally */
	-webkit-filter: drop-shadow(0px -6px 3px #000);
	filter: drop-shadow(0px -6px 3px #000);
}

.trapezoid-bottom-right {
    transform: rotateX(180deg) rotateY(180deg) scaleX(8); /* Flip both vertically and horizontally */
	-webkit-filter: drop-shadow(0px -6px 3px #000);
	filter: drop-shadow(0px -6px 3px #000);
}

.stat-card {
	text-align: center; 
	width: 100%;
	padding: 20px;
	background-color: #161d17;
	border-radius: 10px;
	border: 3px solid #C8E2CB;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
	transition: transform 0.2s ease;
	max-width: 400px;
	margin-bottom: 20px;
	box-sizing: border-box;
	overflow: auto;
}

.cause-name {
    text-align: center;
    margin: 0 0 10px;
    font-size: 1.1em;
}

.cause-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cause-logo {
    width: 75px;
    height: auto; /* Automatically adjust height to maintain aspect ratio */
    margin: 0 10px;
}

.cause-total {
    font-size: 1em;
}

.stat-card:hover {
	transform: translateY(-5px);
}

/* Centered Content for Images */
.center-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	vertical-align: middle;
}

/* Videos */
.video-container {
	display: flex;
	flex-direction: column;
	align-items: left;
}

.vertical-video-wrapper,
.latest-short-container {
	position: relative;
	width: inherit;
	max-width: 380px;
	padding-top: 173%;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
	border: 3px solid #C8E2CB;
}

.vertical-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 10px;
}

.contact-image {
	max-height: 400px;
	width: auto;
}

/* Rotating Quotes Section */
.rotating-quotes-section {
	position: relative;
	display: flex;
	height: 300px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: -1;
	width: 100vw;
}

/* Video Styling */
.cubegrey-video-container {
    position: relative;
    width: 100vw;
    overflow: visible;
	height: inherit;
    z-index: -5;
	margin: 0;
	padding: 0;	
}

.cubegrey-video {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
	min-height: 440px;
	max-height: 840px;
    object-fit: cover;
	margin: 0;
	padding: 0;	
}

.rotating-quotes {
	text-shadow: 0px 0px 15px rgba(0,0,0,1), 0px 0px 15px rgba(0,0,0,1), 0px 0px 15px rgba(0,0,0,1), 0px 0px 15px rgba(0,0,0,1), 0px 0px 15px rgba(0,0,0,1);
	text-align: center;
	font-size: clamp(1em);
	z-index: 1;
	width: 100vw;
	color: white;
}

.rotating-quotes ul {
	list-style: none;
	padding: 0;
}

.rotating-quotes li {
	display: none;
}

.rotating-quotes li.active {
	display: block;
}

/* Footer */
.footer {
	background-color: #2C382E;
	padding: 20px;
	color: #C8E2CB;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	width: 100vw;
}

.footer-column {
	width: 30%;
	padding: 10px;
}

.footer-column h3 {
	font-size: clamp(1.2em);
	margin-bottom: 10px;
}

.footer-column p {
	font-size: clamp(0.9em);
	line-height: 1.5;
}

.copyright {
	display: block;
	text-align: center;
	background: #000;
	color: #999;
	width: 100vw;
}

.charity-mobile {
	display: none;
}

/* Mobile View */
@media screen and (max-width: 768px) {
	html, body{
		width: 100vw;
	}
	
    .navbar	{
        display: none; /* Hide desktop menu */
    }

    .mobile-nav {
		position: absolute;
        display: block; /* Show mobile menu */
    }

    #mobile-menu {
		position: relative;
		display: none;
        top: 80px;
        left: 20px;
        background-color: #2C382E;
        list-style: none;
        border: 1px solid #99DCA1;
        width: 245px;
        text-align: left;
        padding: 10px;
        border-radius: 5px;
		z-index: 5;
    }

    #mobile-menu li {
        margin: 5px 0;
    }

    #mobile-menu a {
        color: #C8E2CB;
        text-decoration: none;
    }

    #mobile-menu a:hover {
        color: #0DB221;
    }

	#menu-button {
		position: absolute;
		top: 20px;
		left: 20px;
		z-index: 5;
	}
	
	.charity-fullpage {
		display: none;
	}
	
	.charity-mobile {
		display: block;
	}
	.content-left, .content-mid, .content-right {
        float: none;
        width: 100%; /* Full width for mobile */
        margin: 0;
		padding: 0;
		margin-right: 0;
		margin-left: 0;
    }
	
	.two-column .content-left, .two-column .content-mid, .two-column .content-right {
        float: none;
        width: 100%; /* Full width for mobile */
        margin: 0;
		padding: 0;
		margin-right: 0;
		margin-left: 0;
		margin-bottom: 10px;
    }
	.three-column .content-left, .three-column .content-mid, .three-column .content-right {
        float: none;
        width: 100%; /* Full width for mobile */
        margin: 0;
		padding: 0;
		margin-right: 0;
		margin-left: 0;
		margin-bottom: 25px;
    }
	
    .content-width {
        display: flex;
        flex-direction: column;
        align-items: center;
		width: 100%; /* Full width for mobile */
        margin: 0;
		padding: 5vw;
    }
	
	#welcome, .hero {
		min-height: 212px;
		max-height: 350px;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 3vh 0;
		width: 100vw;
		margin: 0 auto;
	}
	
	.hero p{
		align-items: center;
		text-align: center;
	}
	
	.hero-logo{
		width: 25vw;
	}
	.photo-style {
		width: 80vw;
	}
	
	.background-video {
		position: absolute;
		height: 60vh;
		top: 0;
		left: 0;
		width: 100vw;
		z-index: -1;
		object-fit: cover;
		margin: 0;
		padding: 0;	
	}
	.footer-column {
		width: 100%;
		padding: 10px;
	}
	
	.cubegrey-video-container{
		display: none;
	}
	
	.rotating-quotes-section {
		position: relative;
		display: flex;
		flex-direction: column;
		height: 300px;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		z-index: -1;
		width: 100vw;
		background-color: rgba(0, 0, 0, .75)
	}
	
	.rotating-quotes {
		margin-top: 12vh;
		padding: 10vw;
		color: white;
	}
	
	.contact-image{
		max-height: 450px;
		width: auto;
		margin-top: 50px;
	}
	
	.charity-card{
		width: 100% !important;
		max-height: 100px !important;
	}
	
	#total-raised{
		width: 100% !important;
	}
}