/* style.css */

body {
	padding: 0;
	margin: 0;
	background-color: black;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	overflow:hidden;
	font-family: "Calibri", sans-serif;
}
.bg {
	background-color: black;
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width: 100vw;
	overflow:hidden;
	min-height:500px;
	display: flex;
	pointer-events: all;
}

#photo {
  position: relative;
  top: 0;            
  right: 0; 
  height: 100%; /* Changed from calc(100% - 0rem) */
  /* width: 100%; */
  display: inline-block;
  transition: all 0.2s ease;
  z-index: 69;
  object-fit: cover;
  object-position: center;
  pointer-events: all;
  min-height: 350px;
  cursor: pointer;
}


.overlay {
  display: none;
	position: fixed;
    top: 0rem;
    right: 0;
    width: 100%;
    max-width: 75.5vw;
    height: calc(100% - 0rem);
    line-height: 0;
    padding: 0;
    gap: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.66);
    z-index: 999997;
    overflow: hidden;
    pointer-events: all;
    -webkit-overflow-scrolling: touch;
}

.hide {
	position: absolute !important;
	top: -9999px !important;
	left: -9999px !important;
}

.popup-container {
    display: block;
    z-index: 999998;
    color: #EEE;
    position: relative;
    left: 0;
    bottom: 4rem;
    border-radius: 0.33rem;
    background-size: 100% 100%;
    background-attachment: fixed;
    box-sizing: border-box;
    transition: all 0.3s ease;
    max-width: 500px;
    height: 10rem;
    font-family: "Calibri", sans-serif;
    font-size: 1rem;
    cursor: pointer;
    pointer-events: all;
    height: 9rem;
    min-width: 12rem;
	transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
    
	
}
.popup-container:hover {
	font-size:1.02rem;
}
/* Absolute positioning for text elements */
.popup-text {
    text-align: right;
    background-color: rgba(0,0,0,0);
    border-radius: 0.5rem;
	padding: 1rem;
	pointer-events: all;
	height: 7rem;
	transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
}


/* Add some custom styles for the gallery container */
#gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  z-index: 999998;
  pointer-events: all;
  
}

#gallery img {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: auto;
  max-width: 100%;
  display: block;
  z-index: 999998;
}

#music {
	width:10%;
}
#audio-container {
	position: fixed;
	left: 9vh;
	bottom: 9vh;
	width: 0%;
	z-index: 999999;
}

#playPauseButton {
  background-color: rgba(0,0,0,0);
  border-radius: 0.5rem;
  width: 42px;
  height: 42px;
  border: none;
  padding: 0;
  margin: 0;
  pointer-events: all;
}

#playPauseButton img {
  width: 100%;
  height: 100%;
}


#tabContainer {
    display: flex;
    height: 2rem;
    min-width: 15rem;
    width: 18vw;
	max-width: calc(500px - 1.5rem);
    position: relative;
    top: 0;
    left: 0;
    margin-top: 0;
    background-color: rgba(0,0,0,0);
    flex-direction: row;
    justify-content: flex-end;
    align-items: end;
    border-radius: 0.5rem;
    color: white;
    z-index: 999999;
    padding-left: 1rem;
    padding-top: 1rem;
	padding-bottom: 1rem;
    padding-right: 0.5rem;
	transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
}

.tabButton {
	padding: 0.5rem;
	border-radius: 0.5rem;
	border: 0;
	background-color: transparent;
	color: white;
	font-family: "Calibri", sans-serif;
    font-size: 1rem;
	pointer-events: all;
}

.tabButton:hover {
	color: grey;
	cursor: pointer;
}

.vidBG {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 75.5vw;
  height: 100%;
  line-height: 0;
  padding: 0;
  gap: 0;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.66); /* Adjust the alpha value to control the darkness */
  z-index: 999997; /* Set a value lower than popup z-index */
  overflow: hidden; /* Hide the scrollbars */
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS devices */
  pointer-events: all;
  flex-direction: row;
    flex-wrap: wrap;
	
	justify-content: flex-end;
	transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
}
#videoPlayer {
	width: calc(100% - 4rem);
    min-height: 480px;
    border-radius: 0;
    position: relative;
    pointer-events: all;
	margin-right: 4rem;
	transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
}
#videoTitle {
	display: flex;
	width: 100%;
	padding-left: 2rem;
	margin-top: 0.5rem;
	line-height: normal;
	transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
    
}
#shareButton {
	height: 1.5rem;
	background: transparent;
	border: 0;
	padding: 0.4rem;
	color: white;
	cursor: pointer;
	pointer-events: all;
}

.videoThumbnail {
	background-color: rgba(255,255,255,0);
    border: 0;
    position: relative;
    color: rgba(255,255,255,0.33);
    width: 25%;
    border: 0;
	cursor: pointer;
	visibility: visible;
	pointer-events: all;
	    min-height: 5rem;
		transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
}

.videoThumbnail:hover {
	cursor: pointer;
	color: white;
}

#Queen_And_The_Damned {
	background-image: url(https://cdn.nezovic.com/yuri/images/thumbnails/qatd-cover.png);
	background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#videoPlayerContainer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: start;
    left: 0;
    position: relative;
    top: 0;
    background-color: black;
    margin-top: -2rem;
    pointer-events: all;
    width: calc(100% - 2rem);
	align-items: center;
	width: 100%;
	justify-content: center;
	transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
}

#sidebarContainer {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
	align-items: flex-end;
    position: fixed;
    top: 0;
    left: 0;
	z-index: 999999;
	pointer-events: none;
	min-height: 775px;
	min-width: 22.5vw;
	transition: background-color ease 0.2s, border-radius ease 0.2s, height ease 0.2s, min-width ease 0.2s, width ease 0.2s, justify-content ease 0.2s, min-height ease 0.2s;
}

#movieTitleHeader {
	color: white;
}
.imgThumbnail {
	width: 25%;
}

h2 {
	margin-top: 0;
}

.disabledThumb {
	cursor: default !important;
}
.imgThumbnail {
	cursor: pointer;
}

#photo-container {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* Hidden by default */
  display: flex;
  justify-content: right;
  align-items: center;
}

@media screen and (min-width: 1921px) {
	.vidBG, .overlay { /* , #photo */
		max-width: 75.5vw;
	}
}
@media screen and (max-width: 1800px) {

	.overlay {
		max-width: 75.5vw;
	}

	#videoTitle {
		height: 35%;
	}
	#videoPlayer {
		margin-right: 0;
		height: 100%;
	}
}




@media screen and (min-width: 1300px) {
  #photo {
    height: calc(100% - 0rem);
    right: 0rem;
    top: 0rem;
	max-width: 75.5vw;
  }

}

@media screen and (min-width: 2000px) {
  #photo {
    height: calc(100% - 0rem);
    right: 0rem;
    top: 0rem;
	max-height: 100vh;
	
  }

}


@media screen and (max-width: 1300px) {

    /* ADD THIS RULE for the new container */
    #photo-container {
		overflow-x: auto;
		overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Improves scrolling feel on iOS */
        top: 4rem; /* Match existing photo offset */
        height: calc(100% - 14rem) !important; /* Match existing photo offset */
		justify-content: left;
    }

    /* ADD THIS RULE to modify the photo for mobile */
    #photo-container #photo {
        width: auto; /* Allow image to overflow horizontally */
        height: 100%; /* Lock image height to the container */
        max-width: none; /* IMPORTANT: Allows image to be wider than the screen */
        object-fit: contain; /* Change from cover to contain */
    }

    /* MODIFY the existing #photo rule inside this media query */
	#photo {
		/* width: 100%; /* Change this from calc(100% - 0rem) */
		height: calc(100%);
		right: 0rem;
		top: 0; /* The container now handles the top offset */
		max-width: 100%;
		
		position: initial;
	}
	.vidBG {
		margin-top: 4rem;
		max-width: 100%;
	}

	.popup-container {
		min-width: 100vw !important;
		bottom: -1rem;
		border-radius: 0;
		height: 10rem;
	}
	.popup-text {
		border-radius: 0;
		bottom: 0rem;
		background-color: rgba(0,0,0,1);
		height:50vh;
	}
	.imgThumbnail {
		width: 33.33%;
	}
	.overlay {
		height: calc(100% - 12rem);
		min-height: 500px;
		top: 4rem;
		width:100%;
		max-width: 100%;
	}
	
	#tabContainer {
		width: calc(100% - 1.5rem);
		max-width: 100%;
		border-radius: 0;
		justify-content: space-between;
		background-color: rgba(0,0,0,0.66);
	}
	

	#videoPlayerContainer {
		min-height: 10rem;
	}
	#videoTitle {
		height: 40%;
	}

}

@media screen and (min-height: 1200px) {
	#videoTitle {
		height: 40%;
	}
}
@media screen and (max-height: 751px) {
	#videoTitle {
		height: 15%;
	}
}
@media screen and (max-height: 750px) {
	.overlay {
		min-height: 440px;
	}
	#videoPlayer {
		min-height: 400px;
	}

	#videoTitle {
		height: 85%;
	}
	.popup-container {
		bottom: 6rem;
		height: 7rem;
	}
	
}

@media screen and (min-width: 2600px) {

	#sidebarContainer {
		min-width: 32.5vw;
	}

	.vidBG, .overlay {
		max-width: 57.5vw;
	}
}

@media screen and (min-width: 2900px) {
	

	.vidBG, .overlay {
		max-width: 62.5vw;
	}
}

@media screen and (max-width: 3000px) {
	#sidebarContainer {
		min-width: 27.5vw;
	}
	

}
@media screen and (max-width: 2800px) {
	#sidebarContainer {
		min-width: 23.5vw;
	}

}

@media screen and (max-width: 2500px) {

	#sidebarContainer {
		min-width: 22.5vw;
	}


}
@media screen and (min-width: 3300px) {
	#sidebarContainer {
		min-width: 39vw;
	}
	.vidBG, .overlay {
		max-width: 60vw;
	}

}
@media screen and (max-width: 850px) {
	.imgThumbnail {
		width: 50%;
	}


}

@media screen and (max-width: 500px) {
	#movieTitleHeader {
		max-width: 500px;
		margin: 0;
	}
	.imgThumbnail {
		width: 100%;
	}
	.videoThumbnail {
		height:50%;
		width: 100%;
	}
@media screen and (max-width: 375px) {
	#movieTitleHeader {
		max-width: 325px;
		margin: 0;
	}
}

