/*
Theme Name: Codebyday
Theme URI: https://tncthemes.com
Author: Codebyday
Author URI: https://tncthemes.com
Description: Theme Codebyday - Trang đăng ký/landing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codebyday
*/


.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  opacity: 0;
  transition: opacity .15s linear;
  text-align: center;
}
.modal.show {
  display: block;
  opacity: 1;
}
.modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.88);
}
.modal-dialog {
  position: relative;
  width: 500px;
  max-width: 90%;
  top: 50%;
  margin: 0 auto;
  pointer-events: none;
  transition: -webkit-transform .3s ease-out;
  transition: transform .3s ease-out;
  transition: transform .3s ease-out,-webkit-transform .3s ease-out;
  -webkit-transform: translate(0,-50px);
  transform: translate(0,-50px);
}
.modal.show .modal-dialog {
  -webkit-transform: none;
  transform: none;
}
.modal-content {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  border-radius: .3rem;
  outline: 0;
  padding: 20px 15px;
  background-color: #000;
  border: 2px solid #fff;
}
.modal-title {
  width: 100%;
  display: inline-block;
  color: #f2e200;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}
.modal-body {
  color: #fff;
  padding: 0;
  line-height: 1.3;
  padding: 1rem 0;
}
.modal-content .close {
  position: absolute;
  right: -4%;
  bottom: 104%;
  z-index: 2;
  color: #f2e200;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

html {
    font-size: clamp(12px, 1.5vw, 16px);
    scroll-behavior: smooth;
    overflow: hidden;

}

img {
    max-width: 100%;
}

body {
    background: url(./assets/images/bg.webp);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100dvh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.may-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60dvw;
    max-width: 100dvw;
    margin: 0 auto;
    height: 100dvh;
    position: relative;
}

.may-logo {
    width: 30%;
    animation: fadeDown 0.6s ease both;
}

.may-slogan {
    width: 54%;
    margin-top: 1rem;
    animation: fadeDown 0.6s 0.15s ease both;
    position: relative;
    z-index: 10;
}

.may-box {
    animation: fadeDown 0.6s 0.3s ease both;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.may-banner {
    position: relative;
    width: 100%;
    margin-top: -25%;
}

.may-label {
    position: absolute;
    top: 70%;
    left: 0;
    width: 100%;
}

.may-btn {
    position: relative;
    width: 40%;
    margin-top: -1.5%;
    z-index: 5;
    cursor: pointer;
    pointer-events: all;
    background-color: transparent !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    animation: blinker 1s linear infinite;
}

@keyframes blinker {

    0%,
    100% {
        filter: brightness(.8) saturate(.6) drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px green) drop-shadow(0 0 5px green);
    }

    50% {
        filter: none;
        /* opacity: 0.6; */
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-1.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(-1%);
    }
}

.may-modal-reg {
    display: none;
}

.may-modal-reg.active {
    display: block;
}

.may-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 540px;
    max-width: 100%;
    z-index: 20;
    transform: translate(-50%, -50%);
}

.may-modal-content {
    position: relative;
}

.may-modal-backdrop::after {
    content: '';
    position: fixed;
    width: 100%;
    left: 50%;
    top: 50%;
    aspect-ratio: 1/1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 95, 20, .2) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 11;
}

.may-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, .4);
    z-index: 10;
}

.may-modal-form {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 14.5% 13% 0% 13%;
}

.may-modal-form-title {
    font-size: 2rem;
    font-weight: 900;
    color: #6ef85e;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 3%;
}

.may-form-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.may-form-input {
    position: relative;
}

.may-form-input img {
    max-height: 3.5rem;
    width: 100%;
}

.text-error {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    color: red;
    text-align: center;
}

.may-input {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: grid;
    grid-template-columns: 8% 1fr 8%;
    align-items: center;
    padding: 0 5%;
    gap: 1rem;
    overflow: hidden;
}

.may-input input {
    height: 95%;
    flex-grow: 1;
    background-color: transparent !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    color: white;
    text-align: center;
    font-size: 1.5rem;
    min-width: 0 !important;
}

.may-input input:-webkit-autofill,
.may-input input:-webkit-autofill:hover,
.may-input input:-webkit-autofill:active,
.may-input input:-webkit-autofill:focus {
    -webkit-transition: "color 9999s ease-out, background-color 9999s ease-out" !important;
    -webkit-transition-delay: 9999s !important;
}

.may-input input::placeholder {
    color: #ddd;
    text-align: center;
}

.may-input .fa {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
}

.may-input .fa-eye {
    color: #33682d;
}

.may-form-btn {
    background-color: transparent !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 80%;
    width: 100%;
    margin: 0 auto;
    transform: translateY(-3%);
}

@media (max-width: 1200px) and (max-height: 650px) {
    .may-content {
        width: 700px;
    }
}

@media (max-width: 1024px) {
    .may-content {
        width: 800px;
    }
}


@media (max-width: 500px) {
    .may-logo {
        width: 80%;
    }

    .may-slogan {
        width: 90%;
        margin: 2rem auto 1rem;
    }

    .may-banner {
        width: 110%;
        margin-top: -15dvh;
    }

    .may-btn {
        width: 80%;
        margin-top: 0;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .may-content {
        max-width: 40%;
    }

    .may-modal {
        max-width: 45%;
    }

    .may-form-group {
        gap: 1.5rem;
    }

    .may-form-input img {
        max-height: 3rem;
    }

    .may-form-btn {
        transform: translateY(0);
        max-width: 60%;
    }

    .may-modal-form-title {
        font-size: 1.5rem;
    }
}

@media (orientation: landscape) and (max-height: 330px) and (min-height: 300px) and (max-width: 920px) {
    .may-modal {
        max-width: 35%;
    }

    .may-form-group {
        gap: 1.1rem;
    }

    .may-form-input img {
        max-height: 2.5rem;
        width: 100%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1rem;
    }

    .may-input {
        top: -2px;
    }

    .text-error {
        font-size: .75rem;
    }

}

@media (orientation: landscape) and (max-height: 350px) and (max-width: 699px) {
    .may-content {
        max-width: 46%;
    }

    .may-modal {
        max-width: 50%;
    }

    .may-modal-form-title {
        font-size: 1.5rem;
    }

    .may-form-input img {
        /* max-height: 2rem; */
        width: 100%;
    }

    .text-error {
        font-size: .55rem;
    }
}

@media (orientation: landscape) and (max-height: 310px) and (max-width: 690px) {
    .may-modal {
        max-width: 40%;
    }
}

@media (orientation: landscape) and (max-height: 380px) and (max-width: 820px) {

    .may-form-btn {
        transform: translateY(-10%);
    }
}

@media (orientation: landscape) and (max-height: 330px) and (max-width: 820px) {
    .may-modal {
        max-width: 40%;
    }

    .may-form-btn {
        transform: translateY(-0%);
    }
}

@media (orientation: landscape) and (max-height: 380px) and (min-height: 360px) and (max-width: 830px) and (min-width: 810px) {
    .may-modal {
        max-width: 40%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1.2rem;
    }

    .may-form-btn {
        transform: translateY(-10%);
    }
}

@media (orientation: landscape) and (max-height: 340px) and (max-width: 750px) {
    .may-modal {
        max-width: 40%;
    }

    .may-form-group {
        gap: 1.3rem;
    }

    .may-form-input img {
        max-height: 2.7rem;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1rem;
    }

    .may-form-btn {
        transform: translateY(0%);
    }
}

@media (orientation: landscape) and (max-height: 340px) and (max-width: 690px) {
    .may-form-input img {
        max-height: 2.2rem;
    }

    .text-error {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait) {
    .may-content {
        max-width: 80%;
    }

    .may-form-input img {
        max-height: 2.7rem;
        width: 100%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1rem;
    }

    .may-input {
        top: -2px;
    }

    .text-error {
        font-size: .75rem;
    }

    .may-form-btn {
        transform: translateY(-20%);
    }
}

@media screen and (max-width: 568px) and (max-height: 320px) and (orientation: landscape) {
    .may-content {
        max-width: 50%;
    }

    .may-form-group {
        gap: 1.2rem;
    }

    .may-form-input img {
        max-height: 2.5rem;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1rem;
    }

    .may-input {
        top: -2px;
    }

    .text-error {
        font-size: .75rem;
    }
}

@media screen and (max-width: 568px) and (max-height: 275px) and (orientation: landscape) {
    .may-modal-form-title {
        font-size: 1rem;
    }

    .may-form-input img {
        max-height: 2rem;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 0.75rem;
    }

    .may-input {
        top: -2px;
    }

    .text-error {
        font-size: .75rem;
    }

    .may-form-btn {
        transform: translateY(-10%);
    }
}

@media (max-height: 324px) and (min-height: 290px) and (min-width: 700px) {
    .may-content {
        max-width: 35%;
    }

    .may-modal {
        max-width: 35%;
    }

    .may-form-input img {
        width: 100%;
        max-height: 2.5rem;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1rem;
    }

    .may-input {
        top: -2px;
    }

    .text-error {
        font-size: .75rem;
    }

    .may-form-btn {
        transform: translateY(-23%);
    }

}

@media (max-height: 324px) and (min-height: 300px) and (min-width: 710px) and (max-width: 750px) and (orientation: landscape) {
    .may-content {
        max-width: 45%;
    }

    .may-modal {
        max-width: 45%;
    }

    .may-form-group {
        gap: 1.5rem;
    }

    .may-form-input img {
        width: 100%;
        max-height: 3rem;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1rem;
    }

    .may-form-btn {
        transform: translateY(-10%);
    }
}

@media (max-height: 370px) and (min-height: 350px) and (min-width: 770px) and (max-width: 790px) and (orientation: landscape) {
    .may-content {
        max-width: 45%;
    }

    .may-modal {
        max-width: 42%;
    }

    .may-modal-form-title {
        font-size: 2rem;
    }

    .may-form-group {
        gap: 1.5rem;
    }

    .may-form-input img {
        width: 100%;
        max-height: 2.7rem;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1.2rem;
    }

    .may-form-btn {
        max-width: 60%;
        transform: translateY(10%);
    }
}


@media (max-height: 280px) and (min-width: 700px) {
    .may-content {
        max-width: 35%;
    }

    .may-slogan {
        margin-top: 0;
    }

    .may-btn {
        margin-top: 1%;
    }

    .may-modal {
        max-width: 30%;
    }

    .may-modal-form-title {
        font-size: 1rem;
    }

    .may-form-group {
        gap: 1rem;
    }

    .may-form-input img {
        max-height: 2.2rem;
        width: 100%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1rem;
    }

    .may-input {
        top: -2px;
    }

    .text-error {
        font-size: .55rem;
    }
}

@media (max-width: 1200px) and (min-width: 1024px) and (max-height: 720px) and (min-height: 600px) and (orientation: landscape) {
    .may-content {
        max-width: 70%;
    }

    .may-modal {
        max-width: 75%;
    }

    .may-form-input img {
        max-height: 4rem;
        width: 100%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1.5rem;
    }

    .text-error {
        font-size: 1cqi;
    }
}

@media (max-width: 1280px) and (min-width: 1024px) and (max-height: 720px) and (min-height: 700px) and (orientation: landscape) {
    .may-content {
        max-width: 60%;
    }

    .may-modal {
        max-width: 75%;
    }

    .may-form-input img {
        max-height: 3.5rem;
        width: 100%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1.5rem;
    }

    .text-error {
        font-size: 1cqi;
    }
}

@media (max-width: 1200px) and (min-width: 1180px) and (max-height: 745px) and (min-height: 730px) and (orientation: landscape) {
    .may-content {
        max-width: 60%;
    }

    .may-modal {
        max-width: 75%;
    }
}

@media (max-width: 890px) and (min-width: 850px) and (max-height: 1024px) and (min-height: 1000px) {
    .may-modal-form-title {
        font-size: 3rem;
        margin-top: 2%;
    }

    .may-form-input img {
        max-height: 4rem;
        width: 100%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 1.5rem;
    }
}

@media (max-width: 390px) and (min-height: 680px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 3rem;
    }

    .may-form-btn {
        transform: translateY(2%);
    }
}

@media (max-width: 400px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 3.5rem;
    }

    .may-form-btn {
        transform: translateY(-7%);
    }
}

@media (max-width: 420px) and (min-height: 720px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 4rem;
    }

    .may-form-btn {
        transform: translateY(-10%);
    }
}

@media (max-width: 500px) and (min-height: 690px) and (max-height: 700px) {
    .may-form-input img {
        max-height: 3rem;
        width: 100%;
    }
}

@media (max-width: 430px) and (min-height: 750px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 4rem;
        width: 100%;
    }
}

@media (max-width: 380px) and (min-height: 790px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 3rem;
        width: 100%;
    }
}

@media (max-width: 380px) and (min-height: 790px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 3rem;
        width: 100%;
    }
}

@media (max-width: 380px) and (max-height: 650px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 3.2rem;
        width: 100%;
    }
}

@media (max-width: 360px) and (min-height: 600px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 3rem;
        width: 100%;
    }
}

@media (max-width: 320px) and (max-height: 568px) and (orientation: portrait) {
    .may-form-input img {
        max-height: 2.5rem;
        width: 100%;
    }
}

@media (max-width: 768px) and (max-height: 950px) and (min-height: 900px) and (orientation: portrait) {
    .may-modal {
        width: 80%;
    }

    .may-form-group {
        gap: 2.3rem;
    }

    .may-form-input img {
        max-height: none;
        height: 6rem;
        width: 100%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 2rem;
    }

    .text-error {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 835px) and (max-height: 1280px) and (min-height: 1000px) and (orientation: portrait) {
    .may-modal {
        width: 80%;
    }

    .may-form-group {
        gap: 2.5rem;
    }

    .may-form-input img {
        max-height: none;
        height: 6rem;
        width: 100%;
    }

    .may-input input,
    .may-input input::placeholder,
    .may-input .fa {
        font-size: 2.3rem;
    }

    .text-error {
        font-size: 1.5rem;
    }
}