/*
 * Copyright Sans Paper (C) 2021
 */

@import url('https://fonts.googleapis.com/css?family=Lato');

@font-face {
  font-family: 'Khmer Sangam MN';
  src: url('Khmer-Sangam-MN.ttf') format('truetype');
}

/* Global Styles */
:root {
  --primary-color: #672cb0;
  --dark-color: #222222;
  --light-color: #f4f4f4;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --billow-color: #410099;
  --white-color: #ffffff;
  --grey-color: #808080;
  --yellow-color: #ffae00ea;
}

/* Text selection colour */
::selection {
  background-color: var(--billow-color);
  color: white;
}

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

h1,
h2,
h3,
h4 {
  padding: 1vh 0vh;
}

/* Mobile View */
body {
  font-family: 'Khmer Sangam MN';
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
  background-color: var(--white-color);
  color: #333;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 100%;
  grid-template-columns: 100%;
  grid-auto-rows: repeat(auto, 5);
  grid-template-areas: 'header' 'section1' 'section2' 'section3' 'section4' 'footer';
}

body a {
  text-decoration: none;
}

body a :hover {
  color: var(--primary-color);
}

body ul {
  color: var(--grey-color);
  margin: 0vh 0vh 0vh 4vh;
}

body img {
  width: 100%;
}

/* Logo */
.cursor-default {
  cursor: pointer;
}

.logo-color {
  color: var(--dark-color);
  transition: all 0.5s;
}

.logo-color:hover {
  transition: 0.5s;
  transform: translate(0, -3%);
}

/* Access Buttons */
.access-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* Login Button */
.login-button {
  border-radius: 10px;
  border: none;
  box-shadow: 0px 5px 5px rgba(22, 0, 50, 0.2);
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  margin: 0 3px;
  min-width: 90px;
  width: 8vw;
  transition: 0.3s;
}

.register {
  background: var(--grey-color);
  background: linear-gradient(-45deg, var(--yellow-color), #d37c09);
}

.login {
  background: var(--billow-color);
  background: linear-gradient(45deg, var(--billow-color), #7032c4);
}

/* Main Page Parallax */
.parallax {
  /* The image used */
  background-image: url(https://source.unsplash.com/ZOiGMIcfXXg/1600x900);

  /* Set a specific height */
  height: 80vh;

  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-overlay {
  height: 80vh;
  background: rgba(14, 10, 17, 0.7);
}

.parallax-content {
  cursor: default;
}

.parallax-content h1 {
  font-family: 'Lato', sans-serif;
  text-align: left;
  font-size: 5em;
  color: white;
  line-height: 1.2em;
}

.parallax-content h3 {
  font-family: 'Lato', sans-serif;
  margin-top: -20px;
  margin-left: 15px;
  color: rgb(209, 176, 255);
  letter-spacing: 2px;
  font-size: 3em;
}

/* Further setting for Parallax on Mobile View */
@media only screen and (max-width: 768px) {
  .logo-text {
    font-size: 18px;
    margin: 10px 0;
  }

  .parallax-content {
    padding: 25vh 10vw 0 10vw;
  }

  .parallax-content h1 {
    font-size: 15vw;
    line-height: 1.2em;
  }

  .parallax-content h3 {
    margin-top: -12px;
    font-size: 6vw;
  }
}

/* Further setting for Parallax in Tablet View */
@media only screen and (min-width: 768px) and (max-width: 1323px) {
  .parallax-content {
    padding: 15vh 10vw 0 10vw;
  }

  .parallax-content h1 {
    font-size: 7em;
    line-height: 1.2em;
  }

  .parallax-content h3 {
    margin-top: -25px;
    font-size: 3rem;
  }
}

/* Further setting for Parallax in Desktop View */
@media only screen and (min-width: 1323px) {
  .parallax-content {
    padding-top: 18vh;
    width: 55%;
    margin: 0 auto;
  }

  .parallax-content h1 {
    font-family: 'Lato', sans-serif;
    font-size: 6vw;
    color: white;
    margin: 0 auto;
    line-height: 1.2em;
  }

  .bkg-colour {
    background: var(--billow-color);
    background: linear-gradient(45deg, var(--billow-color), #7032c4);
    border-radius: 20px;
  }

  /* Login Button Desktop Hover */
  .login-button:hover {
    transition: 0.3s;
    transform: translateY(-10%);
  }

  .login-link :hover {
    color: white;
  }

  .text-light {
    color: #ffffff;
  }

  .text-gray {
    color: #e9e9e9;
  }
}

/* SECTIONS */
.hero-section {
  min-height: 500px;
  background-image: url(https://source.unsplash.com/ZOiGMIcfXXg/1600x900);
  background-size: cover;
  background-position: center center;
}

.bkg-img {
  min-height: 300px;
  height: 50vh;
  max-height: 500px;
  background-image: url(https://source.unsplash.com/D46mXLsQRJw/1600x900);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.inner-section {
  padding: 2vh 5vh;
  margin: 5vh 0vh;
  border-radius: 2px;
}

.inner-section.bkg-offset {
  border-radius: 25px;
  background-color: var(--light-color);
  color: var(--dark-color);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
}

.inner-section.bkg-white {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.left-content,
.right-content {
  padding: 10px;
}

/* NAVBAR */
.navbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0vh 4vh;
  z-index: 1;
  width: 100%;
  background-color: var(--white-color);
  position: -webkit-sticky;
  position: fixed;
}

.navbar ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.navbar li {
  color: var(--dark-color);
  margin: 0 0.25rem;
}

.navbar li:hover {
  color: var(--primary-color);
}

/* NAVBAR DROPDOWN */
.dropdown {
  display: inline-block;
  position: relative;
}

.dd-button {
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
}

.dd-button :after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid black;
}

.dd-button :after :hover {
  color: var(--primary-color);
}

.dd-menu {
  position: absolute;
  top: 100%;
  border-radius: 4px;
  padding: 0;
  margin: 2px 0 0 0;
  -webkit-box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  list-style-type: none;
}

.dd-menu li {
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
}

.dd-menu li :hover {
  background-color: #f6f6f6;
}

.dd-menu li a {
  display: block;
  margin: -10px -20px;
  padding: 10px 20px;
}

.dd-input + .dd-menu {
  display: none;
}

.dd-input {
  display: none;
}

.dd-input:checked + .dd-menu {
  display: block;
}

/* List View Mobile */
header {
  grid-row: 1;
  grid-column: 1;
  grid-area: header;
  box-shadow: 0px 5px 5px rgba(22, 0, 50, 0.2);
}

section:nth-of-type(1) {
  grid-row: 2;
  grid-column: 1;
  grid-area: section1;
}

section:nth-of-type(2) {
  grid-row: 3;
  grid-column: 1;
  grid-area: section2;
}

section:nth-of-type(3) {
  grid-row: 4;
  grid-column: 1;
  grid-area: section3;
}

section:nth-of-type(4) {
  grid-row: 5;
  grid-column: 1;
  grid-area: section4;
}

/* FOOTER */

footer {
  grid-row: 6;
  grid-column: 1;
  grid-area: footer;
}

.footer-copyright {
  color: white;
  transition: all 0.5s;
}

.footer-copyright:hover {
  color: rgb(145, 66, 255);
  transition: all 0.3s;
}

/* Text Styles */
.x-large {
  font-size: 4rem;
  line-height: 2;
  margin-bottom: 1rem 2rem;
}

.large {
  font-size: 3rem;
  line-height: 1.2;
  margin: 1rem;
}

.medium {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
  padding-top: 10px;
}

.text-primary {
  color: var(--primary-color);
}

.text-dark {
  color: var(--dark-color);
}

.text-success {
  color: var(--success-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* Center All */
.all-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  margin: auto;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
}

/* Cards */
.card {
  padding: 1rem;
  margin: 0.7rem;
  border-radius: 0.25rem;
  background-color: var(--white-color);
  min-height: 200px;
  min-width: 33.3%;
}

/* Grid */
.grid-2 {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.grid-3 {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr);
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
}

.grid-4 {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr);
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.4rem 1.3rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-right: 0.5rem;
  -webkit-transition: opacity 0.2s ease-in;
  transition: opacity 0.2s ease-in;
  outline: none;
  border-radius: 2px;
}

.btn:hover {
  color: var(--primary-color);
}

.btn-link {
  background: none;
  padding: 0;
  margin: 0;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
  margin-right: 0.2rem;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  text-align: center;
  margin: 0.3rem;
  background: var(--light-color);
  color: #333;
  border-radius: 5px;
}

.alert {
  padding: 0.7rem;
  margin: 1rem 0;
  opacity: 0.9;
  background: var(--light-color);
  color: #333;
}

.btn-primary,
.bg-primary,
.badge-primary,
.alert-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-light,
.bg-light,
.badge-light,
.alert-light {
  background: var(--light-color);
  color: #333;
}

.btn-dark,
.bg-dark,
.badge-dark,
.alert-dark {
  background: var(--dark-color);
  color: #fff;
}

.btn-danger,
.bg-danger,
.badge-danger,
.alert-danger {
  background: var(--danger-color);
  color: #fff;
}

.btn-success,
.bg-success,
.badge-success,
.alert-success {
  background: var(--success-color);
  color: #fff;
}

.btn-white,
.bg-white,
.badge-white,
.alert-white {
  background: #fff;
  color: #333;
  border: #ccc solid 1px;
}

.btn:hover {
  opacity: 0.8;
}

.bg-light,
.badge-light {
  border: #ccc solid 1px;
}

.round-img {
  border-radius: 50%;
}

/* Forms */
input {
  margin: 1.2rem 0;
}

.form-text {
  display: block;
  margin-top: 0.3rem;
  color: #888;
}

.integration-apps {
  color: var(--dark-color);
  transition: all 0.5s;
}

.integration-apps:hover {
  transition: all 0.5s;
  opacity: 0.5;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.4rem;
  font-size: 1.2rem;
  border: 1px solid #ccc;
}

input[type='submit'],
button {
  font: inherit;
}

tableth,
table td {
  padding: 1rem;
  text-align: left;
}

tableth th,
table td th {
  background: var(--light-color);
}

footer {
  background-color: var(--dark-color);
  color: var(--light-color);
}

footer .allRights {
  text-align: center;
  color: var(--grey-color);
  padding: 0.5rem 2rem;
}

footer .footer-section {
  max-width: 1100px;
  line-height: 1.6;
  margin: auto;
  color: var(--grey-color);
  padding: 1rem 4rem;
}

/* Additional CSS */
.main-title {
  margin-bottom: -30px;
}

.smooth-picture {
  border-radius: 20px;
}

.divider-overlay {
  background: #410099;
}

/* DESKTOP VIEW */
@media only screen and (min-width: 768px) {
  body {
    font-family: 'Khmer Sangam MN';
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
  }

  body a {
    text-decoration: none;
  }

  body a :hover {
    color: var(--primary-color);
  }

  body ul {
    color: var(--grey-color);
    margin: 0vh 0vh 0vh 4vh;
  }

  body img {
    width: 100%;
  }

  /* Main Container */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 2rem;
  }

  .overlapping {
    margin-top: -120px;
    /* To make bottom card overlapping with the Parallax */
  }

  /* Sections */
  .row-align {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .left-content {
    width: 50%;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
  }

  .right-content {
    margin-left: 50px;
    width: 50%;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
  }

  /* Footer */
  footer {
    background-color: var(--dark-color);
    color: var(--light-color);
  }

  footer .allRights {
    text-align: center;
    color: var(--grey-color);
    padding: 1rem 2rem;
  }

  footer .footer-section {
    max-width: 1100px;
    margin: auto;
    color: var(--grey-color);
    padding: 2rem;
  }
}
