/* CSS Document */
@font-face {
    font-family: 'Chakra Petch';
    src: url('Fonts/ChakraPetch-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Chakra Petch';
    src: url('Fonts/ChakraPetch-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Chakra Petch';
    src: url('Fonts/ChakraPetch-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Chakra Petch';
    src: url('Fonts/ChakraPetch-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Chakra Petch';
    src: url('Fonts/ChakraPetch-Bold.ttf') format('truetype');
    font-weight: bold;
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background-image: url("Images/background-edited.png");
    background-size: cover;
    font-family: 'Chakra Petch', sans-serif;
    display: flex;
    flex-direction: column;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("Images/background-edited.png");
    background-size: cover;
    z-index: -1;
}

.background-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21,52,56,0.50);
    pointer-events: none;
}

header {
    width: 100%;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 0;
    background-color: #010a0b;
    z-index: 1000;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1%;
}

.nav .logo {
    max-height: 100px;
    width: auto;
}

.nav-items {
    display: flex;
    gap: 10px;
    list-style: none;
}

.nav-items li {
    margin: auto;
    padding: 0;
}

.nav-items li a {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center;
    color: #05545F;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0 10px;
    text-decoration: none;
    height: 100%;
    line-height: 60px;
    transition: background-color 0.3s ease;
}

.nav-items .social-media { 
	display: flex; 
	justify-content: center; 
	align-items: center; 
}

.nav-items li a img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    background-color: transparent;
}

.nav li a:hover {
    background-color: transparent;
    color: #7bb2a0;
	text-decoration: underline;
}

.nav li a:hover img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(2%) saturate(5188%) hue-rotate(113deg) brightness(90%) contrast(63%);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: #05545F;
    margin: 4px 0;
    transition: 0.4s;
}

main {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    z-index: 0;
}

.company {
    display: flex;
    align-items: center;
    min-height: 90vh;
    flex-wrap: wrap;
}

.CAP {
    background-color: rgba(5,84,95,0.75);
    padding: 3%;
    width: 50%; /* Adjust width as needed */
    font-size: 1.375rem;
    color: aliceblue;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.CAP h1 {
    width: 100%;
    font-weight: bold;
    font-size: 5rem;
    text-align: left;
}

.CAP_Picture {
    width: 50%; /* Adjust width as needed */
    display: flex;
    align-items: center;
    justify-content: center;
	padding: 3%;
}

.CAP_Picture img {
    max-width: 100%;
    height: auto;
}

.hpage-info {
	
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    color: aliceblue;
    position: relative; /* Needed for the clip-path effect */
    overflow: hidden; /* Ensures any overflow content is hidden */
}
.hpage-info a {
	padding: 0;
	margin: 0;
	min-height: 85vh;
}

.hpage-info .game, .hpage-info .company-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hpage-info .game {
    background-color: rgba(5, 84, 95, 0.50);
    background-image: url("Images/BG.png");
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    margin-right: -6%;
    z-index: 1;
}

.hpage-info .company-info {
    background-color: rgba(5, 84, 95, 0.50);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -6%;
    z-index: 0;
}

.hpage-info img {
    max-width: 100%;
    margin-left: -6%;
    margin-right: 6%;
}

.hpage-info h1 {
    font-size: 3rem;
    margin: 20px 0;
}

.hpage-info .game h1 {
	text-align: left;
	padding-left: 20%;
	padding-left: 5%;
}

.hpage-info .company-info h1 {
	text-align: right;
	padding-right: 20%;
	padding-right: 5%;
}

.hpage-info p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.hpage-info .game p {
	text-align: left;
	padding-right: 40%;
	padding-left: 5%;
}

.hpage-info .company-info p {
	text-align: right;
	padding-left: 40%;
	padding-right: 5%;
}

.btn-primary {
    background-color: rgba(5,84,95,0);
    color: aliceblue;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: rgba(123,178,160,0.50); /* Button hover color */
	transform: scale(1.05);
	transition: transform 1s ease;
}

.game-page .game img {
    margin-top: -100px;
    display: block;
    width: 100%;
    height: auto;
}

.game-page .game h1 {
	font-size: 3rem;
	color: aliceblue;
	background-color: rgba(5, 84, 95, 0.75);
	padding: 20px;
	padding-left: 2.5%;
}

.game-page .game h2 {
	font-size: 2rem;
	color: aliceblue;
	background-color: rgba(5, 84, 95, 0.75);
	padding-left: 2.5%;
}

.game-page .game p {
	color: aliceblue;
	background-color: rgba(5, 84, 95, 0.75);
	padding: 20px;
	padding-top: 0;
	padding-left: 2.5%;
	font-size: 1.2rem;
}

.game {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.game-content, .game-video {
    box-sizing: border-box;
    padding: 1%;
	border-radius: 25px;
}

.game-video {
    flex: 0 1 70%; /* 60% of the viewport width */
	padding-left: 0.5%;
}

.game-content {
    flex: 0 1 30%; /* At least 40% of the viewport width */
    height: auto; /* Make the height auto to fit the video height */
	padding-right: 0.5%
}

.game-video video {
    width: 100%;
    height: auto;
}

.blog {
	color: aliceblue;
	min-height: 100%;
	font-size: 1.2rem;
}

.explenation {
	padding-left: 2%;
	padding-top: 20px;
	padding-bottom: 20px;
}

.explenation h1 {
	font-size: 3rem;
}

.post {
	border-radius: 25px;
	background-color: rgba(5, 84, 95, 0.75);
	margin: 20px;
	padding: 20px;
}

.post h2 {
	font-size: 2rem;
}

.about-company {
    color: aliceblue;
    background-color: rgba(5, 84, 95, 0.75);
    min-width: 100%;
    font-size: 1.2rem;
    padding: 3%;
}

.about-company h1 {
    font-size: 3rem;
}

.scroll-arrow {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: aliceblue;
    animation: bob 1.5s infinite;
    z-index: 1000; /* Ensure it's above other elements */
    cursor: pointer;
}

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #010a0b;
    color: aliceblue;
    position: relative;
	bottom: 0;
}

.email-link {
    color: #7bb2a0; /* Match the color to your website's palette */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #05545F; /* Change to another color on hover */
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-items {
        display: none;
        position: absolute;
        top: 100px;
        right: 0;
        background-color: #010a0b;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-items.active {
        display: flex;
    }

    .company {
        flex-direction: column-reverse; /* This ensures the CAP_Picture is above CAP */
        justify-content: center;
    }

    .CAP, .CAP_Picture {
        width: 100%; /* Full width for mobile view */
        text-align: center;
    }

    .CAP_Picture {
        width: 90%;
        height: 90%;
    }

    .nav-items .social-media {
        display: flex;
        justify-content: center;
        gap: 10px; /* Add gap between icons */
    }

    .nav-items .social-media a {
        display: flex;
        align-items: center;
        text-align: center;
        width: auto; /* Ensure that the links do not take full width */
		padding: 10px;
    }

    .nav-items li:not(.social-media) {
        width: 100%;
    }

    .nav-items li:not(.social-media) a {
        text-align: center; /* Center the text for non-social media links */
    }
	
	.hpage-info {
        flex-direction: column;
        align-items: center;
    }

    .hpage-info .game, .hpage-info .company-info {
        margin: 10px 0 0 0;
        clip-path: none; /* Remove clip-path for mobile view */
        width: 100%; /* Full width for mobile view */
        text-align: center;
    }

    .hpage-info img {
        width: 90%;
        height: auto;
    }
	
	.hpage-info p {
		text-align: center;
	}
}
