* {
    font-family: "Lucida Handwriting", cursive;
}

body {
    margin: 0;
}

html {
    background-image: url('back.jpg');
    background-attachment: fixed;
    background-size: cover;
}

h1 {
    text-align: center;
    font-size: 50px;
}


span {
    font-size: 20px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-left: 25px;
    padding-right: 25px;
    height: 70px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: left;
    align-items: center;
    background: #f0a4ff;
    margin-bottom: 50px;
    box-shadow: inset 2px -2px 30px -10px rgba(0, 0, 0, 0.5);
}


.nav-link, .cur-nav-link {
    font-size: 25px;
    background-color: #f0a4ff;
    border-radius: 10px;
    width: fit-content;
    padding: 2px 20px;
    max-height: 70px;
    transition: background-color 0.3s ease;
    position: relative;
}

.nav-link:hover, .cur-nav-link:hover {
    background-color: #f2b9fd;
}

.cur-nav-link::after {
    content: "";
    height: 6px;
    position: absolute;
    z-index: 1;
    bottom: -15px;
    left: 0;
    right: 0;
    background: #ff5454;
    transform: translateY(0);
    border-radius: 30px 30px 0 0;
}

a {
    text-decoration: none;
    color: black;
    text-align: center;
}

.main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.sidebar-selection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: #393939;
    border-radius: 15px;
    margin-top: 90px;
    gap: 1px 0;
    padding: 10px;
    max-height: fit-content;
}

.sidebar-button {
    text-align: left;
    color: white;
    font-size: 25px;
    background-color: #393939;
    border-radius: 10px;
    width: 200px;
    padding: 5px 20px;
    border: none;
    transition: background-color 0.3s ease;
}

.sidebar-button:hover {
    background-color: #505050;
    cursor: pointer;
}

.cards-container {
    margin-top: 90px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: calc((180px + 20px) * 5);
    /*background-color: rgba(0, 0, 0, 0.5);*/
    border-radius: 25px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px 20px 10px;
}

.card::after {
    content: "";
    position: absolute;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    z-index: 1;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 20px;
    transition: opacity 0.3s ease;
}

.card-image {
    border-radius: 20px;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.5);
}


.card:hover .title-name {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}


.title-name {
    max-width: 90%;
    position: absolute;
    color: white;
    bottom: 10px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.logo-nav-link {
    transition: transform 0.3s ease;
}

.logo-nav-link:hover {
    transform: scale(1.05);
}
