*,

*::before,

*::after {

    box-sizing: border-box;

}



:root {

    --background-color: #102950;

    --secondary-color: #1e4c77;

    --color-white: #ffffff;

    --primary-color: #e4b063;

    --color-accent: #e2ab60;

    --color-accent2: #ebc16d;

    /* ------ */

    --color-green: #22c55e;

    --color-orange: #f97316;



    /* font */

    --font-inter: "Inter", sans-serif;

    --font-dancing: "Dancing Script", cursive;

}



body {

    margin: 0;

    padding: 0;

    font-family: var(--font-inter);

    background-color: var(--background-color);

    line-height: 1;

}



h1,

h2,

h3,

h4,

h5,

h6,

p,

figure {

    padding: 0px;

    margin: 0px;

    line-height: 1;

}



a {

    text-decoration: none;

}



.container {

    max-width: 1240px;

    margin: auto;

    padding: 0px 20px;

}



.header {

    padding: 16px 0px;

}



.header__main {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.header__actions {

    display: flex;

    flex-direction: row;

    flex-wrap: nowrap;

    gap: 12px;

    align-items: center;

}



.header__actions .btn {

    width: auto;

    flex-shrink: 0;

}



.header__tagline {

    display: block;

    width: 100%;

    color: var(--color-white);

    font-size: 18px;

    font-weight: 400;

    text-align: right;

    padding: 10px 0 6px;

    opacity: 0.9;

    letter-spacing: 0.01em;

    margin: 0;

}



.btn {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 14px 35px;

    overflow: hidden;

    border: none;

    border-radius: 25px;

    gap: 10px;

    font-size: 16px;

    font-weight: 700;

    text-transform: uppercase;

    color: black;

    line-height: 18px;

    cursor: pointer;

    position: relative;

    transition: transform 0.3s ease;

    background-image: linear-gradient(

        var(--color-accent),

        var(--color-accent2)

    );

}



.btn-tab {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 14px 35px;

    overflow: hidden;

    border: none;

    border-radius: 25px;

    gap: 10px;

    font-size: 16px;

    font-weight: 700;

    text-transform: uppercase;

    color: black;

    line-height: 18px;

    cursor: pointer;

    position: relative;

    transition: transform 0.3s ease;

    background: transparent;

    color: white;

    /* background-image: linear-gradient(var(--color-accent), var(--color-accent2)); */

}



.btn-tab--active {

    background-image: linear-gradient(

        var(--color-accent),

        var(--color-accent2)

    );

}



/* variation of button */

.btn--tab-inactive {

    color: var(--primary-color);

    background: transparent;

}



.btn__svg {

    position: absolute;

    height: 100%;

    z-index: 1;

}



.btn:hover {

    transform: translateY(-2px);

}



.btn__link {

    color: black;

}



.btn--lg {

    padding: 20px 26px;

    border-radius: 60px;

}



/* hero section */

.hero {

    width: 100%;

    height: 567px;

    background-image:

        linear-gradient(#112b4c80, #01152f80, #00080080),

        url("../images/hero-bg.png");

    background-repeat: no-repeat;

    background-size: cover;

    position: relative;

}



.hero__container {

    max-width: 1124px;

    padding: 0px 20px;

    margin: auto;

    display: flex;

    align-items: center;

    height: 100%;

}



.hero__main {

    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.hero__content {

    display: flex;

    flex-direction: column;

    align-items: start;

    gap: 53px;

}



.heading {

    display: flex;

    flex-direction: column;

    gap: 26px;

    color: var(--color-white);

}



.heading__title {

    font-size: 65px;

    line-height: 72px;

    font-weight: 700;

}



.heading__description {

    font-size: 28px;

    line-height: 36px;

    font-weight: 300;

    font-style: normal;

}



.hero__spin {

    display: flex;

    flex-direction: column;

    align-items: center;

}



.hero__social-icons {

    position: absolute;

    display: flex;

    flex-direction: column;

    gap: 12px;

    right: 27px;

    bottom: 37px;

}



.social-icon {

    display: flex;

    padding: 12px;

    background-color: var(--secondary-color);

    color: white;

    border-radius: 100%;

    transition: transform 0.3s ease;

}



.social-icon:hover {

    transform: translateY(-2px);

}



.float-message {

    padding: 16px;

    border-radius: 100%;

    background-color: #006cd1;

    position: absolute;

    bottom: 41px;

    right: 91px;

    transition: transform 0.3s ease;

}



.float-message:hover {

    transform: translateY(-2px);

}



/* winner section */

.winner {

    margin-top: 100px;

}



.winner__main {

    display: flex;

    flex-direction: column;

    gap: 120px;

}



.winner__content {

    display: flex;

    flex-direction: column;

    gap: 44px;

}



.winner__title {

    text-align: center;

    color: var(--primary-color);

    font-family: var(--font-dancing);

    font-weight: 700;

    font-size: 54px;

    line-height: 80px;

}



.winner__rewards {

    width: 100%;

    display: flex;

    gap: 24px;

}



.reward {

    width: 100%;

    display: flex;

    border: 2px solid var(--color-accent);

    padding: 24px 30px 24px 21px;

    border-radius: 68px;

    align-items: center;

    justify-content: space-between;

}



.reward__name {

    font-weight: 700;

    font-size: 24px;

    line-height: 28px;

    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--primary-color);

}



.reward__name__number {

    background-image: linear-gradient(

        var(--color-accent),

        var(--color-accent2)

    );

    color: var(--background-color);

    width: 43px;

    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

}



.reward__currency {

    font-weight: 700;

    font-size: 24px;

    line-height: 28px;

    text-align: end;

    color: var(--primary-color);

}



.separetor {

    width: 100%;

    display: flex;

}



.separetor__point {

    width: 8px;

    height: 8px;

    background-color: var(--primary-color);

    rotate: 45deg;

}



.separetor__line {

    display: block;

    width: 100%;

    height: 2px;

    background-color: var(--primary-color);

    border: none;

    transform: translateY(-5px);

}



/* games */

.games {

    margin-top: 120px;

}



.g-main {

    display: flex;

    flex-direction: column;

    gap: 71px;

    width: 100%;

    align-items: center;

}



.g-heading {

    display: flex;

    flex-direction: column;

    gap: 44px;

    align-items: center;

    text-align: center;

}



.g-heading__title {

    font-weight: 700;

    font-size: 65px;

    color: var(--primary-color);

}



.g-heading__tab {

    display: flex;

    justify-content: center;

    margin: 0px 14.5px;

    border: 1px solid #e4af63;

    padding: 6px;

    border-radius: 128px;

}



.g-cards {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 24px;

}



.g-card {

    display: flex;

    flex-direction: column;

    overflow: hidden;

    gap: 28px;

    background-color: var(--secondary-color);

    padding-bottom: 30px;

    align-items: center;

    border-radius: 17px;

    transition: transform 300ms ease;

    cursor: pointer;

}

.g-card__img{
    width:100%;
}

.g-card:hover {

    transform: translateY(-5px);

}



.g-card__content {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.g-card__title {

    text-align: center;

    text-transform: uppercase;

    color: var(--color-white);

}



.footer {

    width: 100%;

    background-color: var(--secondary-color);

    border: 1px solid transparent;

    margin-top: 120px;

    display: flex;

    justify-content: center;

    align-content: center;

}



.footer__content {

    display: flex;

    flex-direction: column;

    margin: 100px 0px;

    gap: 27px;

}



.footer__title {

    font-family: var(--font-dancing);

    color: var(--primary-color);

    text-align: center;

    line-height: 120%;

    font-size: 34px;

}



@media (max-width: 1024px) {

    /* hero */

    .hero__main {

        gap: 40px;

    }



    .hero__content {

        gap: 30px;

    }



    .heading {

        gap: 10px;

    }



    .heading__title {

        font-size: 40px;

        line-height: 100%;

    }



    .heading__description {

        font-size: 18px;

        line-height: 100%;

    }



    .btn {

        font-size: 14px;

        padding: 10px 25px;

    }



    .btn--lg {

        padding: 14px 25px;

    }



    .hero__social-icons {

        flex-direction: row;

        right: 100px;

    }



    .float-message {

        right: 20px;

        bottom: 37px;

    }



    /* winner */

    .winner {

        margin-top: 80px;

    }



    .winner__main {

        gap: 40px;

    }



    .winner__content {

        gap: 32px;

    }



    .winner__rewards {

        display: grid;

        grid-template-columns: repeat(2, 1fr);

        justify-content: center;

    }



    .winner__rewards > :last-child {

        grid-column: 1 / -1;

    }



    .reward {

        padding: 16px;

    }



    /* games */

    .g-cards {

        grid-template-columns: repeat(2, 1fr);

    }



    .footer__content {

        margin: 50px 0px;

    }

}



@media (max-width: 600px) {

    .hero {

        height: 90vh;

    }



    .hero__main {

        display: flex;

        flex-direction: column-reverse;

        justify-content: start;

        height: 60vh;

        gap: 10px;

    }



    .hero__content {

        gap: 20px;

        align-items: center;

    }



    .heading {

        gap: 10px;

        text-align: center;

    }



    .heading__title {

        font-size: 40px;

        line-height: 100%;

    }



    .heading__description {

        font-size: 18px;

        line-height: 100%;

    }



    .btn {

        font-size: 14px;

        padding: 10px 25px;

    }



    .btn--lg {

        padding: 14px 25px;

    }



    .hero__social-icons {

        position: absolute;

        left: 20px;

        bottom: 20px;

        z-index: 10;

        /* border: 1px solid red; */

    }



    .social-icon {

        padding: 6px;

    }



    .float-message {

        right: 20px;

        bottom: 37px;

        padding: 8px;

        right: 10px;

        bottom: 20px;

    }



    /* winner */

    .winner__rewards {

        display: flex;

        flex-direction: column;

    }



    .winner__title {

        font-size: 34px;

    }



    .reward {

        padding: 12px;

    }



    /* games */

    .games {

        margin-top: 50px;

    }



    .g-cards {

        display: flex;

        flex-direction: column;

    }



    .g-heading {

        gap: 20px;

    }



    .g-heading__title {

        font-size: 34px;

    }



    .g-heading__tab {

        margin: 0px;

    }



    .footer__content {

        margin: 30px 0px;

    }

}



/* The wheel container should be centered */

.spin-logo {

    display: inline-block;

    transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1); /* Slows down at the end */

}



/* Basic Modal Styling */

.modal {

    display: none;

    position: fixed;

    z-index: 1000;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.7);

    justify-content: center;

    align-items: center;

}



#winModal .modal-content {

    position: relative;

    background: #fff;

    padding: 30px;

    border-radius: 22px;

    text-align: center;

    max-width: 400px;

    animation: modalPop 0.3s ease-out;

}

#winModal .modal-content .btn{
    font-size: 15px;
    padding: 15px 25px;
    margin-bottom: 16px;
}


.modal-content .close {
	position: absolute;
	top: -10px;
	right: -10px;
	background-color: #fff;
	color: #000;
	border: none;
	border-radius: 50%;
	width: 35px;
	height: 35px;
	font-size: 25px;
	cursor: pointer;
	font-weight: 900;
}



.modal-content h2 {
	color: #fff;
	margin-bottom: 20px;
	font-size: 32px;
	text-align: left;
	line-height: 1.3;
}



.modal-content p {
	color: #ffff;
	margin-bottom: 30px;
	font-size: 16px;
	line-height: 1.5;
	/* font-family: var(--font-inter); */
	text-align: left;
}


@keyframes modalPop {

    from {

        transform: scale(0.7);

        opacity: 0;

    }

    to {

        transform: scale(1);

        opacity: 1;

    }

}

#winModal .modal-content{
    padding: 0;
    background-color: #0C1F36;
}
#winModal img{
    max-width: 100%;
    width: 100%;
}
.inner-modal{
    padding: 25px;
}
.spin-logo {

    position: relative; /* Essential for absolute positioning of the pointer */

    display: inline-block;

    width: fit-content;
    margin-bottom: 30px;

}

@media (max-width: 570px) {

    .spin-logo {

        margin-bottom: 20px;

    }
    .hero__spin{
        margin-bottom: 30px;
    }
    
}




#wheel {
    display: block;
    max-width: 300px; /* Adjust size as needed */
    height: auto;
}

.spin-logo .arrow{  
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 111
 

}



/* banner section */



.banner img {

    width: 100%;

    height: auto;

}


@media (max-width: 380px) {

    .header__tagline{
        font-size: 13px;

    }
    #winModal .modal-content{
       width: 280px;
    }
    .modal-content h2{
        font-size: 22px;
    }
    .modal-content p{
        font-size: 12px;
    }
    .header__actions{
        display: block;
    }
    .header__actions .btn {
  
        margin: 10px 0px;
    }

    .btn-tab {
        padding: 12px 23px;
        border-radius: 22px;
        font-size: 14px;
    }

}

@media (max-width: 320px) {

    .header__tagline{
        font-size: 13px;

    }
    #winModal .modal-content{
       width: 280px;
    }
    .modal-content h2{
        font-size: 22px;
    }
    .modal-content p{
        font-size: 12px;
    }
    .header__actions{
        display: block;
    }
    .header__actions .btn {
  
        margin: 10px 0px;
    }

    .btn-tab {
        padding: 12px 23px;
        border-radius: 22px;
        font-size: 14px;
    }

}