*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #fff;
    font-family: roboto, sans-serif;
    overflow: hidden;
    opacity: 1;
    transition: opacity .25s ease-in-out;
}

body.loading {
    opacity: 0;
}

::-moz-selection {
    /* Code for Firefox */
    color: rgba(33, 33, 33, 0.5);
    background: rgba(255, 255, 255, 0.5);
}

::selection {
    color: rgba(33, 33, 33, 0.5);
    background: rgba(255, 255, 255, 0.5);
}

.home {
    height: 100vh;
    position: relative;
}

.home video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home .home-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%)translateY(-50%);
    color: #fff;
    text-align: center;
}

.home h1 {
    font-family: Playfair Display, serif;
    font-size: clamp(50px, 15vw, 100px);
    line-height: 1.1;
}

.home p {
    font-size: clamp(10px, 3vw, 20px);
    margin-top: 10px;
}

.contact h1 {
    padding-top: 30px;
    color: #333;
    font-family: Playfair Display, serif;
    font-size: clamp(40px, 12vw, 80px);
    line-height: 1.1;
    text-align: center;
}

.contact form.enquiry {
    margin: 0 auto;
    width: clamp(300px, 80vw, 940px);
}

.contact .entry {
    border: 4px solid #333;
    border-radius: 5px;
    margin: 25px 0 10px;
    position: relative;
    font-family: 'Open Sans', 'Noto Sans TC', sans-serif;
}

.contact .entry.required {
    border-color: red;
}

.contact .entry h3 {
    background-color: #FFF;
    color: #333;
    text-align: center;
    display: block;
    position: absolute;
    top: -12px;
    left: 30px;
    line-height: 1em;
    padding: 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 40px);
}

.contact .entry .input {
    display: block;
    width: 100%;
    background-color: #FFF;
    color: #111;
    border: none;
    font-size: 1.2em;
    box-shadow: none;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    outline: none;
    padding: 10px;
}

.contact .entry textarea.input {
    max-width: 100%;
    min-width: 100%;
}

.contact .h-captcha {
    margin: 20px auto 0;
    width: max-content;
}

.contact .error p {
    color: red;
    font-weight: 700;
    text-align: center;
}

button {
    display: block;
    font-size: clamp(14px, 1.5vw, 18px);
    border-radius: 5px;
    background: transparent;
    padding: 12px 20px;
    cursor: pointer;
}

.home button {
    margin: 50px auto 0;
    border: 1px solid #f1f1f1;
    color: #fff;
}

.contact button {
    margin: 20px auto 0;
    border: 3px solid #333;
    color: #333;
    font-weight: 700;
    position: relative;
    width: 250px;
}

.contact button:disabled,
.contact button:disabled:hover {
    cursor: no-drop;
}

.contact button.loading {
    cursor: wait;
}

.contact button.done {
    cursor: default;
    color: green;
}

.contact button .ring {
    display: none;
}

.contact button.loading span {
    opacity: 0;
}

.contact button.loading .ring {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translateX(-50%)translateY(-50%);
}

.contact button.loading .ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    margin: 9px;
    border: 3px solid #333;
    border-radius: 50%;
    animation: ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #333 transparent transparent transparent;
}

.contact button.loading .ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.contact button.loading .ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.contact button.loading .ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}