/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

:root{--main-color1:#fefefe;--main-color2:#000000;--main-color3:#ff6700;--main-color4:#c7112b;}

{-webkit-tap-highlight-color:rgba(0,0,0,0);}
@font-face{font-family:Roboto;src:url(../static/soshop/fonts/roboto/Roboto-Regular.ttf) format(opentype);}

/* General */
body{font-family:Roboto!important;font-weight:400;height:100%;margin:0;padding:0;}
h1{color:var(--main-color1);font-size:x-large!important;font-weight:400;margin:0;overflow:visible;padding:.2em 0!important;text-align:center;}

/* scan page */
#scan-page{background-color:transparent!important;background-position:top center!important;background-size:cover!important;}
#viewTableBottom{bottom:20%;max-width:100%;position:absolute;width:100%;}
.center-wrapper-nbscan{text-align: center;margin-top: 5%;margin-right: auto;margin-bottom: -10%;margin-left: auto;}
#scannumber{background-color:var(--main-color3);color:var(--main-color1);font-size:36px;font-weight:bolder;border-radius: 50%;padding: 12px;height: fit-content;width: fit-content;margin-top: 15px;}
#scannumbertxt{color: var(--main-color3);font-size: 20px;font-weight: bolder;padding-bottom: 10px;}
.scanstat{border-top-width: 5px;border-top-style: dotted;border-top-color: var(--main-color3);}

#id_scan_page #container, #id_scan_page {
    background-color:transparent!important;background-position:top center!important;background-size:cover!important;
}
#header nav {background-color: rgba(0, 0, 0, 0.75);}
#upper_bar, #bottom_bar, #left_bar, #right_bar {
    position: absolute;
    background-color: #404040!important;
}
:root{
    --top-menu-height:36px;
    --bottom-menu-height:60px;
    --scan-height:260px;
    --scan-width:260px;
    /* Pour changer la position du carrée de scan dans le window, il suffit de modifier le params suivant: */
    --upper-bar-height: calc( (100vh - var(--top-menu-height) - var(--bottom-menu-height))/2 - var(--scan-height)/2);
}
        #upper_bar {
            top: var(--top-menu-height);
            width: 100%;
            height: var(--upper-bar-height);
        }
        #left_bar {
            top: var(--top-menu-height);
            right: 0;
            width: calc((100vw - var(--scan-width))/2);
            height: calc(100% - var(--bottom-menu-height) - var(--top-menu-height));
        }
        #right_bar {
            top: var(--top-menu-height);
            left: 0;
            width: calc((100vw - var(--scan-width))/2);
            height: calc(100% - var(--bottom-menu-height) - var(--top-menu-height));
        }
        #bottom_bar {
            bottom: 0;
            left: 0;
            width: 100%;
            height: calc(100vh - var(--scan-height) - var(--top-menu-height) - var(--upper-bar-height));
        }
        #scan_rectangle {
            width: var(--scan-width);
            height: calc(var(--scan-height));
            position: absolute;
            top: calc(var(--top-menu-height) + var(--upper-bar-height));
            left: calc((100vw - var(--scan-width))/2);
        }
        #buttons_div {
            position: absolute;
            bottom: 100px;
            left: calc((100vw - 326px)/2);
            width: 326px;
            z-index: 215;
        }

/* Scratch page related */
    @font-face {
      font-family: WorkSans-Bold;
      src: url(../../../static/soshop/fonts/WorkSans-Bold.ttf);
    }
body {
  padding: 0 0;
    margin: 0;
}

.container {
  position: relative;
  width: 360px;
  height: 95%;
  margin: 0 auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

    #id_scan_page #header nav {
        background-color: rgba(0, 0, 0, 0.75);
    }
    #buttons_div .btn {
        width: 158px;
        color: white;
        border-radius: 4px;
        text-align: center;
        margin-left: 0px;
    }
    .btn.see-tickets-btn {
        background: transparent;
        border: solid 1px #ffffff;
    }
    .btn.prizes-btn {
        background: #c2771e;
        border: solid 1px #c2771e;
    }
    #id_scan_page, #no_network_page {
        display: none;
    }
#no_network_page main {
  padding: 10px 0;
  color: black;
    background-color: white;
  font-family: roboto, sans-serif;
  overflow-x: scroll;
  padding-top: 40px;
  min-height: 100vh;
}
.middle-message {
    width: 50%;
    height: 50%;
    margin: auto;
    font-size: 24px;
    text-align: center;
    margin-top: 50px;
}
#scan_text {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding-top: 5px;
 }


