﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html {
    background-image: linear-gradient( rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/image/bg.jpg');
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 999;
    text-align: center;
    padding: 20px 25px;
    width: 340px;
    transform: translate(-50%,-50%);
    background: rgb(255 255 255);
    box-shadow: -1px 4px 28px 0px rgba(0,0,0,0.75);
    border: 2px solid black;
    border-radius: 20px;
}
@media screen and (max-width: 480px) {
    .content {
        width: 90vw !important;
        padding: 15px 20px !important;
        font-size: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    .content {
        width: 90vw !important;
        padding: 15px 20px !important;
        font-size: 14px !important;
    }
    .custom-modal-body {
        background-size: 150vw !important;
        height: 400px
    }
    
}

.content header {
    color: black;
    font-size: 33px;
    font-weight: 600;
    /*margin: 0 0 35px 0;*/
    font-family: 'Montserrat',sans-serif;
}

.field {
    position: relative;
    height: 45px;
    width: 100%;
    display: flex;
    background: rgba(192,192,192,0.3);
}

    .field span {
        color: #222;
        width: 40px;
        line-height: 45px;
    }

    .field input {
        height: 100%;
        width: 100%;
        background: transparent;
        border: none;
        outline: none;
        color: #222;
        font-size: 16px;
        font-family: 'Poppins',sans-serif;
    }

    .field select {
        height: 100%;
        width: 100%;
        background: transparent;
        border: none;
        outline: none;
        color: #222;
        font-size: 16px;
        font-family: 'Poppins',sans-serif;
    }

.space {
    margin-top: 16px;
}

.show {
    position: absolute;
    right: 13px;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    display: none;
    cursor: pointer;
    font-family: 'Montserrat',sans-serif;
}

.pass-key:valid ~ .show {
    display: block;
}

.pass {
    text-align: left;
    margin: 10px 0;
}

    .pass a {
        color: white;
        text-decoration: none;
        font-family: 'Poppins',sans-serif;
    }

    .pass:hover a {
        text-decoration: underline;
    }

.field input[type="submit"] {
    background: #000000;
    border: 1px solid #000000;
    color: white;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat',sans-serif;
    border-radius: 15px;
}

    .field input[type="submit"]:hover {
        background: #000000;
    }

.login {
    color: white;
    margin: 20px 0;
    font-family: 'Poppins',sans-serif;
}

.links {
    display: flex;
    cursor: pointer;
    color: white;
    margin: 0 0 20px 0;
}

.facebook, .instagram {
    width: 100%;
    height: 45px;
    line-height: 45px;
    margin-left: 10px;
}

.facebook {
    margin-left: 0;
    background: #4267B2;
    border: 1px solid #3e61a8;
}

.instagram {
    background: #E1306C;
    border: 1px solid #df2060;
}

.facebook:hover {
    background: #3e61a8;
}

.instagram:hover {
    background: #df2060;
}

.links i {
    font-size: 17px;
}

i span {
    margin-left: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 16px;
    font-family: 'Poppins',sans-serif;
}

.error {
    font-size: 15px;
    color: red;
    font-family: 'Poppins',sans-serif;
}



.signup {
    font-size: 15px;
    color: black;
    font-family: 'Poppins',sans-serif;
}

    .signup a {
        color: #3498db;
        text-decoration: none;
    }

        .signup a:hover {
            text-decoration: underline;
        }

.admin {
    font-size: 18px;
    color: black;
    font-family: 'Poppins',sans-serif;
}

.validation-error {
    font-size: 15px;
    color: red;
    font-family: 'Poppins',sans-serif;
}

.invalid {
    border: 1px solid red;
}

.text-danger {
    font-size: 14px;
    color: red;
    font-family: 'Poppins', sans-serif;
}


    .text-danger span {
        font-size: 15px;
        color: red;
        font-family: 'Poppins',sans-serif;
    }

@font-face {
    font-family: 'NotoSans';
    src: url('/fonts/NotoSans_Condensed-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'NotoSans';
    src: url('/fonts/NotoSans_Condensed-Bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}


.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.custom-modal {
    background-color: transparent;
    background-image: linear-gradient(to right top, #03203f, #002a55, #00346c, #003d83, #03479b, #064fa5, #0857af, #0a5fb9, #0b66b6, #1a6db3, #2a73af, #3a79aa);
    color: #ecf0f1;
    max-width: 700px;
    height: 600px; /* สูง 90% ของหน้าจอ */
    margin: auto;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    letter-spacing: 0.35px;
    font-family: 'NotoSans',sans-serif;
}


.custom-modal-header {
    padding: 60px 30px 20px 30px;
    position: relative;
    text-align: center;
}

    .custom-modal-header h2 {
        margin: 0;
        font-size: 24px;
 	font-weight: 600;
    }

.custom-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 20px;
    color: #0f3ce9;
    cursor: pointer;
    background-color: rgba(236, 240, 241, 0.7);
    border-radius: 50%;
    transition: background-color 0.1s;
}

.custom-modal-content {
    padding: 20px 30px 10px 30px;
    margin: 10px;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: #7f8c8d #002998;
    font-size: 16px;
    background-image: linear-gradient(to right top, #03203f, #002a55, #00346c, #003d83, #03479b, #064fa5, #0857af, #0a5fb9, #0b66b6, #1a6db3, #2a73af, #3a79aa);
    border-radius: 12px;
    transition: background-image 0.3s;
}
    /* WebKit (Chrome, Safari) */
    .custom-modal-content::-webkit-scrollbar {
        width: 8px;
        
    }

    .custom-modal-content::-webkit-scrollbar-track {
        background: #002998;
        border-radius: 10px;      
    }

    .custom-modal-content::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #95a5a6, #7f8c8d);
        border-radius: 10px;
        transition: background-color 0.3s ease;       
    }

        .custom-modal-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #bdc3c7, #95a5a6);
        }

    .custom-modal-content p {
        margin: 10px 0;

    }

.custom-modal-footer {
    padding: 8px 20px;
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    background-color: transparent;
   font-weight: 400;
}

    .custom-modal-footer label {
        font-size: 16px;
        cursor: pointer;
	font-weight: 400;
    }

    .custom-modal-footer input[type="checkbox"] {
        margin-right: 8px;
        transform: scale(1.1);
    }

.custom-smaller-text {
    font-size: 14px;
    font-weight: 400;
}

.custom-header-text {
    font-size: 16px;
    font-weight: 600;
}

.header-text {
  font-size: 18px;
  font-weight: 600;
}
.smaller-text {
  font-size: 16px !important;
  font-weight: 400 !important;
}
