@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

:root {
    --main-bg-color: black;
    --main-bg-color-tr: #22222d9b;
    --main-bg-highlight-tr: #393939b6;
    --secondary-bg-color: #000000;
    --secondary-bg-color-tr: #00000000;
    --accents-text-color: red;
    --accents-text-color-2: #27af40;
    --accents-text-color-3: #155b22;
    --important-text-color: #fb8368;
    --main-text-color: #ffffff;
    --secondary-text-color: #b0b2b8;
    --tertiary-text-color: #84858a;
    --round-borders: 8px;
}

.spotify {
    z-index: 999;
    position: absolute;
    bottom: 20px;
    left: 30px;
}

.spotify img {
    width: 50%;
    height: auto;
}

.container {
    height: 100vh;
    width: 100vh;
    margin: 0 auto;
    text-align: center;
    visibility: hidden;
    position: relative;
    overflow: hidden;
    color: white;
}

.container div.six {
    z-index: 1;
}

.container div.seven,
.container div.eight {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
}

.container > div {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

.one {
    font-size: 4.5rem;
}

.one > img {
    vertical-align: middle;
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
}

.two {
    font-size: 3.5rem;
    font-weight: lighter;
}

.three,
.four {
    font-size: 3rem;
}

.four .text-box {
    width: 600px;
    margin: 0 auto;
    border: 3px solid #aaa;
    border-radius: 5px;
    padding: 10px;
    position: relative;
    font-size: 1.5rem;
}

.text-box p {
    margin: 0;
    text-align: left;
}

.text-box span {
    visibility: hidden;
}

.text-box .fake-btn {
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: #fff;
    background-color: rgb(21, 161, 237);
    padding: 5px 8px;
    border-radius: 3px;
}

.five p {
    font-size: 2rem;
    position: absolute;
    left: 0;
    right: 0;
}

.idea-3 strong {
    padding: 3px 5px;
    border-radius: 3px;
    display: inline-block;
}

.five .idea-5 {
    font-size: 4rem;
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
    display: inline-block;
}

.idea-6 span {
    font-size: 3.5rem;
}

.six {
    position: relative;
}

.six img {
    display: inline-block;
    max-width: 45%;
    height: auto;
}

.six .hat {
    position: absolute;
    width: 80px;
    left: 41.5%;
}

.baloons img {
    display: inline-block;
    position: absolute;
    width: 200px;
}

.baloons img:nth-child(even) {
    left: 10%;
}

.baloons img:nth-child(odd) {
    right: 10%;
}

.baloons img:nth-child(3n + 0) {
    left: 30%;
}

.eight svg {
    width: 25px;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    z-index: -1;
}

.eight svg:nth-child(1) {
    top: 7vh;
    left: 5vw;
    fill: #bd6ecf;
}

.eight svg:nth-child(2) {
    top: 23vh;
    left: 35vw;
    fill: #7dd175;
}

.eight svg:nth-child(3) {
    top: 33vh;
    left: 23vw;
    fill: #349d8b;
}

.eight svg:nth-child(4) {
    top: 43vh;
    left: 57vw;
    fill: #347a9d;
}

.eight svg:nth-child(5) {
    top: 68vh;
    left: 7vw;
    fill: #c66053;
}

.eight svg:nth-child(6) {
    top: 42vh;
    left: 77vw;
    fill: #bfaa40;
}

.eight svg:nth-child(7) {
    top: 68vh;
    left: 83vw;
    fill: #e3bae8;
}

.eight svg:nth-child(8) {
    top: 86vh;
    left: 37vw;
    fill: #8762cb;
}

.eight svg:nth-child(9) {
    top: 94vh;
    left: 87vw;
    fill: #9a90da;
}

.wish-hbd {
    font-size: 3em;
    margin: 0;
}

.wish h5 {
    font-weight: lighter;
    font-size: 2rem;
    margin: 10px 0 0;
}

.nine p {
    font-size: 2rem;
    font-weight: lighter;
}

#replay {
    z-index: 3;
    cursor: pointer;
}

/* Media Queries */
@media screen and (max-height: 1000px) {
    .six .hat {
        left: 40%;
    }
}

@media screen and (max-height: 800px) {
    .six .hat {
        left: 37%;
    }
}

@media screen and (max-height: 700px) {
    .six .hat {
        left: 32%;
    }
}

@media screen and (max-height: 850px) and (max-width: 450px) {
    .six .hat {
        left: 32%;
    }
}

@media screen and (max-width: 500px) {
    .container {
        width: 90%;
    }

    .container > div {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        -ms-transform: translateY(-50%);
    }

    .four {
        font-size: 2rem;
    }

    .four .text-box {
        width: 90%;
        font-size: 1rem;
    }

    .text-box {
        right: 5px;
        bottom: -38px;
    }

    .idea-6 span {
        font-size: 3.5rem;
    }

    .six .hat {
        width: 50px;
    }

    .wish-hbd {
        font-size: 2.3em;
    }

    .wish h5 {
        font-size: 1.4rem;
    }

    .nine p {
        font-size: 1.5rem;
        font-weight: lighter;
    }
}

html {
    height: 100%;
    scroll-behavior: smooth;
    width: auto !important;
    overflow-x: hidden;
    scroll-padding-top: 120px;
    box-sizing: border-box;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.important {
    color: var(--important-text-color);
    overflow-wrap: break-word;
}

.bold {
    font-weight: bold;
}

.underline {
    text-decoration: underline;
    color: var(--secondary-text-color);
    overflow-wrap: break-word;
}

.link {
    color: var(--accents-text-color);
    overflow-wrap: break-word;
}

.hidden {
    display: none;
}

body {
    background-color: var(--main-bg-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ------ NAVBAR ------ */

.navbar {
    display: flex;
    align-items: center;
    min-height: 8vh;
    padding: 20px;
    background-color: var(--secondary-bg-color);
    color: var(--accents-text-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar a {
    text-decoration: none;
}

.navbar li {
    list-style: none;
}

.nav-links {
    position: fixed;
    right: 40px;
}

.nav-links a {
    color: var(--accents-text-color);
}

.logo img {
    border-radius: 20%;
    margin-top: 5px;
    width: 50px;
    height: auto;
}

.site-name {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 30px;
    margin-left: 30px;
}

.site-name a {
    text-decoration: none;
    color: var(--accents-text-color);
}

.site-name a h4 {
    color: white;
}

.menu {
    display: flex;
    gap: 1.5em;
    font-size: 18px;
}

.menu li a:hover {
    background-color: var(--main-bg-highlight-tr);
    border-radius: var(--round-borders);
    transition: 0.3s ease;
}

.menu li a {
    padding: 5px 14px;
}

input[type='checkbox'] {
    display: none;
}

.hamburger {
    display: none;
    font-size: 24px;
    user-select: none;
    color: var(--accents-text-color);
    cursor: pointer;
    z-index: 999;
}

.archive-page {
    width: 100%;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(100px + 10vh);
    padding: 30px 65px;
    color: var(--accents-text-color);
    font-size: 40px;
    flex-direction: column;
    overflow: hidden;
}

.archive-page ul li::marker {
    content: attr(data-emoji);
}

.picker-page {
    width: 100%;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(100px + 10vh);
    padding: 30px 65px;
    color: var(--accents-text-color);
    flex-direction: column;
    overflow: hidden;
    color: white;
}

.picker-page h1 {
    color: white;
    font-size: 80px;
}

.picker-page label {
    margin-right: 10px;
}

.picker-page select {
    padding: 5px;
    color: black;
}

.picker-page button {
    padding: 8px 15px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    cursor: pointer;
}

.picker-page button:hover {
    background-color: #45a049;
}

.risultato {
    margin-top: 20px;
    width: 100%;
}

.card {
    width: 50%;
    max-width: 600px;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: var(--round-borders);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s ease;
    padding: 10px;
    text-align: center;
    margin: auto;
}

.card-title {
    font-size: 30px;
}

.card-image {
    width: 80%;
    max-width: 500px;
    height: auto;
    border-radius: var(--round-borders);
}

.card-buttons {
    display: flex;
    flex-direction: row;
}

.card-buttons .card-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background-color: #e36414;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.card-buttons .card-button:hover {
    background-color: #fb8b24;
}

.exam-page {
    width: 100%;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(100px + 10vh);
    padding: 30px 65px;
    color: var(--accents-text-color);
    font-size: 40px;
    flex-direction: column;
    overflow: hidden;
}

.home-banner {
    width: 100%;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(100px + 10vh);
    padding: 30px 65px;
    color: var(--accents-text-color);
    font-size: 40px;
    flex-direction: column;
    overflow: hidden;
}

.showcase-container {
    height: 580px;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
}

.showcase-container img {
    height: 600px;
    width: 100%;
    max-width: 90%;
    border-radius: var(--round-borders);
    object-fit: cover;
    object-position: center top;
    filter: brightness(75%);
}

.home-banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    width: 80%;
}

.home-banner-title {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.home-banner-title h1 {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    font-size: 75px;
}

.home-banner-title h2 {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 80%;
    padding-left: 20%;
    color: rgb(255, 145, 145);
    font-size: 30px;
}

.home-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    float: right;
    border: none;
    text-align: center;
    width: 45%;
}

.new-message-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;

    animation-name: bell-ring;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.new-message-button img {
    margin-left: 200px;
    width: 50%;
    height: auto;
    cursor: pointer;
    filter: brightness(100%);
}

@keyframes bell-ring {
    5%,
    15% {
        transform: translateY(-50%) rotate(25deg);
    }
    10%,
    20% {
        transform: translateY(-50%) rotate(-25deg);
    }
    25% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(0deg);
    }
}

@media screen and (max-width: 1080px) {
    .card {
        width: 60%;
    }

    .navbar {
        justify-content: space-around;
    }

    .nav-links {
        position: static;
        right: 0px;
    }

    .site-name {
        margin-left: 0px;
    }

    .menu {
        display: none;
        position: absolute;
        background-color: #101015f8;
        right: 0;
        left: 0;
        text-align: center;
        padding: 20px 0;
        margin-top: 34px;
        z-index: 999;
    }

    .menu li a:hover {
        background-color: var(--main-bg-highlight-tr);
        color: var(--main-text-color);
        transition: 0.3s ease;
    }

    .menu li {
        margin-top: 20px;
    }

    input[type='checkbox']:checked ~ .menu {
        display: block;
    }

    .hamburger {
        display: block;
    }

    .home-banner {
        padding-top: 80px;
    }

    .home-banner-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-banner-title {
        width: 100%;
        margin-bottom: 20px;
    }

    .home-banner-title h1 {
        text-align: center;
        width: 100%;
        position: relative;
        top: 50px;
        margin-bottom: 0px;
    }

    .home-banner-title h2 {
        width: 100%;
        padding-left: 0%;
        margin-top: 100px;
    }

    .home-button-container {
        margin-top: 5px;
    }

    .new-message-button {
        position: inherit;
        top: 10px;
        transform: translateY(0);
        padding: 40px 30px;
    }

    .new-message-button img {
        margin-left: 0px;
        width: 100%;
        height: auto;
        cursor: pointer;
        filter: brightness(100%);
    }

    @keyframes bell-ring {
        5%,
        15% {
            transform: translateY(0) rotate(25deg);
        }
        10%,
        20% {
            transform: translateY(0) rotate(-25deg);
        }
        25% {
            transform: translateY(0) rotate(0deg);
        }
        100% {
            transform: translateY(0) rotate(0deg);
        }
    }
}

@media screen and (max-width: 720px) {
    .picker-page {
        padding: 10px;
    }

    .card {
        width: 70%;
    }

    .home-banner {
        padding: 0px 10px;
        margin-top: 120px;
    }

    .home-banner-title h1 {
        font-size: 50px;
    }

    .home-banner-title h2 {
        font-size: 25px;
    }

    .home-container {
        padding: 0px 30px;
    }

    .new-message-button {
        padding: 30px 20px;
        font-size: 30px;
    }
}

@media screen and (max-width: 480px) {
    .card {
        width: 100%;
    }
}
