* {
    box-sizing: border-box;
}
body {
    cursor: default;
    margin: 0;
    padding: 0;
    font-family: 'Avenir', sans-serif;
    display: flex;
    flex-direction: column;
}
a {
    text-decoration: none;
    color: #37679E;
}
button {
    outline: none;
    box-shadow: none;
    cursor: pointer;
}
#header-wrapper {
    display: flex;
    justify-content: center;
    background-color: #190A16;
    padding: 8px 16px;
}
header {
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
}
header h2 {
    color: #9B9B9B;
    font-size: 16px;
}
header #nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
}
header #nav-links a {
    background-color: #F2B705;
    padding: 6px 24px;
    border-radius: 15px;
    color: #222;
    font-weight: 500;
}
header a {
    color: #9B9B9B;
    margin-left: 48px;
}

#main-banner-wrapper {
    display: flex;
    justify-content: center;
    background-image: url('./background1png.png');
    background-repeat: repeat;
    background-size: 300px;
    padding-left: 16px;
    padding-right: 16px;
}
#main-banner {
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    min-height: 600px;
    align-items: center;
    width: 100%;
}

#game-piggy img {
    max-height: 430px;
}


#game-stats-wrapper {
    display: flex;
    flex-basis: 50%;
    padding-left: 32px;
    justify-content: flex-end;
}
#game-stats {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    max-width: 370px;
    text-align: center;
    border-radius: 20px;
}
#game-stats button {
    background-color: #F2B705;
    margin-top: 24px;
    width: 100%;
    border: none;
    padding: 18px;
    font-weight: 600;
    font-size: 16px;
    color: #3C3A41;
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
}
#game-piggy {
    display: flex;
    width: 50%;
}
#game-jackpot {
    background-image: url("./piggy.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 100%;
    height: 350px;
}
#jackpot-stats {
    text-align: center;
    margin-top: 150px;
    margin-left: 30px;
}
#jackpot-stats h2 {
    font-family: 'Montserrat';
    font-size: 55px;
    font-weight: 600;
    color: #3C3A41;
    margin: 0;
    margin-bottom: 8px;
}
#jackpot-stats span {
    display: block;
    color: #3C3A41;
    margin-bottom: 0;
    font-size: 17px;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif; 
}

#game-stats p {
    color: #3C3A41;
    padding: 0 16px;
}
#game-stats h1 {
    font-family: 'Quicksand', sans-serif;
    color: #F2B705;
    margin: 0;
}

#game-timer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 24px;
}
#game-timer .timer-tick {
    background-color: #3C3A41;
    max-width: 90px;
    width: 100%;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
}
.timer-tick h3 {
    font-size: 40px;
    color: #fff;
    margin: 0;
    padding: 0;
    margin-top: 2px;
    font-weight: 300;
    line-height: 0.8em;
}
.timer-tick span {
    color: #ccc;
}

#table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}
#table-desc {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 32px;
}
#table-desc a {
    color: #37679E;
}
#table-wrapper p {  
    color: #343E5E;
}

#table-players {
    margin-top: 48px;
}
.table-item {
    display: flex;
    box-shadow: 0px 2px 2px 2px rgba(0,0,0,0.04);
    padding: 4px 12px;
    margin-top: 8px;
    background-color: #FCFCFC;
}
.table-item h3 {
    font-weight: 300;
    font-size: 16px;
    display: flex;
}
.table-item h3:first-of-type {
    max-width: 200px;
    width: 100%;
}

.table-item:first-of-type h3:first-of-type {
    color: #F2B705;
}
.table-item:first-of-type span {
    background-color: #F2B705;
}
.table-item span {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 20px;
    background-color: #444;
    margin-right: 16px;
    margin-top: 3px;
}
.table-item h3:first-of-type {
    font-weight: 500;
    margin-left: 16px;
}
.table-item h3:last-of-type {
    color: #37679E;
}
#table-players-header {
    display: flex;
    padding: 0 32px;
    text-align: left;
}
#table-players-header h4 {
    flex-grow: 1;
    font-weight: 100;
    color: #9B9B9B;
}
#table-players-header h4:first-of-type {
    max-width: 200px;
    width: 100%;
}
.table-item h3:last-of-type {
    width: 100%;
    justify-content: flex-end;
}
#table-players-header h4:last-of-type {
    width: 100%;
    justify-content: flex-end;
    max-width: 140px;
}

#buyin-popup {
    max-width: 500px;
    width: 100%;
    background-color: white;
    box-shadow: 0px 0px 10px 10px rgba(0,0,0,0.1);
    border-radius: 20px;
    z-index: 10;
    position: absolute;
    top: 100px;
    left: 50%;
    margin: 0 auto;
    padding-top: 16px;
    padding-bottom: 24px;
    display: none;
}
#buyin-popup h3 {
    color: #37679E;
    font-size: 16px;
    text-align: center;
    margin: 24px 0 4px 0;
}
#buyin-popup p {
    font-size: 14px;
    text-align: center;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
}
#buyin-popup #buyin-address {
    background-color: #DEEBFB;
    padding: 14px 0px 14px 0px;
    text-align: center;
    border-radius: 30px;
    display: block;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    background-image: url("./copy.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    cursor: pointer;
}
#buyin-popup img {
    margin: 0 auto;
    width: 120px;
    height: 120px;
    display: block;
    margin-top: 16px;
    margin-bottom: 24px;
}
#buyin-popup h4 {
    font-size: 14px;
    padding: 0;
    margin: 0;
    font-weight: 300;
    color: #3C3A41;
}
#buyin-popup h2 {
    font-size: 20px;
    text-align: center;
    margin: 0;
    font-weight: 500;
    color: #3C3A41;
}
#buyin-popup #buyin-address h4 {
    margin-left: -30px;
}
#buyin-close {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    position: absolute;
    top: 0;
    right: 0;
    margin: 16px 16px 0 0;
    background-image: url("./close.png");
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}
#buyin-popup b {
    color: #D0021B;
    font-weight: 500;
}
#faq-wrapper {
    padding-left: 24px;
    padding-right: 24px;
    color: #3C3A41;
    font-family: 'Quicksand', sans-serif;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 120px;
}

#faq-wrapper h1 {
    font-weight: 500;
    margin-top: 64px;
    margin-bottom: 64px;
}
#faq-wrapper h2 {
    margin-top: 58px;
    font-weight: 500;
    color: #F2B705;
}
#faq-wrapper p {
    border-left: solid 4px #CAE1FB;
    padding-left: 16px;
    font-weight: 300;
    font-family: 'Avenir', sans-serif;
}
#steps-img {
    display: block;
    margin: 0 auto;
    max-width: 530px;
    width: 100%;
    margin-top: 32px;
    margin-bottom: 48px;
}
#faq-wrapper a {
    font-weight: 500;
    border: solid 1px #37679E;
    padding: 4px 16px;
    color: #37679E;
}


@media only screen and (max-device-width: 1000px) {
    #buyin-popup {
        right: 16px;
        left: auto;
    }
}

@media only screen and (max-device-width: 780px) {

    #main-banner {
        flex-direction: column;
    }    
    #game-piggy {
        width: 100%;
        margin: 32px 0;
    }
    #game-stats {
        margin-bottom: 32px;
    }
    #game-stats-wrapper {
        padding-left: 0;
    }
    #game-stats {
        padding: 24px;
    }
    .timer-tick {
        margin: 0 4px;
    }
    #table-desc {
        flex-direction: column;
    }
    #contract-address {
        width: 100%;
        overflow: hidden;
        text-overflow: clip;
    }
    #table-desc p {
        overflow: hidden;
    }
    .table-item h3 {
        overflow: hidden;
    }
    #buyin-popup {
        bottom: 24px;
        max-width: 90%;
        right: auto;
        left: auto;
        top: auto;
    }
}

@media only screen and (max-device-width: 500px) {
    .table-item {
        flex-direction: column;
        width: 100%;
    }
    .table-item h3 {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: left;
        margin: 8px 0;
    }
    .table-item h3:last-of-type {
        justify-content: left;
    }
    .table-item h3:first-of-type {
        justify-content: left;
        max-width: 100%;
    }
    #buyin-address {
        margin-left: 16px;
        margin-right: 16px;
        overflow: hidden;
    }
    #buyin-address h4 {
        overflow: hidden;
        width: 90%;
        padding-left: 50px;
    }
    #buyin-popup {
        padding-left: 16px;
        padding-right: 16px;
    }
}

