/* Elevated Background */
.main-content {
    width: 80%;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Hero Logo */
.hero-logo-container {
    display: flex;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(to top, #f5f5f5 20%, #ffffff 80%);
}

.logo {
    max-width: 100%;
    height: auto;
}

/* Nubbly Section */
.nubbly-game-container {
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 0;
}

.nubbly-game-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--nubbly-polygon-grey-color);
    clip-path: polygon(0 100%, 100% 50%, 100% 100%, 0 100%);
    z-index: -1;
}

.nubbly-game-play-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 300px;
}

.nubbly-game-play-image {
    max-width: 100%;
    transform: scale(1.02);
}

.nubbly-game-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    align-items: center;
    padding: 2rem;
}

.nubbly-title {
    font-family: 'DynaPuff', sans-serif;
    font-weight: 700;
    font-size: 5rem;
    letter-spacing: 0.1em;
    color: var(--nubbly-text-color);
    margin: 0;
    padding-bottom: 2rem;
}

.nubbly-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-align: center;
}

.tag-line {
    font-family: 'DynaPuff', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    padding-bottom: 10px;
}

.nubbly-link {
    padding-top: 40px;
    color: var(--nubbly-link-color);
    font-family: 'DynaPuff', sans-serif;
    font-weight: 400;
}

.nubbly-large-viewport {
    display: flex;
}

.nubbly-small-viewport {
    display: none;
}

/* Dice Dash Section */

.dice-dash-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 700px;
}

.dice-dash-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../assets/Dice-Dash-Board.webp');
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    z-index: 0;
}

.dice-dash-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0.5;
}

.dice-dash-container > * {
    z-index: 1;
    text-align: center;
}

.dice-dash-title {
    background-color: rgba(64, 224, 208, 0.6);
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 4rem;
    padding: 1rem 2rem;
    margin-top: 60px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 5px 4px 8px rgba(0, 0, 0, 0.3);
}

.dice-dash-description {
    font-family: 'Poppins', sans-serif;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    max-width: 400px;
    margin-top: 0;
    padding: 1rem 1rem;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.4);
}

.dice-dash-link {
    color: #d800ad;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 1rem 1rem;
    font-weight: 500;
    font-size: 1.2rem;
    text-decoration: underline;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .main-content {
        width: 100%;
        box-shadow: none;
    }
}

@media (max-width: 720px) {
    .nubbly-game-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nubbly-game-play-container {
        margin: 0 auto;
    }

    .nubbly-large-viewport {
        display: none;
    }

    .nubbly-small-viewport {
        display: block;
        height: auto;
        border-radius: 12px;
        margin: 1rem 0;
    }

    .nubbly-game-text {
        padding: 1rem;
    }

    .nubbly-title {
      padding-top: 2rem;
    }

    .nubbly-link {
      padding-top: 0;
      padding-bottom: 2rem;
    }

    .dice-dash-container {
        height: auto;
        padding: 3rem 0;
    }

    .dice-dash-title {
        font-size: 2.5rem;
    }

    .dice-dash-description {
        font-size: 1.1rem;
        margin: 0 1rem 2rem;
    }

    .dice-dash-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .nubbly-title {
        font-size: 4.5rem;
    }
}