@font-face {
    font-family: 'Departure Mono';
    src: url('../fonts/DepartureMono-Regular.otf') format('opentype');
    /* Adjust the path if needed */
    font-weight: normal;
    font-style: normal;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Departure Mono', monospace;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
    background-image:
        linear-gradient(45deg, black 25%, transparent 25%),
        linear-gradient(-45deg, black 25%, transparent 25%);
    background-size: 3px 3px;
    color: #333;
}

/* ############## Start of Window Code ############## */
.window {

    border: 2px solid #333;
    background: #fff;
    position: absolute;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 1);
    overflow: hidden;
}

.header {
    color: black;
    border: 2px solid black;
    border-top: none;
    border-right: none;
    border-left: none;
    padding: 10px;
    cursor: move;
    background-color: white;

}

.clock {
    margin-left: auto;
    margin-right: 30px;
    font-size: 1em;
    color: black;
}

.content {
    padding: 20px;
}

.content a {
    text-decoration: underline;
    color: #666666;
}

.tiny-text {
    font-size: 0.8em;
    text-align: center;
}

.close-btn {
    cursor: pointer;
    color: black;
    font-weight: bold;
    padding: 0 8px;
    margin-right: 20px;
    font-size: 16px;
    float: left;
    border: 2px solid black;
}

.close-btn:hover {
    color: white;
    background-color: black;
}

/*Starting Locations */

#window1 {
    /*746a*/
    top: 60px;
    left: 100px;
    width: 250px;
}

#window2 {
    /*About*/
    top: 310px;
    left: 50px;
    width: 250px;
    display: none;
}


#window3 {
    /*Projects*/
    top: 50px;
    left: calc(50% - 180px);
    width: 350px;
    display: none;
}

#window4 {
    /*Calc*/
    top: 400px;
    left: 95px;
    width: 250px;
    display: none;
    background-image:
        linear-gradient(45deg, black 25%, transparent 25%),
        linear-gradient(-45deg, black 25%, transparent 25%);
    background-size: 4px 4px;

}



/* ############## End of Window Code ############## */




/*Table*/

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    overflow-x: auto;
    font-size: 0.6em;
    text-align: left;
}

th,
td {
    padding: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}



th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Style for the first column */
td:first-child {
    font-weight: bold;
    color: #666666;
}



/*Calculator*/
.calculator {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto repeat(5, 1fr);
    gap: 10px;
    max-width: auto;
    margin: auto;
}

.calc-btn {
    font-family: 'Departure Mono', monospace;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
    padding: 10px 5px;
    font-size: 14px;
    border: 1px solid #333;
    background-color: white;
    cursor: pointer;
}

.double-horizontal {
    grid-column: span 2;
}

.double-vertical {
    grid-row: span 2;
}

.calc-window {
    grid-column: span 4;
    text-align: left;
    width: 85%;
    background-color: white;
    padding: 15px;
    border: 2px solid #333;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
}

.calc-btn:hover {
    background-color: #ccc;
}

/*Menu Bar*/

.menu-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: white;
    padding: 0;
    font-size: 1em;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.menu-bar a {
    text-decoration: none;
    color: black;
    padding: 10px 20px;
    margin: 0;
    display: block;
    position: relative;
    overflow: hidden;
}

.menu-bar a:hover {
    color: white;
    background-color: black;
}

.menu-bar a:first-of-type {
    background-color: black;
    color: white;
}

.menu-bar a:first-of-type::after {
    content: "⚛︎";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: white;
    font-size: 2em;
}

.menu-bar a:first-of-type:hover {
    color: transparent;
}

.menu-bar a:first-of-type:hover::after {
    opacity: 1;
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;

}

.linkie {
    text-decoration: underline;
    color: #0000ff !important;
}

@media screen and (max-width: 768px) {
    .menu-bar {
        align-items: flex-start;
        font-size: 0.6em;
        text-align: center;
    }

    .menu-bar a {
        padding: 10px;
        width: 100%;
    }

    .clock {
        margin-right: 10px;
        font-size: 0.6em;
        margin-top: 6px;
    }

    table {
        font-size: 0.5em;
    }

    #window3 {
        top: 40px;
        left: 10px;
        width: calc(100% - 20px);
    }
}

@media screen and (min-width: 769px) {
    table {
        font-size: 1em;
        width: 100%;
    }

    #window3 {
        top: 80px;
        left: calc(50% - 350px);
        width: 700px;
    }
}