/* ************************************** */
/* ******* My own css starts here ******* */
/* ************************************** */

/* Body basic params */
body
{
    font-family: 'Roboto', sans-serif;
}

/* mobile version of header */
.mobile
{
    background: #ff5722;
    color: white;
}

/* accent color */
.accent
{
    color: #ff5722;
}

/* Login screen background */
.layout-transparent
{
    background: url('/static/img/girl.jpg');
    background-position:center top;
    background-repeat:no-repeat;
    background-size:cover;
    height: 100%;
}

/* Login box with username and  password */
.login-box
{
    position: absolute;
    padding: 80px 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 520px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .8);
    border: 1px solid #ebebeb;
}

/* app logo */
.app-logo
{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: calc(-100px / 2);
    left: calc(50% - 50px);
}

/* notification message */
.message
{
    background-size: 40px 40px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%,
                        transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%,
                        transparent 75%, transparent);
     box-shadow: inset 0 -1px 0 rgba(255,255,255,.4);
     width: 100%;
     border: 1px solid;
     color: #fff;
     padding: 15px;
     position: fixed;
     _position: absolute;
     text-shadow: 0 1px 0 rgba(0,0,0,.5);
     animation: animate-bg 5s linear infinite;
     z-index: 999;
}

/* error for notification message */
.error
{
     background-color: #de4343;
     border-color: #c43d3d;
}

/* success for notification message */
.success
{
     background-color: #61b832;
     border-color: #55a12c;
}

@keyframes animate-bg
{
    from
    {
        background-position: 0 0;
    }
    to
    {
       background-position: -80px 0;
    }
}

/* Error screen background */
.error-background
{
    background: url('/static/img/404.jpeg');
    background-position:center top;
    background-repeat:no-repeat;
    display: table;
    position: absolute;
    height: 100%;
    width: 100%;
}

/* Div than can be centered vertically in another div */
.middle
{
    display: table-cell;
    vertical-align: middle;
}

/* Tinted div - used in error pages */
.tinted
{
    width: 50%;
    min-height: 400px;
    background: rgba(255, 255, 255, .5);
    margin: 0 auto;
    text-align: center;
}

/* Text params in error section */
#error_section h2
{
    color: red;
    padding-top: 100px;
}

/* Font style for winners */
.winner a
{
    font-weight: bold;
}

/* Cell used in profile, stats, etc. params */
.mdl-cell
{
    padding-bottom: 32px;
}

/* Base color - should be changed to CSS variable */
.title-color
{
    color: #ff5722;
}

/* Minimize paddings to fit */
.mdl-data-table td
{
    padding: 4px;
}

.mdl-layout__header-row .mdl-navigation__link
{
    color: #ff5722;
}

/* Text cell in table */
.mdl-data-table
{
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Horizontally centered */
.centered
{
    text-align: center;
}

/* Text cell in table */
.table-text
{
    font-size: 16px;
}

/* Profile text */
.profile-name
{
    float: right;
    text-align: right;
    vertical-align: top;
    padding-top: 16px;
    padding-right: 16px;
}

/* Header div */
.heading
{
    background-color: #807a7a;
    height: 50px;
    margin-bottom: 20px;
}

/* Block header text */
.heading-text
{
    color: #fff;
    margin: 0px;
    padding-top: 16px;
    padding-left: 16px;
}

/* Non important text */
.text-muted
{
    color: grey;
}

/* Item separator for mobile menu */
.drawer-separator
{
    height: 1px;
    background-color: #dcdcdc;
    margin: 8px 0;
}

select
{
    font-family: inherit;
    background-color: transparent;
    width: 100%;
    padding: 4px;
    margin-bottom: 20px;
    font-size: 16px;
    color: $select-color;
    border: none;
    border-bottom: 1px solid red;
}

/* Remove focus */
select:focus
{
    outline: none
}

/* Floating button */
.button-float
{
    position: fixed;
    right: 10%;
    bottom: 10%;
    z-index: 3;
}

/* Dialog */
dialog
{
    visibility: hidden;
    transform: scale(0.1);
    transition: transform 200ms;
}

/* Dialog scale animation */
dialog.dialog-scale
{
    visibility: visible;
    transform: scale(1);
}

/* Backdrop color when dialog is visible */
::backdrop
{
    background-color: rgba(0, 0, 0, 0.5);
}

/* Dialog itself */
.site-dialog
{
    overflow: hidden;
    width: 95%;
    padding: 0px;
    max-width: 400px;
    border-width: 0;
    border-radius: 5px;
    background: transparent;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.3);
}

/* Dialog title */
.site-dialog h5
{
    margin: 0;
    text-transform: uppercase;
    color: #fff;
}

/* Dialog header */
.site-dialog .dialog-header
{
    padding: 12px 20px;
    background-color: #ff5722;
}

/* Dialog content */
.site-dialog .dialog-content
{
    padding: 30px 20px;
    background-color: #fff;
}

/* Button group in dialog */
.btn-group
{
    padding: 15px 20px;
    text-align: right;
    background-color: #f5f6f8;
}

/* Table header background color */
.mdl-data-table thead
{
    background: lightgray;
}

/* Rounded image */
.img-circle
{
    border-radius: 50%;
}

/* Rounded image */
.img-big
{
    width: 200px;
    height: 200px;
}

/* Header im profile - contains image, name, flag */
.profile-image-header
{
    padding-left: 16px;
    padding-bottom: 16px;
}

/* Tournament details logo */
.tournament-logo
{
    padding-left: 16px;
}

/* Text base params in blocks */
.block-base
{
    padding-left: 16px;
    padding-right: 16px;
}

/*******************************/
/* Gallery related css classes */
/*******************************/
.picture-container
{
    display: inline-block;
    height: 320px;
}

.vcenter
{
    width: 100%;
    height: 100%;
    display: table;
}

.vcenter-container
{
    display: table-cell;
    vertical-align: middle;
    overflow-y: auto;
}

.vcenter-content
{
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    height: auto;
}

.lightbox
{
    z-index: 5;
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    opacity: 0;
}

/* Hover on gallery picture */
.picture-container:hover
{
    opacity: .66;
}

/* Hover on gallery picture */
.picture-container:hover .meta
{
    opacity: 1;
}

/* Hover on gallery picture */
.picture-container:hover .caption
{
    opacity: 1;
}

/* Hover on gallery picture */
.picture-container:hover img
{
    transform:scale(1.1, 1.1);
    transition: all .2s ease-in-out;
}

/* Meta for gallery picture */
.meta
{
    z-index: 6;
    position: absolute;
    color: #f8f8f8;
    text-align: center;
    width: 100%;
    left: 0px;
    bottom: 5%;
    font-size: 12px;
    opacity: 0;
}

/* Caption for gallery picture */
.caption
{
    z-index: 6;
    position: absolute;
    color: #f8f8f8;
    text-align: center;
    width: 100%;
    top: 50%;
    font-style: italic;
    left: 0;
    opacity: 0;
}

#image-container
{
    text-align: center;
}

/* media queries from mobile phone*/
@media screen and (max-width: 767px)
{
    /* Hide table columns on small screens */
    .hidden-xs
    {
        display: none;
    }

    /* Tinted div - used in error pages */
    .tinted
    {
        width: 80%;
    }

    /* responsive table*/
    .table-responsive
    {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border: 1px solid #ddd;
    }
    .table-responsive > .table
    {
        margin-bottom: 0;
    }

    .table-responsive > .table > thead > tr > th,
    .table-responsive > .table > tbody > tr > th,
    .table-responsive > .table > tfoot > tr > th,
    .table-responsive > .table > thead > tr > td,
    .table-responsive > .table > tbody > tr > td,
    .table-responsive > .table > tfoot > tr > td
    {
        white-space: nowrap;
    }
    .table-responsive > .table-bordered
    {
        border: 0;
    }
    .table-responsive > .table-bordered > thead > tr > th:first-child,
    .table-responsive > .table-bordered > tbody > tr > th:first-child,
    .table-responsive > .table-bordered > tfoot > tr > th:first-child,
    .table-responsive > .table-bordered > thead > tr > td:first-child,
    .table-responsive > .table-bordered > tbody > tr > td:first-child,
    .table-responsive > .table-bordered > tfoot > tr > td:first-child
    {
        border-left: 0;
    }
    .table-responsive > .table-bordered > thead > tr > th:last-child,
    .table-responsive > .table-bordered > tbody > tr > th:last-child,
    .table-responsive > .table-bordered > tfoot > tr > th:last-child,
    .table-responsive > .table-bordered > thead > tr > td:last-child,
    .table-responsive > .table-bordered > tbody > tr > td:last-child,
    .table-responsive > .table-bordered > tfoot > tr > td:last-child
    {
        border-right: 0;
    }
    .table-responsive > .table-bordered > tbody > tr:last-child > th,
    .table-responsive > .table-bordered > tfoot > tr:last-child > th,
    .table-responsive > .table-bordered > tbody > tr:last-child > td,
    .table-responsive > .table-bordered > tfoot > tr:last-child > td
    {
        border-bottom: 0;
    }
}

/* media queries from mobile phone*/
@media screen and (max-width: 1023px)
{
    /* Adjust profile image on mobile */
    .img-small
    {
        width: 64px;
        height: 64px;
    }
}
