:root {
    --footer-height: 2em;
    --color-blue: #154381;
    --color-green: #228D57;
    --color-darkgreen: #124D2F;
    --canada-red: #E45F4D;
    --dutch-orange:  #ff9b00;
    --canada-gray: #E4E5DC;
    --canada-darkgray: #1B1C17;

    --gold1: rgb(239, 212, 92);
    --gold2: rgb(255, 248, 206);
    --gold3: rgb(185, 149, 4);
    --silver1: rgb(214, 224, 228);
    --silver2: rgb(255, 255, 255);
    --silver3: rgb(122, 155, 168);
    --bronze1: rgb(193, 154, 84);
    --bronze2: rgb(222, 167, 79);
    --bronze3: rgb(127, 99, 46);
    --blue1: rgb(0, 179, 237);
    --blue2: rgb(58, 207, 255);
    --blue3: rgb(0, 122, 163);

    --width-wide: 80vw;
    --width-narrow: 90vw;
    /*--border-radius: 8px;*/
    --border-radius: 2px;

}


html,
body,
.grid-container {
    height: 100%;
    margin: 0;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: ghostwhite;
}

header {
    width: 100%;
    /*padding-top: 10px;*/
    background-color: var(--dutch-orange);
}

#page-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

#content-wrap {
    padding-bottom: var(--footer-height);
    margin: 0;
    width: 100%;
    background-color: #e4e5dc;
}

.navbarx {
    width: var(--width-wide);
    margin: 0 auto;
    padding: 20px 0;
    top: 0px;
    box-sizing: border-box;
    /*background-image: url("../img/jet-min.png");*/
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    line-height: 32px;
}

.name {
    color: white;
    font-family: "Source Sans Pro", sans-serif;
    font-style: normal;
    ;
    font-weight: 700;
    font-size: 2rem;
    /*text-align: center;*/
    text-shadow: 0px 0px 2px #cd220c, 2px 2px 1px var(--canada-darkgray);
    /*padding-bottom: 10px;*/
    margin-top: 0;
    margin-bottom: 0;
}

/*.legal {
    font-weight: 700;
    font-size: 1.8em;
    line-height: 1em;
    margin-top: 0px;
    margin-bottom: 0;
}*/

#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgb(0, 0, 0)), url("../img/thebestcasinos-nl-bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
}

#hero h1 {
    color: white;
    margin: 0;
    padding: 120px;
    text-align: center;
    font-size: 3em;
}

#content {
    width: 100%;
    margin: 0 0 20px;

}

.cards-header-content {
    visibility: hidden;
    height: 100px;
    background-color: var(--canada-darkgray);
}


/*
===
Offers
===*/

.card {
    padding: 10px;
    width: var(--width-wide);
    height: 300px;
    margin: 0px auto 60px auto;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 1px 1px 2px rgb(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.grid-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

/*Casino Logo and Color */
.Brand {
    border-radius: var(--border-radius);
    width: 100%;
}

.ranking {
    position: absolute;
    background-color: white;
    width: 20px;
    height: 20px;
    padding: 0 0 5px 5px;
    z-index: 10;
}

.Logo {
    height: 100%;
    box-shadow: inset -1px -1px 0px lightgrey;
}


/*
===
Offer area
===
*/

.Offer {
    display: flex;
    flex: 1.3;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
    grid-area: Offer;
}

.deal {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding-left: 25px;
    padding-right: 25px;
    text-decoration: none;
    color: inherit;

}


/*
===
Big Button
===
*/

.cta {
    grid-area: cta;
    align-self: center;
    justify-self: center;
    text-align: center;
}

.buttonx {
    line-height: 1.4;
    width: 100%;
    font-family: "Source Sans Pro", sans-serif;
    text-align: center;
    color: #fff;
    display: inline-block;
    background-color: #e45f4d;
    padding: .9375rem 1.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .3s;
    box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 2px;
    border-radius: var(--border-radius);
}


.buttonx:active,
.buttonx:focus,
.buttonx:hover {
    background-color: #ce5241;
    box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 0px;

}

.buttonx,
.buttonx:hover {
    color: #fff;
}

/* "visit Casino" text */
.visit {
    font-size: 0.6em;
    line-height: 1em;
}

/*
===
Ratings columns
===
*/

.ratings {
    display: flex;
    flex-flow: row-reverse;
    align-items: center;
    justify-content: space-around;
    grid-area: ratings;

}

.stars {
    color: gold;
    margin: 0;
    font-size: 1.2em;
}

span.reviews {
    display: block;
    color: rgba(27, 28, 23, 0.5);
    font-size: 0.8em;
    text-align: center;
}


/*stars*/
.iconx {
    padding: 0px;
}

.numbers {
    font-size: 1em;
    font-weight: 500;
}

.banner {
    width: calc(var(--width-wide) + 20px);
    margin: 40px auto;
}

.banner img {
    width: 100%;
}

/*
===
Links with icons after offers
===
*/

.links {
    width: 100%;
    margin: 3em auto 0 auto;
    background-color: white;
    color: black;
    padding: 20px 30px;
    box-sizing: border-box;
    border-top: solid var(--canada-red) 4px;
}

.links-text {
    width: var(--width-wide);
    margin: 0px auto;
}

.links-text>* {
    margin-inline-end: 10px;
    margin-block-end: 0.1em;
}

.links-text p {
    margin-block-start: 0.5em;
    margin-block-end: 3em;
}

/*
===
Ribbons
===
*/

.ribbon {
  position: absolute;
  z-index: 11;
  top: 6px;
  left: -2px;
  padding: 5px;
  padding-right:10px;
  font-family: inherit;
  display: none;
  box-shadow: rgba(0,0,0,0.2) 2px 2px 2px;
}

.ribbon.gold {
  display: block;
  background: var(--gold1);
  background-image: linear-gradient(
    325deg,
    transparent 28%,
    var(--gold2) 55%,
    transparent 91%
  );
}

.ribbon.gold::after {
  background: var(--gold3);
}

.ribbon.silver {
    display: block;
  background: var(--silver1);
  background-image: linear-gradient(
    325deg,
    transparent 28%,
    var(--silver2) 55%,
    transparent 91%
  );
  color: black;
}

.ribbon.silver::after {
  background: var(--silver3);
}

.ribbon.bronze {
    display: block;
  background: var(--bronze1);
  background-image: linear-gradient(
    325deg,
    transparent 28%,
    var(--bronze2) 55%,
    transparent 91%
  );
  color: black;
}

.ribbon.bronze::after {
  background: var(--bronze3);
}

.ribbon.blue {
    display: block;
  background: var(--blue1);
  background-image: linear-gradient(
    325deg,
    transparent 28%,
    var(--blue2) 55%,
    transparent 91%
  );
  color: white;
}

.ribbon.blue::after {
  background: var(--blue3);
}

.ribbon:before,
.ribbon:after {
  content: "";
  position: absolute;
}
.ribbon:before {
  width: 7px;
  height: 100%;
  top: 0;
  left: -6.5px;
  padding: 0 0 7px;
  border-radius: 5px 0 0 5px;
  background-color: inherit;
}
.ribbon:after {
  width: 5px;
  height: 5px;
  bottom: -5px;
  left: -4.5px;
  border-radius: 5px 0 0 5px;
}


/*Footer*/

#footer {
    margin-bottom: 0;
    width: 100%;
    z-index: 2;
    background-color: var(--canada-darkgray);
}

.footer-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap-reverse;
    border-radius: calc(var(--border-radius)*4);
    text-align: center;
}

.footer-item {
    margin-right: 25px;
    font-size: 0.8em;
    color: var(--canada-gray);
    align-items: center;
    text-decoration: none;
    height: 20px;
    margin: 20px 10px;
    width: 100%;
}

.footer-logos {
    display: flex;
    /*justify-content: center;*/
    flex-wrap: wrap;
    align-items: baseline;
}

.footer-logos * {
    padding: 10px;
    width: auto;
}



/* Responsive */
@media screen and (min-width: 800px) {

    .name {
        /*padding-bottom: 15px;*/
    }

    .grid-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .grid-container>* {
        flex: 1;
    }
    .Offer {flex: 1.3;}

    .card {
        width: var(--width-wide);
        max-height: 90px;
        background-color: white
    }

    .cards-header-content {
        height: auto;
        margin-top: 0px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        padding: 0 20px;
        border-radius: var(--border-radius);
        width: var(--width-wide);
        color: white;
        display: flex;
        justify-content: space-between;
        text-align: center;
        visibility: visible;
    }

    .cards-header {
        width: 100%;
        background-color: var(--canada-darkgray);
    }


    .cards-header-content>* {
        width: 25%;
    }

    .brand {}

    .ratings {
        min-width: 96px;
    }

    .banner-large {
        width: calc(var(--width-wide) + 20px);
        margin: 40px auto;
    }

    .banner-large img {
        width: calc(var(--width-wide) + 20px);
        margin: 0 auto;
    }

    .banner-small {
        display: none;
    }

    .links {
        width: 100%;
        box-sizing: border-box;
        padding: 30px 30px;
        border-radius: var(--border-radius);
    }




    /* TOP 3 PROVIDERS */

    /* .card:nth-child(-n+4) {
        width: calc(var(--width-wide) / 3);
    }*/





}

@media screen and (max-width: 1079px) {
    :root {
        --width-wide: 90vw;
    }

    #footer {
        bottom: 3em;
    }
}

@media screen and (max-width: 799px) {
    .name {
        text-align: center;
    }

    #hero h1 {
        padding: 90px 10px;
    }

    #hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0), rgb(0, 0, 0)), url("../img/thebestcasinos-nl-bg-mobile.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: initial;
        background-position: bottom;
        margin: 0;
    }


    .state-header {
        display: inline-block;
    }

    .state {
        font-size: 1.3rem
    }

    .navbarx {
        width: var(--width-wide);
    }

    .brand {
        height: 80px
    }

    .banner-small {
        width: calc(var(--width-wide) + 20px);
        margin: 40px auto;
    }

    .banner-small img {
        width: calc(var(--width-wide) + 20px);
        margin: 0 auto;
    }

    .banner-large {
        display: none;
    }


    /* hide on mobile */
    .cards-header,
    .ranking,
    #cheerleader {
        display: none;
    }

}