:root {
    --background-landing-page: #0c0c0c;
    --blue: #111188;
    --dark-blue: #221C5E ;
    --gray-button: rgb(170, 170, 170);
}


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


/*============================================LANDING PAGE============================================*/
#landing-page {
    width: 100%;
    height: 100vh;
    background-color: var(--background-landing-page);
    overflow: hidden;
}

.landing-text {
    color: lightgray;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.landing-text-title {
    display: inline-flex;
}

.landing-text-title h1 {
    font-size: 40px;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 3px;
    width: 100%;
    animation: typing 10s steps(7) infinite alternate;
    margin-bottom: 5px;
}

.title-cursor {
    font-size: 40px;
    animation: cursor 0.7s infinite;
}

@keyframes cursor {
    50% {opacity: 0;}
}

@keyframes typing {
    0% {width: 0%;}
    2% {width: 0%;}
    25% {width: 100%;}
    100% {width: 100%;}
}

.landing-text p {
    font-family: sans-serif;
    font-size: 22px;
}

.landing-text p span {
    background-color: var(--blue);
    transition: 0.7s ease;
}

@media screen and (max-width: 600px){
    .landing-text p, .landing-text p span {
        font-size: 16px;
    }
}

.landing-text-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.button {
    display: block;
    width: 150px;
    padding: 8px;
    color: black;
    background-color: var(--gray-button);
    text-decoration: none;
    border-radius: 40px;
    text-align: center;
    margin: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 3px 3px var(--blue);
    transition: 0.2s ease;
}

.button:hover {
    box-shadow: 5px 5px blue;
    transform: scale(107%);
    background-color: lightgray;
}



/*============================================PARTICLES============================================*/
.particles-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.particles-container span {
    height: 2.5px;
    width: 2.5px;
    border-radius: 100%;
    position: absolute;
    opacity: 0.5;
}

.particles-container span:nth-child(2n){
    background-color: #264653;
    box-shadow: 0 0 10px #264653;
    animation: particlesBlinking 5s infinite;
    animation-delay: 2.5s;
}

.particles-container span:nth-child(3n){
    background-color: #2a9d8f;
    box-shadow: 0 0 10px #2a9d8f;
    animation: particlesBlinking 5s infinite;
    animation-delay: 2s;
}

.particles-container span:nth-child(10n){
    background-color: #e9c46a;
    box-shadow: 0 0 10px #e9c46a;
    animation: particlesBlinking 5s infinite;
}

.particles-container span:nth-child(5n){
    background-color: #f4a261;
    box-shadow: 0 0 10px #f4a261;
    animation: particlesBlinking 5s infinite;
    animation-delay: 1.5s;
}

.particles-container span:nth-child(7n){
    background-color: #e76f51;
    box-shadow: 0 0 10px #e76f51;
    animation: particlesBlinking 5s infinite;
    animation-delay: 0.3s;
}


@keyframes particlesBlinking {
    0% {opacity: 0.5; transform: scale(100%);}
    50% {opacity: 0.75; transform: scale(160%);}
    100% {opacity: 0.5; transform: scale(100%);}
}



/*============================================PROJECTS============================================*/
.projects {
    position: fixed;
    left: 30px;
    top: 30px;
    height: 55%;
    min-width: 320px;   
    width: 30%;
    background-color: #1d1d1d;
    border: 1px solid rgb(50, 50, 50);
    z-index: 4;
    border-radius: 10px;
    display: none;
}

.projects-active {
    display: block;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 45px;
    width: 100%;
    background-color: #0c0c0c;
    cursor: move;
    border-bottom: 1px solid rgb(50, 50, 50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 0 15px;
}

.top-bar p {
    color: lightgray;
    font-size: 14px;
    user-select: none;
}

.close-button {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background-color: rgb(184, 18, 51);
    font-size: 17px;
    text-align: center;
    color: #1d1d1d;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-button:hover {
    background-color: red;
}

.projects-content {
    margin-top: 45px;
    width: 100%;
    height: calc(100% - 45px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.projects-item {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 30px;
    cursor: pointer;
}

.projects-item:hover {
    background-color: var(--blue);
}

.projects-item:last-child:hover {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.projects-item img {
    height: 50px;
    margin-right: 20px;
}

.projects-item p {
    font-size: 1em;
    color: lightgray;
}


@media screen and (max-width: 1000px){
    .projects {
        top: 10px;
        left: 10px;
        height: 400px;
    }
}


/*============================================PROJECT SPECIFICATION============================================*/
.project-specification {
    position: fixed;
    min-width: 300px;
    width: 25%;
    height: 500px;
    z-index: 5;
    border-radius: 10px;
    border: 1px solid rgb(50, 50, 50);
    background-color: #1d1d1d;
    display: none;
}

.c-library {
    top: 0;
    right: 0;
}

.notes98 {
    top: 10px;
    right: 20px;
}

.java-image-editor {
    top: 20px;
    right: 50px;
}

.project-specification-focus {
    z-index: 10;
}


.project-specification-active {
    display: block;
}


.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 45px;
    width: 100%;
    background-color: #0c0c0c;
    cursor: move;
    border-bottom: 1px solid rgb(50, 50, 50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 0 15px;
}

.project-specification-content {
    margin-top: 45px;
    height: calc(100% - 45px);
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 15px;
    color: lightgray;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
}

.project-specification-content pre {
    font-size: 5px;
    letter-spacing: 1.5px;
}

.project-specification-content h1 {
    font-family: monospace;
    margin: 10px 0;
}

.project-specification-content p {
    font-size: 14px;
    margin: 10px;
}

.project-specification-content p span {
    color: blue;
}

