﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.bollabel{
    color:black;
    background-color:white;
    text-align:center;
    font-display:block;
    font-weight:200;
}

.label-blue {
    color: blue;
    background-color: white;
    text-align: center;
    font-display: block;
    font-weight: 200;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.box:link,
.box:visited
{
    margin:2px 0px;
    padding:15px;
    border-radius:10px;
    border:1px solid ;
    box-shadow:0px 0px 3px 2px #ffffff;
    background-color:#ffffff;
    height:500px;
    width:auto;
}

.box-h150 {
    margin: 5px 5px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid;
    box-shadow: 0px 0px 3px 2px #ffffff;
    background-color: lightgray;
    height: 150px;
    width: auto;
}
.box-h200 {
    margin: 2px 0px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid;
    box-shadow: 0px 0px 3px 2px #ffffff;
    background-color: lightgray;
    height: 250px;
    width: auto;
}


.box-bk-white {
    margin: 10px 10px;
    padding: 10px;
    border: 1px solid;
    box-shadow: 0px 0px 5px 5px #ffffff;
    border-radius :5px;
    background-color: white;
}

.box-bk-livegreen {
    margin: 10px 10px 10px 10px;
    padding: 25px;
    border: 1px solid;
    box-shadow: 0px 0px 5px 5px #ffffff;
    border-radius: 15px;
    background-color: rgb(213, 239, 199);
}

.box-bk-liveOrang {
    margin: 10px 10px;
    padding: 20px;
    border: 1px solid;
    box-shadow: 0px 0px 5px 5px #ffffff;
    border-radius: 15px;
    background-color: rgb(255, 196, 73);
}

.box-label {
    margin: 5px 5px;
    padding: 5px;
    border: 1px solid;
    box-shadow: 0px 0px 1px 2px #ffffff;
    border-radius: 5px;
    background-color: white;
    width: 200px;
    height:100px;
}

.box-design-H100pc {
    margin: 5px 5px;
    padding: 10px;
    border: 0.5px solid;
    border-radius: 5px;
    background-color:lightgray;
    text-align:left;
    font:bold;
    height:100px;
    width:100%;
}

.box-design-H100pc-White {
    margin: 5px 5px;
    padding: 10px;
   
    border-radius: 5px;
    background-color: white;
    text-align: left;
    font: bold;
    height: 100px;
    width: 100%;
}


.box-design-H500pc {
    margin: 5px 5px;
    padding: 10px;
    border: 0.5px solid;
    border-radius: 5px;
    background-color: gainsboro;
    text-align: left;
    height: 500px;
    width: 100%;
}

.box-header {
    margin: 2px 2px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid ;
    box-shadow: 0px 0px 3px 2px #ffffff;
    background-color: lightgray;
    height:80px;
}

.box-picture {
    margin: 1px 1px;
    padding: 2px;
    border-radius: 10px;
    border: 4px solid #258cfb;
    box-shadow: 0px 0px 3px 2px #ffffff;
    background-color: #ffffff;
    height: 220px;
    width: 250px;
}

.box-button {
    /* margin: 1px 1px;*/
    padding: 1px;
    border-radius: 10px;
    border: 1px solid #258cfb;
    box-shadow: 0px 0px 3px 2px #ffffff;
    background-color: #ffffff;
    height: 40px;
    width: 80px;
}


.input{
    margin: 2px 5px;
}

html {
  position: relative;
  min-height: 100%;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*
COLORS:

Light green: #7ed56f
Medium green: #55c57a
Dark green: #28b485

*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   /* font-family: "Lato", sens-serif;*/
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
   /* color: #d3cfcf;*/
    padding: 30px;
   /* background-image: url(../css/Image/iot2.JPG);*/
}

.header {
    height: 20vh;
    background-image: url(~/css/Image/iot2.JPG);
    background-size: cover;
    background-position: top;
    position: relative;
}

.logo-box {
    position: absolute;
    top: 5px;
    left: 5px;
}

.logo {
    position:absolute;
    height: 150px;
    width:150px;
    
}

.heading-primary {
    color: rgb(22, 245, 52);
    /*text-transform: uppercase;*/
    animation: moveInLeft;
    animation-duration: 3s;
}

.heading-primary-main {
    display: block;
    font-size: 50px;
    font-weight: 300;
    letter-spacing: 35px;
}

.heading-primary-sub {
    display: block;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 15px;
    text-align: center;
}

.text-box {
    position: static;
    text-align:left;
    padding:1px;
  /*  top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);*/
}

/* 1. กำหนดพื้นที่แสดงผล */
.marquee-container {
    width: 100%; /* ความกว้างเต็มพื้นที่ */
    overflow: hidden; /* ซ่อนข้อความที่เกินขอบ */
    white-space: nowrap; /* ป้องกันข้อความขึ้นบรรทัดใหม่ */
    box-sizing: border-box;
    border: 2px solid #ccc;
    padding: 5px 5px;
}

/* 2. กำหนดข้อความที่จะวิ่ง */
.marquee-text {
    display: inline-block;
    padding-left: 100%; /* เริ่มต้นจากนอกขวา */
    /* 3. กำหนด Animation */
    animation: scroll-left 30s linear infinite; /* ชื่อ, เวลา, รูปแบบ, วนซ้ำ */
}

/* 4. กำหนด Keyframes ของ Animation */
@keyframes scroll-left {
    0% {
        transform: translate(0, 0);
    }
    /* เริ่มต้นอยู่ที่ตำแหน่งขวาสุด */
    100% {
        transform: translate(-100%, 0);
    }
    /* จบที่ตำแหน่งซ้ายสุด */
}


.btn1:link,
.btn1:visited {
    text-transform: uppercase;
    text-decoration: none;
    color: black;
    padding: 15px 40px;
    display: inline-block;
    border-radius: 20px;
    transition: all .2s;
    position: relative;
}

.btn1:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
}

.btn1:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
}

.btn1-white {
    background-color: #fff;
    text-align:center;
    color: rgba(0, 0, 0, .2);
    color:black;
    font-size:20px;
    font-style:normal;
}

.btn1-Orang {
    background-color: #ff6a00;
    text-align: center;
    color: #777;
}

.btn1::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .4s;
}

.btn1-white::after {
    background-color: #fff;
}

.btn1-red::after{
    background-color:#258cfb;
}

.btn1:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

.btn-animated {
    animation: movebuttom .5s ease-in-out .75s;
    animation-fill-mode: backwards;
}


#drawingCanvas {
    border: 2px solid #333;
    cursor: crosshair; /* Pen cursor */
}


@keyframes moveInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    80% {
        transform: translate(20px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}
