/* Utils */

section .max-width-700 {
    max-width: 700px;
    margin: auto;
}

section {
    padding-left: 1rem;
    padding-right: 1rem;
}

.button{
    padding: .3rem 1rem;
    cursor: pointer;
}

.google-apple-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    /* Spacing between google-play and app store */
    grid-gap: 32px;
}

.google-apple-container a {
    justify-self: right;
}

.google-apple-container img {
    height: 40px;
    width: auto !important;
    /* Borders */
    border: 1px solid rgba(255, 255, 255, 0.335);
}

.google-apple-container a:last-child {
    justify-self: left;
}

/* Popup */

.popup .cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    grid-gap: 2rem;
}


/* Nav styling: */


nav {
    /* Adds some white space on all sides */
    padding: 1rem;
    /* Makes the navbar stick on top of the page */
    position: sticky;
    position: -webkit-sticky; /* Safari */
    top: 0;
    left: 0;
    /* NAV ALWAYS ON TOP */
    z-index: 2000;
}

/* Aligns the two part of the navigation */
nav .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Aligning the left and right part of the navigation */
nav .nav-wrapper > div,
nav .nav-wrapper > div .log-in {
    display: flex;
    align-items: center;
}

nav .nav-wrapper svg {
    max-width: 35px;
}

/* Header styling */

header {
    /* Cuts some part of the background off, if you want to change it do it here: https://bennettfeely.com/clippy/ */
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 79% 99%, 0 86%);
}

header .header-small-image {
    /* Change width of the first image on the header */
    max-width: 70px;
}

header .header-bold {
    /* Changes the thickness of the text */
    font-weight: 900;
}


/* Section mockup */

section.mockup {
    margin-top: -5rem;
}

section.mockup img {
    /* Change width of mockup image here */
    max-width: 800px;
}

/* Section league in your pocket */

section.features .cards {
    /* Layout of the different features */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 2rem;
}

section.features .cards .w3-circle {
    display: inline-block;
}

section.features .cards .w3-circle img {
    height: 40px;
    width: 40px;
}



/* Individual League And Team Leaugues*/

section.individual, 
section.team {
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

section.individual .content-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
    clip-path: polygon(0 0, 100% 29%, 100% 100%, 0% 100%);
}

section.team .content-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
    clip-path: polygon(0 29%, 100% 0%, 100% 100%, 0% 100%);
}

section.individual h2,
section.team h2 {
    font-weight: 900;
}

section.individual .lead,
section.team .lead {
    max-width: 400px;
}

section.team .lead {
    margin: 0 0 0 auto;
}

section.individual .img,
section.team .img {
    position: absolute;
    bottom: 0;
    height: 130%;
}

section.individual .img {
    right: 100px;
}

section.team .img {
    left: 100px;
}

section.individual .img img,
section.team .img img {
    height: 100%;
    width: auto;
}

section.team {
    /* Spacing between individual and team */
    margin-top: 9rem;
}

/* Service styling */

section.service .number {
    font-weight: 900;
    font-style: oblique;
    pointer-events: none;
    user-select: none;
    font-size: 12rem;
    opacity: .3;
}

section.service .cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

section.service .card {
    position: relative;
}

section.service .card .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Updates */

section.updates {
    padding: 0 !important;
}

section.updates img {
    /* Makes the img go down */
    margin-bottom: -5rem;
}

section.updates .content-wrapper {
    clip-path: polygon(50% 0%, 100% 15%, 100% 100%, 0 80%, 0 15%);
    /* Puts the img on top of the blue background */
    position: relative;
    z-index: -100;
}

/* Panel */

section.panel {
    margin-top: -5rem;
    z-index: 1000;
    position: relative;
}

section.panel .cards, 
section.live .cards {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Live */

section.live {
    margin-top: -5rem;
    padding-top: 7rem;
    clip-path: polygon(100% 0, 100% 100%, 75% 100%, 0 80%, 0 20%);
}

/* Reviews */

section.reviews .cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2rem;
}

section.reviews .cards img {
    max-width: 100px;
}

/* Footer */

footer .cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

footer .cards .card a:hover {
    text-decoration: underline;
}

footer .cards .card input,
footer .cards .card textarea, 
footer .cards .card button {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    resize: vertical;
    cursor: text !important;
}

footer .cards .card button {
    cursor: pointer !important;
}

footer .instagram-facebook {
    display: flex;
    justify-content: flex-end;
}

@media only screen and (max-width: 1150px) {
    section.individual .img,
    section.team .img {
        height: 110%;
    }
    section.individual .img {
        right: 50px;
    }
    section.team .img {
        left: 50px;
    }
}

@media only screen and (max-width: 1000px) {
    section.individual .img,
    section.team .img {
        height: 90%;
    }
    section.individual .img {
        right: 1rem;
    }
    section.team .img {
        left: 1rem;
    }
}

@media only screen and (max-width: 850px) {
    section.individual .img,
    section.team .img {
        height: 70%;
    }
    section.service .cards {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 750px) {
    section.individual .img,
    section.team .img {
        height: 50%;
    }
    footer .cards{
        grid-template-columns: 1fr;
    }
    footer .cards .card {
        text-align: center !important;
        border-bottom: rgba(221, 221, 221, 0.3) 1px solid;
    }
    footer .instagram-facebook {
        justify-content: center;
    }
}

@media only screen and (max-width: 700px) {
    section.reviews .cards {
        grid-template-columns: 1fr;
    }
    section.reviews .cards .card {
        text-align: center !important;
        border-bottom: rgba(221, 221, 221, 0.3) 1px solid;
    }
    header .w3-jumbo {
        font-size: 35px !important;
    }
    .popup .cards {
        grid-template-columns: 1fr;
    }
    .popup .card {
        text-align: center !important;
    }
}

@media only screen and (max-width: 575px) {
    section.features .cards {
        grid-template-columns: 1fr;
    }
    section.features .cards .card {
        text-align: center !important;
        border-bottom: rgba(221, 221, 221, 0.3) 1px solid;
        padding-top: 48px;
        padding-bottom: 48px;
    }
    section.panel,
    section.live {
        margin-top: 0;
    }
    section.panel {
        padding: 4rem 1rem;
    }
    section.individual .content-wrapper,
    section.team .content-wrapper,
    section.live {
        clip-path: none;
    }

    section.individual .img,
    section.team .img {
        display: none;
    }

    section.live {
        padding: 4rem 1rem;
    }
}

@media only screen and (max-width: 400px) {
    nav .nav-wrapper {
       flex-direction: column;
    }
    section.panel .cards, section.live .cards {
        flex-direction: column;
    }
    .google-apple-container {
        grid-template-columns: 1fr;
    }
    .google-apple-container img {
        justify-self: center !important;
    }
}
