/* Google Font Import - Poppins */
/* @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"); */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* ===== Colors ===== */
  --body-color: #18191a;
  --sidebar-color: #242526;
  --primary-color: #3a3b3c;
  --primary-color-light: #3a3b3c;
  --toggle-color: #fff;
  --text-color: #ccc;
  --card-height: 300px;
  --card-width: calc(var(--card-height) / 1.5);

  /* ====== Transition ====== */
  --tran-03: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.3s ease;
  --tran-05: all 0.3s ease;
}

body {
  min-height: 85vh;
  background-color: var(--body-color);
  transition: var(--tran-05);
  width: 100vw;
  height: auto;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

::selection {
  background-color: var(--primary-color);
  color: #fff;
}

body.light {
    --body-color: #e4e9f7;
    --sidebar-color: #fff;
    --primary-color: #695cfe;
    --primary-color-light: #f6f5ff;
    --toggle-color: #ddd;
    --text-color: #707070;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  padding: 10px 14px;
  background: var(--sidebar-color);
  transition: var(--tran-05);
  z-index: 100;
}
.sidebar.close {
  width: 88px;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
  height: 50px;
  list-style: none;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.sidebar header .image,
.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
}

.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sidebar .text,
.sidebar .icon {
  color: var(--text-color);
  transition: var(--tran-03);
}

.sidebar .text {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
}
.sidebar.close .text {
  opacity: 0;
}
/* =========================== */

.sidebar header {
  position: relative;
}

.sidebar header .image-text {
  display: flex;
  align-items: center;
}
.sidebar header .logo-text {
  display: flex;
  flex-direction: column;
}
header .image-text .name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

header .image-text .profession {
  font-size: 16px;
  margin-top: -2px;
  display: block;
}

.sidebar header .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar header .image img {
  width: 40px;
  border-radius: 6px;
}

.sidebar header .toggle {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%) rotate(180deg);
  height: 25px;
  width: 25px;
  background-color: var(--primary-color);
  /* color: var(--sidebar-color); */
  color: #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: var(--tran-05);
}

body.dark .sidebar header .toggle {
  color: var(--text-color);
}

.sidebar.close .toggle {
  transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu {
  margin-top: 40px;
}

.sidebar li.search-box {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  cursor: pointer;
  transition: var(--tran-05);
}

.sidebar li.search-box input {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  background-color: var(--primary-color-light);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  transition: var(--tran-05);
}
.sidebar li a {
  list-style: none;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--tran-03);
}

.sidebar li a:hover {
  background-color: var(--primary-color);
}
.sidebar li a:hover .icon,
.sidebar li a:hover .text {
  color: #ddd;
}
body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
  color: var(--text-color);
}

.sidebar .menu-bar {
  height: calc(100% - 55px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
  overflow-x:hidden; /* Prevents horizontal movement of sidebar */
}
.menu-bar::-webkit-scrollbar {
  display: none;
}
.sidebar .menu-bar .mode {
  border-radius: 6px;
  /* background-color: var(--primary-color-light); */
  background-color: transparent;
  position: relative;
  transition: var(--tran-05);
}

.menu-bar .mode .sun-moon {
  height: 50px;
  width: 60px;
}

.mode .sun-moon i {
  position: absolute;
}
.mode .sun-moon i.moon {
  opacity: 0;
}
body.dark .mode .sun-moon i.sun {
  opacity: 1;
}
body.dark .mode .sun-moon i.moon {
  opacity: 0;
}
body.light .mode .sun-moon i.sun {
  opacity: 0;
}
body.light .mode .sun-moon i.moon {
  opacity: 1;
}

.menu-bar .bottom-content .toggle-switch {
  position: absolute;
  right: 0;
  height: 100%;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}
.toggle-switch .switch {
  position: relative;
  height: 22px;
  width: 40px;
  border-radius: 25px;
  background-color: var(--toggle-color);
  transition: var(--tran-05);
}

.switch::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  background-color: var(--sidebar-color);
  transition: var(--tran-04);
}

body.light .switch::before {
  left: 20px;
}

.home {
  position: absolute;
  top: 0;
  top: 0;
  left: 250px;
  height: 100vh;
  width: calc(100% - 250px);
  background-color: var(--body-color);
  transition: var(--tran-05);
}
.home .text {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-color);
  padding: 12px 60px;
}

.category-block {
  width: 100%;
  margin-bottom: 40px;
}

.section-title {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-color);
  padding: 12px 60px;
}

.message-container {
  position: absolute;
  top: 0;
  top: 0;
  left: 0px;
  height: 100vh;
  width: 100%;
  background-color: var(--body-color);
  transition: var(--tran-05);
}

.sidebar.close ~ .home {
  left: 78px;
  height: 100vh;
  width: calc(100% - 78px);
}
body.dark .home .text {
  color: var(--text-color);
}

.card-container {
  padding-top: 50px;
    margin-top: 50px;
    margin-left:50px ;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
.card {
/* width: var(--card-width);
height: var(--card-height); */
width: 200px;
height: 300px;
position: relative;
display: flex;
justify-content: center;
align-items: flex-end;
padding: 0 36px;
perspective: 2500px;
margin: 0 70px 50px;
}

/* cover-image size W: 1053 H:1580  */

.cover-image {
border-radius: 5px;
width: 100%;
height: 100%;
object-fit: cover;
}

.wrapper {
transition: all 0.5s;
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
}

.card:hover .wrapper {
transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
-webkit-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
}

.wrapper::before,
.wrapper::after {
content: "";
opacity: 0;
width: 100%;
height: 80px;
transition: all 0.5s;
position: absolute;
left: 0;
}
.wrapper::before {
top: 0;
height: 100%;
background-image: linear-gradient(
    to top,
    transparent 46%,
    rgba(12, 13, 19, 0.5) 68%,
    rgba(12, 13, 19) 97%
);
}
.wrapper::after {
bottom: 0;
opacity: 1;
background-image: linear-gradient(
    to bottom,
    transparent 46%,
    rgba(12, 13, 19, 0.5) 68%,
    rgba(12, 13, 19) 97%
);
}

.card:hover .wrapper::before,
.wrapper::after {
opacity: 1;
}

.card:hover .wrapper::after {
height: 120px;
}

/* title-image size W: 755 H:410  */

.title {
  /* border-radius: 5%; */
  text-align: center;
  background-color: #154360;
  font-size:medium !important;
  min-width: 160% !important;
  transition: transform 0.5s;
}
.card:hover .title {
transform: translate3d(0%, -50px, 100px);
}

/* character-image size W: 2338 H: 3308  */

.character {
width: 100%;
opacity: 0;
transition: all 0.5s;
position: absolute;
z-index: -1;
}

.card:hover .character {
opacity: 1;
transform: translate3d(0%, -30%, 100px);
}


/* forms css */
/* .home {
  position: absolute;
  top: 0;
  top: 0;
  left: 250px;
  height: 100vh;
  width: calc(100% - 250px);
  background-color: var(--body-color);
  transition: var(--tran-05);
}
.home .text {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-color);
  padding: 12px 60px;
} */
.formbody {
  align-items: center;
  background-color: transparent;
  display: flex;
  justify-content: center;
  height: 100vh;
  position: absolute;
}

.form {
  background-color: var(--body-color);
  border-radius: 20px;
  box-sizing: border-box;
  height: 500px;
  padding: 20px;
  width: 320px;
}

.formtitle {
  color: #eee;
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 600;
  margin-top: 30px;
}

.formsubtitle {
  color: #eee;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}

.formsubtitle-medium {
  text-align: center;
  color: #eee;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 400;
  margin-top: 10px;
}

.formsubtitle-small {
  text-align: center;
  color: #08d;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 400;
  margin-top: 10px;
}

a {
  text-decoration: none !important;
}

.input-container {
  height: 50px;
  position: relative;
  width: 100%;
}

.ic1 {
  margin-top: 40px;
}

.ic2 {
  margin-top: 30px;
}

.input {
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 100%;
  outline: 0;
  padding: 4px 20px 0;
  width: 100%;
}

.cut {
  background-color: transparent;
  border-radius: 10px;
  height: 20px;
  left: 20px;
  position: absolute;
  top: -20px;
  transform: translateY(0);
  transition: transform 200ms;
  width: 76px;
}

.cut-short {
  width: 50px;
}

.cut-large {
  width: 115px;
}

.input:focus ~ .cut,
.input:not(:placeholder-shown) ~ .cut {
  background-color: #15172b;
  transform: translateY(8px);
}

.placeholder {
  color: #65657b;
  font-family: "Poppins", sans-serif;
  left: 20px;
  line-height: 14px;
  pointer-events: none;
  position: absolute;
  transform-origin: 0 50%;
  transition: transform 200ms, color 200ms;
  top: 20px;
}

.input:focus ~ .placeholder,
.input:not(:placeholder-shown) ~ .placeholder {
  transform: translateY(-30px) translateX(10px) scale(0.75);
}

.input:not(:placeholder-shown) ~ .placeholder {
  color: #808097;
}

.input:focus ~ .placeholder {
  color: #dc2f55;
}

.submit {
  background-color: #1F618D ;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  cursor: pointer;
  font-size: 18px;
  height: 50px;
  margin-top: 38px;
  /* outline: 0; */
  text-align: center;
  width: 100%;
}

.submit:active {
  background-color: #2471A3 ;
}

.active{
  background-color: red;
  border-radius: 6px;
}

.upload {
  background-color: #138D75 ;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  cursor: pointer;
  font-size: 18px;
  height: 50px;
  margin-top: 38px;
  /* outline: 0; */
  text-align: center;
  width: 50%;
}

.upload:active {
  background-color: #45B39D  ;
}

 /* Alert  messages css */
 .alert{
  margin-bottom: 20px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  z-index: 1;
}
.alert-success{
  color: #3c763d !important;
  background-color: #dff0d8 !important;
  border-color: #d6e9c6 !important;
  padding: 15px !important;
}
.alert-danger{
  color: #c3593e !important;
  background-color: #f8d7da !important;
  border-color: #f8d7da !important;
  padding: 15px !important;
}
.alert-warning{
  color: #3e5c74 !important;
  background-color: #D4E6F1 !important;
  border-color: #D4E6F1 !important;
  padding: 15px !important;
}

#videoContainer {
  width: 100%; /* Adjust as needed */
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
  background-color: black;
}

#videoPlayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the container so that it hs no black bars - letterboxing */
}

/* Notifications Badge */
.badge {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-style: normal;
  font-weight: bold;
  color:white;
  margin-left: -10px;
  margin-top: -15px;
  background-color: #117a65 ;
  border-radius: 25px;
  width: 16px;
  height: 16px;
} 
/* End Of Notifications Badge */


/* Media query to show cards in two columns at around 600px width */
@media (max-width: 600px) {
.card-container {
    margin-left:100px ;
    margin-right:0px ;
    /* check if in a large number of movies shows the height in the top correct */
    /* margin-top:auto; */
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-x:hidden; /* Prevents horizontal movement of sidebar */
}

.card {
    margin: 10px;
    width: 140px;
    height: 200px;    
}
.home{
  display: none;
}

}

