
:root {
    --nav-height: clamp(1.5rem, 4vh, 2rem);
    --nav-font-size: clamp(1.25rem, 2.5vw, 1.25rem);
    --nav-icon-size: clamp(3rem, 3vw, 3rem);
    --nav-min-width: clamp(4rem, 8vw, 6rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Sysfont';
    src: url('assets/fonts/sysfont/webfonts/sysfont.woff2') format('woff2'),
    url('assets/fonts/sysfont/webfonts/sysfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }

  .mac-background {
    background-color: #C0C0C0; /* Classic Mac grey */
    background-image: 
        radial-gradient(circle at 0.5px 0.5px, #000 0.5px, transparent 0.5px),
        radial-gradient(circle at 1.5px 1.5px, #000 0.5px, transparent 0.5px);
    background-size: 2px 2px;
    background-position: 0 0, 1px 1px;
}

.white-bar {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: #000000;
    z-index: 1000;
    border-bottom: 1px solid #000000;
    white-space: nowrap;
    overflow: hidden
}

.white-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: 10px 10px 0 0;
    z-index: -1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 clamp(0.1rem, 2vw, .4rem);
    vertical-align: middle;
    margin-right: 0.3rem;
    margin-left: 0;
    height: var(--nav-height);
    line-height: var(--nav-height);
    /* min-width: var(--nav-min-width); */
    color: #000000;
    user-select: none;
    text-decoration: none;
    font-family: Sysfont, Chicago, Geneva, sans-serif;
    font-size: var(--nav-font-size);
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    filter: blur(0.2px);
    color: #333333;
}

.nav-item img {
    width: var(--nav-icon-size);
    height: var(--nav-icon-size);
    vertical-align: middle;
    box-sizing: border-box;
    filter: blur(0.5px);
    object-fit: cover;
    object-position: center;
    transform: translateY(-2.5px);
    max-height: var(--nav-height);
    margin-right: 0.2rem;
}
/* 
@media (max-width: 768px) {
    .nav-item img {
        width: 1.5rem; 
        height: 1.5rem;
    }
} */


.nav-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7.5%;
    width: 85%;
    height: 97%;
    background: #F0F0F0;
    z-index: -1;
}

.homepage-social-icons-section{
    margin-top: 5vh;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 20%;
}

.homepage-other-icons-section{
    position: absolute;
    right: 0;
    margin-top: 5vh;
    /* margin-left: auto;  */
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 20%;
}

.homepage-icon,
.homepage-icon:visited,
.homepage-icon:active {
    text-decoration: none;
    color: inherit;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* width: 8vh;
    margin: 5px 0; */
}

.homepage-icon:focus p,
.homepage-icon:hover p {
    border: 1px solid blue;
}


.homepage-icon img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
    margin: 0;
}

.homepage-icon a:link {
    text-decoration: none;
    color: #000;
}

.homepage-icon p {
    /* margin-top: 1vh; */
    width: 30%;
    min-width: fit-content;
    height: 30%;
    font-family: Sysfont, Chicago, Geneva, sans-serif;
    font-weight: 200;
    padding: 0.1rem 0.5rem;
    margin: -20px;
    /* border: 1px solid #000; */
    background-color: #FFF;
    text-align: center;
    white-space: nowrap;
}


img.homepage-icon.github  {
    margin-top: 20px;
    margin-bottom: 9px;
    transform: scale(.73) translateY(4px);
} 

p.homepage-icon.github  {
    margin-bottom: 0px;
}


.homepage-icon .trash {
    margin-top: 10px;
    margin-bottom: 6px;
    transform: scale(.5) translateX(4px);
}

.time-display {
    margin-left: auto;
    font-family: Sysfont, Chicago, Geneva, sans-serif;
    font-size: var(--nav-font-size);
    font-weight: 800;
    letter-spacing: 0.5px;
    position: absolute;
    filter: blur(0.2px);
    color: #333333;
    right: 2%;
    height: 100%;
    display: flex;
    align-items: center;
}

.error-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 300px;
    width: 700px;
    background: white;
    border: 2px solid #212121;
    box-shadow: 2px 2px 0px #000;
    font-size: 4rem;
    font-family: 'Sysfont', 'Chicago', 'Geneva', sans-serif;
}

.dialog-title-bar {
    background: #c0c0c0;
    padding: 4px 8px;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}



.title-text {
    flex: 1;
    text-align: center;
}

.dialog-content {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.error-icon {
    font-size: 24px;
    margin-top: 4px;
}

.error-message {
    flex: 1;
}

.error-message p {
    margin: 0 0 8px 0;
    font-size:25px;
}

.error-id {
    text-align: right;
    font-size: 10px;
    color: #666;
}

.dialog-buttons {
    position: absolute;
    bottom: 12px;
    left: 16px;
    display: flex;
    gap: 8px;
    
}

.dialog-button {
    background: #c2c2c2;
    border: 1.5px solid #151515;
    padding: 1.5px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 5px;
    /* box-shadow: inset -1px -1px 1px rgba(27, 27, 27, .9),
    inset 1px 1px 2px rgba(253, 253, 253); */

    /* transform: translate(1px, 1px); */
}

.dialog-button.primary {
    position: relative;
    /* background: #e0e0e0; */
    background: #dddddd;
    /* font-weight: bold; */
    padding: 2px 15px 2px 15px;
    border: 1.5px solid #151515;
    box-shadow: inset -1px -1px 1px rgba(27, 27, 27, .9),
                inset 1px 1px 1px rgba(253, 253, 253);
    border: 1.5px solid #151515;
    border-radius: 5px;
}

.dialog-button.primary::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #c2c2c2;
    z-index: -1;
    /* transform: scale(.95); */
    border-radius: 5px;

}
.dialog-button:hover {
    background: #d0d0d0;
}