@font-face {
    font-family: 'pixel';
    src: url('assets/Chicago.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0px;
}

#canvas-container {
    width: 100%;
    margin-left: 0vw;
    height: 50vh;
    position: relative;
    overflow: hidden;
    margin-top: -10em;
}

#overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgb(255, 0, 0); /* Semi-transparent red */
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease; /* Smooth transition */
    z-index: 10; /* Ensure it is above other elements */
}

#ideas-overlay {
    position: fixed;
    background: #DB2553;
    border-radius: 12px;
    pointer-events: none;
    z-index: 2000;
    transition:
        left 0.5s, top 0.5s,
        width 0.5s, height 0.5s;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
}

.sidebar {
    width: 8vw;
    height: 100vh;
    position: fixed;
    border-right: solid 10px black;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    z-index: 20;
}

.sidebar-content {
    font-size: 3rem;
    min-width: 20vw;
    transform: rotate(-90deg);
    text-align: center;
    color: #DB2553;
}

/* WINDOWS CSS */

.project-window {
    user-select: none;
  -webkit-user-select: none; /* for Safari */
  -ms-user-select: none;     /* for IE/Edge */
}

.image-window {
    position: absolute;
    box-shadow: 1px 1px 0 0 #000000;
    padding: 0.5rem;
    background-color: #1E1E1E;
    max-width: 90%;
    overflow: hidden;
}   

.contact-window {
    width: 100%;
}

.info-window {
    top: 25em;
    left: -80px;
    box-shadow: 1px 1px 0 0 #000000;
    padding: 0.5rem;
    background-color: #1e1e1ede;
    min-width: 55%;
    max-width: 90%;
    min-height: 120px;
}

.alert-window {
    position: relative;
    top: 10px;
    right: -20em;
    box-shadow: 1px 1px 0 0 #000000;
    padding: 0.5rem;
    background-color: #1E1E1E;
    width: 30%;
    min-height: 10px;
}

.content {
    width: 40vw;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
}

.intro {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.intro-text {
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
}

.spacer {
    margin-top: 10rem;
}

.project {
    position: relative;
    height: 40rem;
    min-width: 100%;
    margin-bottom: 10rem;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.title-bar-text {
    color: white;
    font-size: 1.5em;
}

.title-bar-controls {
    margin: 0.1rem;
    margin-right: -0.8em;
}

.title-bar-controls button {
    width: 2em;
    height: 2em;
    position: relative;
    cursor: pointer;
}

.close-icon {
    height: 2em;
    margin-right: 0.6em;
}

.window-content {
    font-size: 12px;
    background-color: #f0f0f0;
    min-height: 5em;
    margin: 0;
    padding: 0;
}

.window-text {
    padding: 2.5%;
    width: 80%;
    margin-left: 5%;
    font-size: 1.2rem;
}

.project-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.projects {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90vw;
    margin-left: -25vw;
    gap: 5%;
    justify-content: space-evenly;
}

.project-wrapper {
    height: 50vh;
    width: 35%;
    position: relative;
    margin-bottom: 10%;
}

.hero {
    width: 55%;
    margin-bottom: 20%;
    margin-left: 10%;
    margin-right: 10%;
}

.hero-window {
    top: 450px;
}


.tag-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.tag-button, .project-button {
    padding: 10px 20px;
    border: 2px solid #000;
    background-color: #ddd;
    color: #444;
    font-size: 2em;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: auto;
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: all 0.1s ease;
    box-shadow: 2px 2px 0 #888;
}

.tag-button:hover {
    background-color: #ccc;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #888;
}

.tag-button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.project-link {
    color: #e41d64;
    font-size: 1.5em;
    text-decoration: underline;
}

.project-button {
    color: #e41d64;
    background-color: #ddd;
    font-size: 1.5em;
    padding: 10px 20px;
    width: 80%;
    margin-left: 5%;
    box-shadow: 3px 3px 0 #888;
}


.back-button {
    margin-top: 1em;
    margin-left: 0%;
}


.project-button:hover {
    background-color: #ccc;
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #888;
}

.project-button:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.project-button a {
    color: inherit;
    text-decoration: none;
}

/* Additional retro styling */
.tag-button {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.action-buttons {
    padding: 1em;
}

.email-field {
    background-color: #f8f8f8;
    border: 3px inset #ccc;
    padding: 15px 15px;
    margin-bottom: 15px;
    margin-top: 15px;
    font-size: 1.8em;
    color: #333;
    border-radius: 2px;
    width: 94%;
    margin-left: 1%;
}

.red {
    color: #DB2553;
}

.black {
    color: #333;
}

.alert-text {
    text-align: center;
    font-size: 1.5em;
    padding: 5px;
    padding-bottom: 0px;
}

.title {
    font-size: 3em;
    margin-bottom: 2em;
    color: #DB2553;
    width: 100%;
    text-align: center;
}

.small-spacer {
    margin-bottom: 0.5em;
}

.project-wrapper-alt {
    height: auto;
    width: 70%;
    position: relative;
    display: block;
    margin-left: 15%;
    bottom: -30em;
    margin-bottom: 8em;
    z-index: 10;
}

.bottom {
    background-color: #DB2553;
    height: 30em;
    width: 100%;
    position: relative;
    bottom: 0;
}


@media only screen and (min-width: 375px) and (max-width: 767px) {
    .content {
        width: 90vw;
    }
    .project-wrapper {
        width: 90vw;
        margin-left: -2vw;
    }

    .info-window {
        top: 300px;
    }

    .hero-window {
        top: 150px;
    }

    .hero {
        width: 90vw;
        margin-left: 5%;
    }
    #canvas-container,
    #ideas-overlay {
        display: none !important;
    }

    .contact-window {
        min-width: 80vw;
        margin-left: -10vw;
    }

    .email-field {
        font-size: 1.5em;
        width: 90%;
    }

    .tag-button, .project-button {
        font-size: 1.5em;
        padding: 8px 16px;
    }

    .project-information-right, 
    .project-information-left {
        display: none;
    }

    .contact-window.alt {
        width: 95vw;
        margin-left: 2vw;
    }

    .projects {
        background-color: red;
    }

}