* {
    box-sizing: border-box;
}

.cactus-classical-serif-regular {
  font-family: "Cactus Classical Serif", "Noto Serif TC", serif;
  font-weight: 400;
  font-style: normal;
}

.dotgothic16-regular {
  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.noto-serif-tc-<uniquifier> {
  font-family: "Noto Serif TC", "Noto Serif TC", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

body {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0;
    font-family: "Cactus Classical Serif", "Noto Serif TC", serif;
    text-align: center;
}

#ip-text {
    font-size: 1.8rem;
    font-family: "DotGothic16", sans-serif;
}

#header-div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 12px;
}

#main-title {
    margin: 0;
}

#js-button {
    width: min(280px, 80%);
    font-size: 1rem;
    padding: 10px;
    margin-top: 18px;
    margin-bottom: 18px;
    background-color: rgba(255, 255, 255, 1);
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    border-radius: 15px;
    font-family: "Cactus Classical Serif", "Noto Serif TC", serif;
}

#show-ip {
    width: min(280px, 80%);
    font-size: 1.5rem;
    padding: 10px;
    margin-top: 18px;
    margin-bottom: 18px;
    background-color: rgba(255, 255, 255, 1);
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    border-radius: 15px;
    font-family: "Cactus Classical Serif", "Noto Serif TC", serif;
}

#js-button a {
    color: inherit;
    text-decoration: none;
}

#close-dialog {
    width: min(300px, 80%);
    font-size: 1rem;
    padding: 10px;
    margin-top: 18px;
    margin-bottom: 18px;
    background-color: rgba(255, 255, 255, 1);
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    border-radius: 15px;
    font-family: "Cactus Classical Serif", "Noto Serif TC", serif;
}

#ip-dialog {
    max-width: calc(100vw - 24px);
    padding: 30px;
    background-color: rgba(255, 255, 255, 1);
    color: #000000;
    text-align: left;
    align-items: center;
    border: 1px solid #000;
    border-radius: 15px;
}

#close-dialog:hover,
#show-ip:hover,
#js-button:hover {
    background-color: black;
    color: white;
    transform: translateY(1px);
}

#header-img {
    max-width: 50px;
    margin: 15px;
}

footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 12px 18px;
}

footer p {
    margin: 0;
}

@media (max-width: 480px) {
    #main-title {
        font-size: 1.5rem;
    }

    #ip-dialog {
        padding: 20px;
    }

    #show-ip {
        font-size: 1.2rem;
    }
}