* {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

body, html {
    height: 100%;
}

body {
    background-image: url("media/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;

    padding: 50px 0;
    box-sizing: border-box;
}

main {
    border-radius: 10px;
    background-color: white;
    -webkit-box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
    padding: 10px 10px;
}

.logo {
    display: block;
    max-width: 380px;
    width: 70%;
    height: auto;
    margin: -35px auto 20px;
}

.title {
    margin-bottom: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ip-copy {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: #eef1f4;
    border: 1px solid #d7dbe0;
    box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 40px 10px 20px;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #222222;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ip-copy:hover,
.ip-copy:focus-visible,
.ip-copy.copied {
    background-color: #e2e6ea;
}

.ip-copy-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: #555555;
    transition: color 0.15s ease, transform 0.15s ease;
}

.ip-copy:hover .ip-copy-icon,
.ip-copy:focus-visible .ip-copy-icon {
    color: #222222;
    transform: translateY(-50%) scale(1.2);
}

.ip-copy-icon .icon-check {
    display: none;
    color: #2e7d32;
}

.ip-copy.copied .ip-copy-icon .icon-copy {
    display: none;
}

.ip-copy.copied .ip-copy-icon .icon-check {
    display: inline-flex;
}

.ip-copy:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 3px;
}

.title,
.description,
.version-info {
    text-align: center;
}

.description {
    font-size: 1.05rem;
    color: #222222;
    margin-bottom: 8px;
}

.version-info {
    font-size: 0.8rem;
    color: #767676;
    margin-bottom: 5px;
}

.links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;

}

.link {
    padding: 5px;
    border-radius: 10px;
    flex: 1 1 0;

    text-decoration: none;
    color: black;
    -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.15s ease, filter 0.15s ease;

    display: flex;
    align-items: center;
    gap: 5px;
}

.link:hover,
.link:focus-visible {
    filter: brightness(0.92);
    -webkit-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3);
}

.link:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .link,
    .ip-copy,
    .ip-copy-icon {
        transition: none;
    }
}

.link-title,
.link-info {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-icon {
    width: 50px;
}

.link-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.link.discord {
    background-color: #7289da;
}

.link.store {
    background-color: #00c3ff;
}

.link.name-mc {
    background-color: #3ac608;
}

@media only screen and (min-width: 700px) {
    .container {
        padding: 150px 0 50px 0;
        width: 70%;
    }
    .links {
        flex-direction: row;
    }
    .link {
        overflow: hidden;
    }
}