@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;1,9..144,300&family=Orbitron:wght@400..900&display=swap');

::selection {
    background: blueviolet;
    color: white;
}

html {
    margin: 0;
    padding: 0;
    background-color: #080011;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Fraunces', serif;
    color: white;
}

#nameHeaderSpan {
    font-family: 'Fraunces', serif;
    font-size: 40px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.titleNameLetter {
    margin-left: 8px;
    margin-right: 8px;
}

.titleNameFirstLetter {
    margin-right: 8px;
}

.titleNameLastLetter {
    margin-left: 8px;
}

.titleNameLetterSpacer {
    margin-left: 10px;
    margin-right: 10px;
}

#webdevHeaderSpan {
    font-family: 'Orbitron', sans-serif;
    font-size: 30px;
}

.webdevHeaderSpacer {
    margin-left: 16px;
    margin-right: 16px;
}

.webdevHeaderFirstLetter {
    margin-right: 8px;
}
.webdevHeaderLetter {
    margin-left: 8px;
    margin-right: 8px;
}
.webdevHeaderLastLetter {
    margin-left: 8px;
}

.headerDesktop {
    display: block;
    margin-top: 20px;
    text-align: center;
    padding-top: 16px;
    animation: slideInDown 2.5s ease-out;
}

.headerDesktop hr{
    width: 34.5rem;
    border: 1px solid blueviolet;
    margin-top: 16px;
    margin-bottom: 16px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.headerMobile {
    display: none;
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    animation: slideInDown 2.5s ease-out;
}

.headerMobile h1 {
    font-family: 'Fraunces', serif;
    letter-spacing: 10px;
    padding: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.headerMobile h2 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 20px;
}

.headerMobile hr {
    width: 75%;
    border: 1px solid blueviolet;
    margin-top: 8px;
    margin-bottom: 8px;
}


#nameHeaderSpan:hover {
    color:blueviolet;
    cursor: default;
    font-weight: bold;
}

#webdevHeaderSpan:hover {
    color:blueviolet;
    cursor: default;
}

.mainContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    min-height: 82vh;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 90vw;
    margin-bottom: 60px;
}

.card {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-family: "Orbitron", sans-serif;
    background-color: rgba(50, 4, 59, 0.85);
    background-blend-mode: multiply;
    border-radius: 12px;
    padding: 16px;
    margin: 38px 38px 38px 38px;
    text-align: center;
    width: 325px;
    height: 575px;
    transition: transform 1.5s, background-color 1.5s;
    position: relative;
    outline: 5px solid #8a2be2;
    border: 5px solid rgb(0, 0, 0);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: transform 0.3s, background-color 0.3s;
    background-color: rgba(50, 4, 59, 0.25);
}

.cardTitle {
    position: absolute;
    bottom: 20px;
    right: 0px;
    left: 0px;
    text-shadow: 2px 2px 6px #000000;
}


@media (max-width: 999px) {
    .menu {
        width: 100%;
    }

    .card {
        height: 400px;
    }
}

@media (max-width: 900px) {
    .card {
        width: 250px;
        margin: 24px 24px 24px 24px;
    }
}

@media (max-width: 720px) {
    .card {
        width: 475px;
        margin-top: 38px;
        margin-bottom: 38px;
    }
}

@media (max-width: 620px) {
    .headerDesktop {
        display: none;
    }

    .headerMobile {
        display: block;
    }

    .card {
        width: 350px;
        height: 350px;
        margin-top: 32px;
        margin-bottom: 32px;
    }
}

@media (max-width: 450px) {
    .headerMobile h2 {
        letter-spacing: 15px;
    }

    .card {
        width: 275px;
        height: 275px;
        margin-top: 24px;
        margin-bottom: 24px;
    }
}

@media (max-width: 370px) {
    .headerMobile h2 {
        letter-spacing: 8px;
    }

    .card {
        width: 225px;
        height: 225px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}