@import url('https://fonts.googleapis.com/css2?family=Acme&family=Balsamiq+Sans&family=Sarabun:ital@1&family=Ubuntu:wght@300&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    transition: all 1s ease-in-out;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bolder;
    color: black;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

header {
    position: sticky;
    top: 0;
    z-index: 2;
}

.contain-header {
    display: inline-block;
}

.image-header {
    width: 100%;
    height: auto;
    z-index: 3;
}

.contain-menu {
    display: inline-block;
    transition: all 0s;
    z-index: 999;
    position: fixed;
    left: 49px;
    /* top: 40%; */
    cursor: pointer;
}

.menu {
    padding-top: 2px;
    padding-right: 3px;
    background-color: rgb(222, 222, 222);
    width: 25%;
    max-width: 250px;
    height: auto;
}

.menu:hover {
    transition: all 0.5s ease-in-out;
    background-color: rgb(182, 182, 182);
    border-radius: 5px;
}

.menu:active {
    background-color: rgb(158, 158, 158);
    animation: rotate 0.5s ease-in-out;
}

@keyframes rotate {
    50% {
        transform: rotate(360deg);
    }
}

.nav-bar {
    position: absolute;
    opacity: 1;
    z-index: 1;
    /* top: 97%; */
    transition: all 1s ease-in-out;
    width: 20rem;
    left: 3.5%;
    display: none;
    background-color: rgb(206, 206, 206);
}

.nav-items li {
    padding: 3% 0%;
    list-style: none;
}

.nav-items a {
    padding: 20px 30px;
    text-decoration: none;
}

.nav-items li:hover {
    background-color: rgb(182, 182, 182);
}

.content {
    z-index: 0;
    position: relative;
    width: 100%;
    top: 25%;
}

#changeAbleImage {
    z-index: 1;
    width: 100%;
    position: relative;
}

.content-home-image {
    cursor: pointer;
}

.content-image {
    z-index: 1;
    width: 100%;
    position: relative;
}

.nav-machine li:hover {
    background-color: rgb(222, 222, 222);
}

.nav-machine li {
    padding: 3% 0%;
}

.nav-machine a {
    padding: 3% 10%;
}

.nav-machine {
    position: relative;
    opacity: 1;
    top: 10px;
    display: block;
    transition: all 1s ease-in-out;
    width: 20rem;
    left: 0%;
    background-color: rgb(206, 206, 206);
}

.otherMachine {
    position: relative;
    opacity: 1;
    display: block;
    top: 0%;
    transition: all 1s ease-in-out;
    width: 20rem;
    left: 0%;
    background-color: rgb(206, 206, 206);
}

.more {
    position: absolute;
    opacity: 1;
    display: block;
    top: 100%;
    transition: all 1s ease-in-out;
    width: 20rem;
    left: 0%;
    background-color: rgb(206, 206, 206);
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#cross {
    display: none;
    width: 150%;
}

.contain-loading {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: -1;
}

.logo {
    display: flex;
    left: 27%;
    position: absolute;
    top: 6%;
    width: 10%;
}

.loading {
    display: flex;
    margin-top: 20px;
    width: 25%;
    justify-content: center;
    animation: loading 2s ease-in-out 0s infinite;
}

@keyframes loading {
    100% {
        transform: rotate(360deg);
    }
}

.white a {
    color: rgb(78, 78, 82);
    text-decoration: none;
}

.white a:hover {
    transition: all 2s;
    text-shadow: 0 0 10px white, 0 0 20px white;
}

.white {
    letter-spacing: 1px;
    color: rgb(78, 78, 82);
}

.center {
    float: left;
}

.back {
    position: fixed;
    display: none;
    z-index: 2;
    left: 2%;
    top: 27%;
    height: auto;
}

.back>img {
    background-color: gray;
    border-radius: 5px;
    cursor: pointer;
    width: 50px;
}

.back>img:active {
    transition: all 0.5s;
    background-color: rgb(155, 155, 155);
}

.ShowAlone {
    transition: all 2s ease-in-out;
    animation: alone 3s ease-in-out 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: rgb(12, 14, 26);
}

.icon-social {
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 5px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.icon-social:hover {
    animation: upside 0.5s ease-in-out 0s 1;
}

@keyframes upside {
    100% {
        margin-top: -5px;
    }
}

.social-media {
    display: inline-block;
    padding: 2px;
}

.imp-link {
    display: flex;
    flex-direction: row;
    padding: 25px 10px;
    transition: all 0s;
    justify-content: space-around;
}

.imp-link ul li {
    list-style: none;
    padding: 5px;
}

.imp-link ul li a {
    text-decoration: underline;
    white-space: nowrap;
    color: rgb(78, 78, 82);
}

.imp-link ul li a:hover {
    text-decoration: underline;
    color: rgb(204, 204, 204);
}

.imp-link ul li a:focus {
    text-decoration: underline;
    color: rgb(151, 151, 151);
}

a {
    cursor: pointer;
}

.icon {
    width: 25px;
    height: 25px;
}

@keyframes alone {
    from {
        top: 900px;
        opacity: 0.0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

.col {
    margin: 20px;
}

.copy {
    display: flex;
    justify-content: center;
}

@media(max-width:820px) {
    .imp-link {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
}

@media(max-width:625px) {
    .contain-menu {
        top: 19%;
        position: fixed;
    }
}

@media(max-width:406px) {
    .contain-menu {
        top: 8%;
        position: fixed;
    }
}

@media(max-width:460px) {
    .contain-menu {
        position: fixed;
        left: 10%;
        top: 17%;
    }
}

@media(max-width:420px) {
    .contain-menu {
        display: inline-block;
        z-index: 999;
        top: 10px;
        position: fixed;
        left: 25px;
        /* top: 40%; */
        cursor: pointer;
    }
}