/* font import */
@import url('https://fonts.googleapis.com/css2?family=Mali:wght@200;300;400;500;600;700&display=swap');

/* reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* vars */
:root {
    --background-color: #000000;
    --text-color: #F0F0F0;
    --highlight-color: #D3D3D3;
}

/* matrix canvas */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* global */
body {
    font-family: 'Mali', system-ui, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh; /* body is at least viewport height */
    padding: 20px; /* padding to body */
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* container */
.container {
    border: 2px solid var(--text-color);
    box-shadow: 0 0 30px 2px var(--text-color);
    border-radius: 15px;
    padding: 15px;
    max-width: 500px;
    width: 100%;
}

/* pfp */
.profile-img {
    border-radius: 50%;
    height: 100px;
    border: 2px solid var(--text-color);
    margin-top: 10px;
}

/* headings */
h1 {
    font-weight: 600;
}

h2 {
    font-size: 20px;
    font-weight: 600;
}

/* para */
p {
    margin: 10px 0;
}

.small {
    font-size: 14px;
    color: var(--highlight-color);
    margin-bottom: 0;
}

/* button container */
.button-container {
    display: flex;
    flex-wrap: wrap; /* allow wrap buttons */
    gap: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--text-color); /* line */
    padding-top: 15px; /* spacing */
}

/* link style */
.button-link {
    flex: 1 1 calc(50% - 15px); /* adjust width for 2/row */
    min-width: 200px; /* min button width */
    text-decoration: none;
    color: var(--text-color);
}

/* button */
.button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid var(--text-color);
    border-radius: 5px;
    box-shadow: 0 0 0 0 var(--text-color);
    transition: box-shadow 0.3s ease;
}

.button:hover {
    box-shadow: 0 0 10px 1px var(--text-color);
}

/* button icon */
.button-icon {
    width: 32px;
    height: 32px;
}

/* button text */
.button-text {
    overflow: hidden;
    text-align: left;
}

.button-text p {
    margin: 0;
    line-height: 1.2;
}

.button-title {
    font-weight: 600;
    font-size: 14px;
}

.button-subtitle {
    font-size: 14px;
    color: var(--highlight-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* mediaquery for narrow screens */
@media (max-width: 600px) {
    .button-link {
        flex: 1 1 100%; /* full width */
    }
    .container {
        padding: 15px;
        margin: 20px; 
    }
}

/* mediaquery for short viewports */
@media (max-height: 500px) {
    body {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
