* {
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100dvh;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(180deg, #293855 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    height: 100dvh;
    position: relative;
}

.nav {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: flex-start;
    padding: 0px;
}

.nav img {
    height: 100px;
}

.mid {
    display: flex;
    justify-content: center;
    margin-top: 100px;
}

.main-menu {
    width: 1386px;
    height: 577px;
    display: flex;
    justify-content: space-between;
}

.the-map {
    width: 587px;
    height: 577px;
    padding-top: 150px;
    cursor: pointer;
}

.the-map:hover .img-background-left img {
    transform: scale(1.03);
}

.the-map:hover .img-background-right img {
    transform: scale(1.03);
}

.the-map:hover .txt {
    background: #F8F6EF;
}

.the-map:hover .text-name::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.img-background-left,
.img-background-right {
    width: 590px;
    height: 200px;
    border-right: 3px solid #C0AE67;
    border-bottom: 2px solid #C0AE67;
    border-left: 3px solid #C0AE67;
    background: linear-gradient(180deg, #293855 0%, rgba(111, 121, 141, 0.67) 100%);
}

.img-background-left img {
    position: absolute;
    top: 195px;
}

.img-background-right img {
    position: absolute;
    top: 200px;
}

.txt {
    width: 590px;
    height: 190px;
    flex-shrink: 0;
    border-radius: 0px 0px 10px 10px;
    border: 3px solid #C0AE67;
    background: #F8F6EF;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
}

/* Ripple Out */
@-webkit-keyframes hvr-ripple-out {
    100% {
        top: -12px;
        right: -12px;
        bottom: -12px;
        left: -12px;
        opacity: 0;
    }
}

@keyframes hvr-ripple-out {
    100% {
        top: -12px;
        right: -12px;
        bottom: -12px;
        left: -12px;
        opacity: 0;
    }
}

.txt:before {
    content: '';
    position: absolute;
    border: #C0AE67 solid 1px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
}

.txt:hover:before,
.txt:focus:before,
.txt:active:before {
    -webkit-animation-name: hvr-ripple-out;
    animation-name: hvr-ripple-out;
}


@keyframes nameZoomIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.text-name {
    font-size: 36px;
    font-family: 'DotGothic16', sans-serif;
    color: #293855;
    position: absolute;
}

.text-name::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    border-bottom: dashed 3px #C0AE67;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a {
    text-decoration: none;
}

.card {
    position: absolute;
    width: 70%;
    height: 280px;
    border-radius: 5px;
    top: 10%;
    z-index: 4;
    display: none;
}

@media(max-width: 1450px) {

    .container {
        width: 100%;
        height: 100dvh;
    }

    .nav {
        width: 100%;
        height: 100px;
        display: flex;
        justify-content: flex-start;
        padding: 0px;
    }

    .nav img {
        height: 80px;
    }

    .mid {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 5%;
    }

    .main-menu {
        width: 70%;
        height: 45%;
        display: flex;
        justify-content: space-between;
        gap: 60px;
    }

    .the-map {
        width: 350px;
        padding-top: 120px;
        cursor: pointer;
    }

    .img-background-left,
    .img-background-right {
        width: 350px;
        height: 150px;
        border-right: 3px solid #C0AE67;
        border-bottom: 2px solid #C0AE67;
        border-left: 3px solid #C0AE67;
        background: linear-gradient(180deg, #293855 0%, rgba(111, 121, 141, 0.67) 100%);
    }

    .img-background-left img {
        width: 350px;
        position: absolute;
    }

    .img-background-right img {
        width: 350px;
        position: absolute;

    }

    .txt {
        width: 350px;
        height: 100px;
        flex-shrink: 0;
        border-radius: 0px 0px 10px 10px;
        border: 3px solid #C0AE67;
        background: #F8F6EF;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text-name {
        font-size: 20px;
        font-family: 'DotGothic16', sans-serif;
        color: #293855;
    }
}
@media (max-width: 1024px) {

    .card {
        position: absolute;
        width: 70%;
        height: 280px;
        border-radius: 5px;
        top: 10%;
        z-index: 4;
        display: block;
    }

    .card-active {
        display: none;
    }
    .card-nav {
        width: 100%;
        height: 60px;
        background-color: #293855;
        border-radius: 5px 5px 0 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-right: 10px;
    }

    .card-content {
        width: 100%;
        height: calc(100% - 60px);
        border: solid 5px #293855;
        border-radius: 0 0 5px 5px;
        background-color: rgba(248, 246, 239);
        padding: 2%;
    }

    .card-title {
        width: 100%;
        font-size: 32px;
        text-align: center;
        border-bottom: solid 5px #C0AE67;
        color: #293855;
    }

    .card-txt {
        width: 100%;
        /* margin-top: 20px; */
        font-size: 20px;
        color: #293855;
        margin: 2% 2%;
    }

}
@media(max-width: 932px) {

    .container {
        width: 100%;
        height: 100dvh
    }

    .nav {
        width: 100%;
        height: 50px;
        display: flex;
        justify-content: flex-start;
        padding: 0px;
    }

    .nav img {
        height: 60px;
    }

    .mid {
        width: 100%;
        height: calc(100% - 50px);
        display: flex;
        justify-content: center;
        margin-top: 0;
    }

    .main-menu {
        width: 60%;
        height: 55%;
        display: flex;
        justify-content: space-between;
    }

    .the-map {
        width: 200px;
        height: 60%;
        padding-top: 0;
        cursor: pointer;
        margin-top: 50%;
    }

    .img-background-left,
    .img-background-right {
        width: 200px;
        height: 100px;
        border-right: 3px solid #C0AE67;
        border-bottom: 2px solid #C0AE67;
        border-left: 3px solid #C0AE67;
        position: relative;
        background: linear-gradient(180deg, #293855 0%, rgba(111, 121, 141, 0.67) 100%);
    }

    .img-background-left img {
        width: 200px;
        position: absolute;
        margin-top: 0;
        top: -50px;
    }

    .img-background-right img {
        width: 200px;
        position: absolute;
        margin-top: 0;
        top: -50px;
    }

    .txt {
        width: 200px;
        height: 70px;
        flex-shrink: 0;
        border-radius: 0px 0px 10px 10px;
        border: 3px solid #C0AE67;
        background: #F8F6EF;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text-name {
        font-size: 20px;
        font-family: 'DotGothic16', sans-serif;
        color: #293855;
    }
}
@media(max-width: 667px) {

    .card {
        position: absolute;
        width: 70%;
        height: 280px;
        border-radius: 5px;
        top: 10%;
        z-index: 4;
        display: none;
    }

    .container {
        width: 100%;
        height: 100dvh;
    }

    .nav {
        width: 100%;
        height: 40px;
        display: flex;
        justify-content: flex-start;
        padding: 0px;
    }

    .nav img {
        height: 50px;
    }

    .mid {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .main-menu {
        width: 60%;
        display: flex;
        justify-content: space-between;
    }

    .the-map {
        width: 170px;
        padding-top: 0px;
        cursor: pointer;
    }

    .img-background-left,
    .img-background-right {
        width: 170px;
        height: 80px;
        border-right: 3px solid #C0AE67;
        border-bottom: 1px solid #C0AE67;
        border-left: 3px solid #C0AE67;
        position: relative;
        background: linear-gradient(180deg, #293855 0%, rgba(111, 121, 141, 0.67) 100%);
    }

    .img-background-left img {
        width: 170px;
        position: absolute;
        top: -40px;
    }

    .img-background-right img {
        width: 170px;
        position: absolute;
        top: -40px;
    }
}
/* 此667px版為txt專屬 */
@media (max-width: 667px){
    .txt {
        width: 170px;
        height: 30%;
        flex-shrink: 0;
        border-radius: 0px 0px 10px 10px;
        border: 3px solid #C0AE67;
        background: #F8F6EF;
        display: flex;
        justify-content: center;
        align-items: center;
        -webkit-transform: perspective(1px) translateZ(0);
        transform: perspective(1px) translateZ(0);
        box-shadow: 0 0 1px rgba(0, 0, 0, 0);
        position: relative;
    }
    
    /* Ripple Out */
    @-webkit-keyframes hvr-ripple-out {
        100% {
            top: -12px;
            right: -12px;
            bottom: -12px;
            left: -12px;
            opacity: 0;
        }
    }
    
    @keyframes hvr-ripple-out {
        100% {
            top: -12px;
            right: -12px;
            bottom: -12px;
            left: -12px;
            opacity: 0;
        }
    }
    
    .txt:before {
        content: '';
        position: absolute;
        border: #C0AE67 solid 1px;
        border-radius: 0px 0px 10px 10px;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        -webkit-animation-duration: 1s;
        animation-duration: 1s;
    }
    
    .txt:hover:before,
    .txt:focus:before,
    .txt:active:before {
        -webkit-animation-name: hvr-ripple-out;
        animation-name: hvr-ripple-out;
    }
    
    
    
    @keyframes nameZoomIn {
        0% {
            transform: scale(0);
        }
    
        50% {
            transform: scale(1.2);
        }
    
        100% {
            transform: scale(1);
        }
    }
    
    .text-name {
        font-size: 14px;
        font-family: 'DotGothic16', sans-serif;
        color: #293855;
        position: absolute;
    }
    
    .text-name::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2px;
        bottom: 0;
        left: 0;
        border-bottom: dashed 3px #C0AE67;
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
    }
    
    a {
        text-decoration: none;
    }
}

@media (max-width:445px) {
    body {
        margin: 0;
        padding: 0;
        margin: 0 auto;
        padding: 0;
        background: linear-gradient(180deg, #293855 0%, #000 100%);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container {
        width: 100%;
    }

    .nav {
        width: 100%;
        height: 50px;
        display: flex;
        justify-content: flex-start;
        padding: 0;
    }

    .nav img {
        height: 60px;
    }

    .mid {
        width: 100%;
        height: calc(100dvh - 50px);
        display: flex;
        justify-content: center;
        margin-top: 0;
    }

    .main-menu {
        width: 200px;
        height: 80%;
        display: flex;
        flex-direction: column;
        gap: 10%;
        justify-content: space-evenly;
    }

    .the-map {
        width: 200px;
        height: 100%;
        padding: 0px;
        cursor: pointer;
    }

    .img-background-left,
    .img-background-right {
        width: 200px;
        height: 50%;
        margin: auto;
        position: relative;
        border-right: 3px solid #C0AE67;
        border-bottom: 2px solid #C0AE67;
        border-left: 3px solid #C0AE67;
        background: linear-gradient(180deg, #293855 0%, rgba(111, 121, 141, 0.67) 100%);
    }

    .img-background-left img {
        width: 200px;
        position: absolute;
        margin-top: 0;
        top:-50px;
    }

    .img-background-right img {
        width: 200px;
        margin-top: 0;
        position: absolute;
        top: -50px;
    }

    .txt {
        width: 200px;
        height: 70px;
        flex-shrink: 0;
        border-radius: 0px 0px 10px 10px;
        border: 3px solid #C0AE67;
        background: #F8F6EF;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text-name {
        font-size: 14px;
        font-family: 'DotGothic16', sans-serif;
        color: #293855;
        border-bottom: dashed 3px #C0AE67;
    }
}


