@font-face {
    font-family: OpenSans;
    src: url('resources/OpenSans-VariableFont_wdth,wght.ttf');
}

html {
    font-family: "OpenSans", Helvetica, Arial, sans-serif;
    font-size: 2vh;
    color: #636359;
    background: linear-gradient(to bottom, #2e9bbc 0%, #9cd5e7 100%);
    background-attachment: fixed;
}

body {
    margin: 0;
    padding: 0;
    overflow-y: hidden;
}

h1 {
    color: #4ab3d3;
    font-size: 1.5rem;
    margin: 0;
}

p {
    font-size: 0.8rem;
    margin: 5% 0;
}

/* IP Container for alignment */
#ip-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between IP address and button */
    margin: 5% 0;
}

/* Styling for the IP address */
#ip-address {
    font-size: 1.2rem; /* Adjust to your preferred size */
    font-weight: bold; /* Ensures the text is bold */
    color: #4ab3d3; /* Optional: Change the color */
}

/* Button Styling */
#copy-button {
    padding: 5px 10px;
    font-size: 0.8rem;
    background-color: #4ab3d3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

#copy-button:hover {
    background-color: #2e9bbc;
}

/* Center the content */
.external {
    display: table;
    width: 100%;
    height: 100%;
}

.middle {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.internal {
    height: auto; /* Adjust height to content */
    width: 25%;
    max-width: 600px; /* Optional: Max width to prevent it from being too wide on large screens */
    margin-left: auto;
    margin-right: auto;
    padding: 2% 2% 0.5% 2%;
    background-color: #f5f5f5;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px; /* Minimum height to ensure it's not too small on mobile */
}

.footer {
    color: #a9a9a9;
    font-size: 0.7rem;
    margin-top: 2.5%;
    text-align: center;
    display: inline-block;
    width: 100%;
    margin: auto;
    bottom: auto;
    left: auto;
    position: relative;
}

.logo {
    width: 75%;
    margin-bottom: 10%;
}

.button {
    font-size: 0.7rem;
    width: 100%;
    background-color: #4ab3d3;
    display: inline-block;
    padding: 5% 2%;
    margin: 5% 0;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    color: white;
    font-family: "OpenSans", Helvetica, Arial, sans-serif;
}

a {
    height: 100%;
    width: 100%;
    font-size: 0.7rem;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
}

.button:hover {
    background-color: #2e9bbc;
    border-color: #2783a0;
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    html {
        font-size: 1vw;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.8rem;
        margin: 2.5% 0;
    }

    #ip-address {
        font-size: 1.5rem; /* Larger font size for bigger screens */
    }

    .external {
        display: table;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
    }

    .middle {
        display: table-cell;
        vertical-align: middle;
    }

    .internal {
        height: auto;
        width: 25%;
        padding: 2% 2% 0.5% 2%;
        background-color: #f5f5f5;
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    }

    .footer {
        font-size: 0.55rem;
    }

    .logo {
        width: 50%;
        margin-bottom: 5%;
    }

    .button {
        width: 100%;
        padding: 2%;
        margin: 2.5% 0%;
    }

    a {
        font-size: 0.7rem;
    }
}
