main {
    text-align: center;
}

header {
    background-color: transparent;
    border-bottom: 0;
    height: 180px;
    padding: 0;
    position: relative;
}

header > a {
    align-self: flex-start;
    margin-top: 20px;
}

header > .dummy {
    padding-left: calc(3vw + 38px); /* 38px is to match the width of the profile image. WHAT IF THERE IS NONE??????? */
}

#user-section {
    padding-right: 3vw;
    align-self: flex-start;
    margin-top: 15px;
}

main {
    min-height: calc(100vh - 181px - 30px); /* 181px is height of header including border. 30px is the height of the footer */
}

.logo {
    width: 239px;
    height: 106px;
}

.header-background {
    width: 100%;
    height: 160px;
    position: absolute;
    z-index: 1;
}

.dotted-divider {
    border: 0;
    border-bottom: 4px dotted rgba(155, 155, 155, 0.4);
    width: 500px;
    max-width: 80%;
    margin: 30px auto;
}

.carousel-arrow-prev-container,
.carousel-arrow-next-container {
    width: 20px;
    margin-left: 20px;
    padding-top: 70px;
    display: inline-block;
}

.carousel-arrow-prev-container  {
    margin-left: 0;
    margin-right: 20px;
}

.carousel-arrow-prev {
    transform: rotate(90deg);
}

.carousel-arrow-next{
    transform: rotate(-90deg);
}

.carousel-arrow-prev:disabled,
.carousel-arrow-next:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* EVERYTHING predictions-example-list => carousel */
.predictions-example-list-wrapper {
    position: relative;
    width: calc(100% - 100px);
    display: inline-block;
    vertical-align: top;

    /*padding: 0 50px;
    box-sizing: border-box;*/
}

.predictions-example-list {
    display: flex;
    list-style-type: none;
    overflow-y: hidden;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding: 0;
    padding-inline-start: 0;
    overflow-y: hidden;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.predictions-example-list-wrapper:before, .predictions-example-list-wrapper:after {
    content: '';
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(-90deg, rgba(251,243,230,0) 0%, rgba(251,243,230,1) 100%);
    z-index: 1;
    pointer-events: none;
}

.predictions-example-list-wrapper:after {
    left: auto;
    right: 0;
    background: linear-gradient(90deg, rgba(251,243,230,0) 0%, rgba(251,243,230,1) 100%);
}

.predictions-example-list::-webkit-scrollbar {
    display: none;
}

.prediction-example {
    margin: 0 15px;/*0 5px;*/
    scroll-snap-align: center;
}

.prediction-example.first {
    margin-left: 0;
}

.prediction-example.last {
    margin-right: 0;
}

.example-padding div {
    display: inline-block;
    width: 70px;
}

.predictions-example-list article {
    /*border: 1px solid lightgray;
    border-radius: 3px;*/
    width: 400px;
    box-sizing: border-box;
    font-size: 16px;
    background: white;
    border: 0;
    /*box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);*/
}

.predictions-example-list article .avatar-section {
    font-size: 14px;/*16px;*/
    display: flex;
    /*font-weight: bold;*/
    background: #fbf3e5;
    padding: 8px;
    color: #3a3838;
    /*border-bottom: 1px solid rgba(58,56,56,0.1);
    border-radius: 3px 3px 0 0;*/
}

.predictions-example-list article .avatar-section > * {

    margin-top: 0;
}

.predictions-example-list article .avatar-section > span {
    align-self: center;
}

.predictions-example-list article img {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    margin-right: 8px;
}

.predictions-example-list article blockquote {
    background: white;
    padding: 16px;
    padding-top: 10px;
    margin-top: 10px;
    line-height: 24px;
    border-radius: 3px;
    margin: 0;
}

.predictions-example-list article blockquote.sealed {
    max-width: 600px;
    margin-bottom: 30px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
    
.predictions-example-list article blockquote.sealed:before {
    filter: blur(4px);
    opacity: 0.6;
    content: "Ha wise-ass, did you really think you could read the real prediction here? No, you'll have to wait for it be revealed";
}

.create-link {
    margin: 16px auto;
}

@media only screen and (max-width: 640px) {
    .predictions-example-list-wrapper {
        width: 100vw;
    }

    .carousel-arrow-prev-container,
    .carousel-arrow-next-container {
        display: none;
    }

    .predictions-example-list article {
        width: calc(100vw - 60px);
        font-size: 16px;
    }

    .example-padding div {
        width:30px;
    }

    .predictions-example-list-wrapper:before, .predictions-example-list-wrapper:after {
        background: none;
    }
}

@media only screen and (max-width: 480px) {
    .header-background {
        width: 100%;
        height: 120px;
        position: absolute;
    }

    header {
        height: 120px;
    }

    header > a {
        margin-top: 10px;
    }

    header > .dummy {
        padding-left: calc(5vw + 38px); /* 38px is to match the width of the profile image. WHAT IF THERE IS NONE??????? */
    }

    main {
        min-height: calc(100vh - 121px); /* 121px is height of header including border. Don't include the footer height. On mobile we want it outside the viewport */
    }
    
    #user-section {
        padding-right: 5vw;
    }

    .logo {
        width: 180px;
        height: 80px;
    }


    .dotted-divider {
        border-bottom-width: 2px;
        margin: 20px auto;
    }

    .prediction-example {
        margin: 0 8px;
    }
}


/* For big phones like iphone X , XS, 11 Pro, 12 Mini */
@media only screen and (min-device-width: 375px) and (min-device-height: 800px) {
    main {
        padding-top: 40px;
    }
    
    .dotted-divider {
        margin-bottom: 50px;
    }
}
