﻿.html {
    height: 100%;
}

body {
    font-family: "Libre Caslon Text", serif !important;
    background-color: antiquewhite !important;

    /* disable scrolling */
    /*overflow: hidden;
    height: 100%;
    margin: 0;*/

    background-image: url('../Images/casino-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.Header {
    background: linear-gradient( 180deg, #4a0004 0%, #6a0007 60%, #7a0008 100% );
    border-bottom: 6px solid;
    border-image: linear-gradient(90deg, #7a5a00, #ffd700, #fff2a8, #ffd700, #7a5a00) 1;
    box-shadow: inset 0 -12px 18px rgba(0,0,0,0.5), inset 0 2px 2px rgba(255,255,255,0.15);
}

.navbar {
    padding: 20px 50px !important;
}

.Header a {
    position: relative;
    font-family: "Libre Caslon Text", serif !important;
    color: antiquewhite !important;
    font-size: 20px !important;
    text-decoration: none !important;
    display: inline-block;
}

    .Header a:not(.profile-link)::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        left: 0;
        bottom: -4px;
        background-color: #E2E66A;
        transition: width 0.3s ease;
    }

    .Header a:not(.profile-link):hover::after {
        width: 100%;
    }


.pfp {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-left: 12px;
    border: 2px solid #E2E66A;
    transition: 0.2s ease;
    object-fit: cover;
    display: inline-block;
}

    .pfp:hover {
        box-shadow: 0 0 10px #E2E66A;
    }

.WelcomeTxt {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: whitesmoke;
    border-radius: 15px;
    z-index: 1;
    box-shadow: 0px 8px 10px black;
}

    .WelcomeTxt p {
        color: black;
        font-size: 43px;
        margin: 20px 10px;
    }

.Welcome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 125vh;
    height: 110px;
    background: linear-gradient( to bottom, #016b3a, #014d2a, #013520 );
    border: 14px #092e17 solid;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.table {
    background-image: url('../Images/table-img.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 125vh;
    aspect-ratio: 1/1;
    z-index: -3;
    border-radius: 50%;
    margin-top: -75vh;
    border: 20px #092e17 solid;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 10px 20px rgba(0,0,0,0.5);
}

    .table p {
        color: whitesmoke;
        letter-spacing: 15px;
        text-shadow: 0 5px 3px black;
        font-size: 80px;
        position: absolute;
        margin: 0;
    }

.BlackTxt {
    transform: rotate(35deg);
    left: 10%;
    bottom: 25%;
    font-size: 2.3em;
}

.JackTxt {
    transform: rotate(-35deg);
    right: 12%;
    bottom: 25%;
    letter-spacing: 20px;
    font-size: 2.3em;
}

.card1, .card2, .card3, .card4, .card5 {
    position: relative;
    border: black 2px solid;
    border-radius: 12px;
    z-index: 1;
    width: 6vh;
    height: 10vh;
}

.cards {
    position: absolute;
    bottom: 4%;
    display: flex;
    gap: 6.7vh;
}

.Play-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    margin-top: 80px;
    padding: 25px 120px;
    background: linear-gradient(145deg, #5a084e, #400638);
    font-size: 40px;
    color: #E2E66A;
    font-weight: 500;
    box-shadow: 0px 10px 14px black;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.6s ease;
    overflow: hidden;
}

    .Play-btn:hover {
        transition: all 0.6s ease;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 15px #E2E66A, 0 0 30px #E2E66A;
        overflow: hidden;
    }

.play {
    text-decoration: none !important;
    font-family: "Libre Caslon Text", serif;
    color: #E2E66A;
}

.stack {
    width: 55vh;
    margin-top: 40vh;
    filter: brightness(0.85) drop-shadow(0 16px 4px rgba(0, 0, 0, 0.5));
}

.play-container {
    position: relative;
}

.spread {
    position: absolute;
    top: -50px;
    left: -20px;
    width: calc(100% + 2.5vh);
    height: calc(100% + 4vh);
    z-index: 100;
}

.profilepicture img {
    margin-top: 20px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #122254;
    width: 9.375em;
    height: 9.375em;
}

.profile-wrapper {
    width: 100%; 
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background: #FFCF99;
    border-radius: 12px;
    border: 2px solid #1E1E24;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    position: relative;
}

.profile-data {
    background: #FFF8F0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 18px;
}

.profile-btns {
    margin: 20px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

    .profile-btns a {
        background-image: url('../Images/table-img.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

        text-decoration: none;
        padding: 14px 26px;
        border-radius: 6px;
        color: #FFF8F0;
        font-size: 18px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.45);
    }


.login-wrapper {
    margin: 60px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 80px;
    line-height: 100% !important;
}

.login-box {
    width: 300px;
    padding: 40px;
    border-radius: 12px;
    background: #FFCF99;
    border: 2px solid #1E1E24;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.login-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.login-group2 {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 15px;
}

.login-group label {
    font-weight: 600;
    margin-bottom: 4px;
}

    .login-group input {
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #1E1E24;
    }

        .login-group input[type="file"] {
            width: 100%;
            box-sizing: border-box;
        }


.box-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #1E1E24;
    padding-bottom: 10px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #122254;
    color: #FFF8F0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.login-btn:hover {
    background: #0f1c45;
}

.leaderboard-box {
    width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: #1e1e2f;
    border-radius: 10px;
    color: white;
}

    .leaderboard-box h2 {
        text-align: center;
        color: gold;
        margin-bottom: 20px;
    }

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 10px;
    border-bottom: 1px solid #444;
    background: #2a2a40;
}

    .leaderboard-row:hover {
        background: #202030;
    }

.rank {
    width: 40px;
    font-weight: bold;
}

.username {
    flex: 1;
}

.balance {
    color: antiquewhite;
    font-weight: bold;
}

.leaderboard-row:nth-child(1) {
    color: gold;
}

.leaderboard-row:nth-child(2) {
    color: silver;
}

.leaderboard-row:nth-child(3) {
    color: #cd7f32;
}

.leaderboard-row:nth-child(n+4):nth-child(-n+100) {
    color: white;
}

.leaderboards-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; 
}

.leaderboard-card {
    flex: 1;
    min-width: 250px;
}

.profile-preview {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

    .profile-preview img {
        border-radius: 50%;
        border: 3px solid #122254;
    }

.money-btn {
    margin: 10px;
    text-align: center;
    padding: 12px;
    background: #166534;
    color: #FFF8F0;
    border: 2px solid #14532D;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.45);
}

.card-btn {
    padding: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .money-btn:hover {
        background-color: #15803D;
    }



/* hide checkbox */
.signup-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.signup-btn {
    display: block;
    width: 300px;
    text-align: center;
    padding: 12px;
    margin-top: 5px;
    background: transparent;
    color: #122254;
    border: 2px solid #122254;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .signup-btn:hover {
        background: #122254;
        color: #FFF8F0;
    }


.signup-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* open checkbox */
#signupToggle:checked ~ .signup-panel {
    max-height: 700px;
    opacity: 1;
    transform: translateY(0);
}

.signup-toggle {
    width: 300px;
}

/* style same as login */
.signup-panel form {
    margin-top: 15px;
/*    max-width: 300px;*/
    padding: 40px;
    border-radius: 12px;
    background: #FFCF99;
    border: 2px solid #1E1E24;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.hide {
    opacity: 0;
}


/* about me */
.about-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.about-box {
    width: 800px;
    padding: 40px;
    background: #FFCF99;
    border-radius: 12px;
    border: 3px solid #40061B;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.about-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 25px;
    font-family: Changa, sans-serif;
    color: #40061B;
    border-bottom: 3px solid #40061B;
    padding-bottom: 10px;
}

.about-box p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* login failed */
.failed-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 80px;
    width: 40vw;
    align-self: center;
}

.failed-outer-wrapper{
    display: flex;
    justify-content: center;
}

/* blackjack UI */

.BJUI-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-direction: row;
}

.betting-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    background: #FFCF99;
    border-radius: 12px;
    border: 3px solid #40061B;
    width: 260px;

}

.betting-wrapper img{
    width: 50px;
    height: 50px;
    transition: 0.3s;
}
.betting-wrapper img:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

.UI-wrapper-outer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
}

.BJ-btn {
    width:260px;
    text-align: center;
    padding: 12px;
    height: 75px;
    background: transparent;
    color: #122254;
    border: 2px solid #122254;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .BJ-btn:hover {
        background: #122254;
        color: #FFF8F0;
    }

.BJ-btn-R {
    width: 75px;
    text-align: center;
    padding: 12px;
    height: 75px;
    background: transparent;
    color: #122254;
    border: 2px solid #122254;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

.BJ-btn-R:hover {
    background: #122254;
    color: #FFF8F0;
}

.important-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #053322;
    border: 5px solid #40061b;
    margin-top: 20px;
    padding: 10px 20px;
}

    .important-info p {
        color: #FFF8F0;
        padding-left: 30px;
    }

.logout {
    display: flex;
    align-items: center;
    gap: 8px; 
    position: absolute;
    left: 0;
    top: 0;
}

.logout img {
    width: 60px;
    height: auto;
}

.logout p {
    margin: 10px 5px;
    color: black;
    font-size: 20px;
    text-decoration: none;
}

.card-image {
    width: 60px;
    height: auto;
}