/* 
      Project : Rock, Paper, Scissors app.
      Last update : 18/09/2018 
      
      MIT License

Copyright (c) 2018 Anis Bouhadida

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

      Summary:
      ========
      1/ Body & general style.
      2/ Informations window style. 
      3/ Playing buttons style.
      4/ Display style.
      5/ Media queries & responsive design.
      ========
*/

/* 
      1/ Body & general style:
      ========================
*/
body {
      background-image: url("bkgImage-min.jpg");
      background-attachment: fixed;
      background-position: center center;
      background-repeat: no-repeat;
      background-size: cover;
      margin: 0;
      font-family: 'Roboto', sans-serif;
}

#lang-btn {
      color: #1545b6;
      margin: 10px;
      float: left;
}

/* 
  2/ Informations window style:
  ============================= 
*/
#help-btn {
      color: #1545b6;
      margin: 10px;
      padding: 8px 0;
      float: left;
}

.hide {
      display: none;
}

.infoContainer {
      width: 30%;
      margin: 60px auto;
      border-radius: 20px;
      box-shadow: 2px 2px 2px #6d60c4,
            -2px -2px 2px #6d60c4,
            -1px -1px 2px #1545b6,
            1px 1px 2px #1545b6,
            3px 3px 2px #a080d3,
            -3px -3px 2px #a080d3,
            -4px -4px 2px #caa3e3,
            4px 4px 2px #caa3e3;
      background-color: rgba(240, 233, 233, 0.746);
      text-align: center;
}

.infoContainer>h1 {
      margin: 0;
      text-decoration-style: double;
}

.infoContainer>h1>a {
      text-decoration: none;
      color: #6d60c4;
      font-size: 0.5em;
}

.infoContainer>p {
      text-align: left;
      padding: 5px;
}

.infoContainer>p>span {
      color: #6d60c4;
      font-weight: bold;
}

/* 
      3/ Playing buttons:
      ===================
*/
ul {
      list-style-type: none;
      width: 75%;
      margin: auto;
      padding: 0;
      text-align: center;
}

.btn {
      display: inline-block;
      background-image: linear-gradient(to top, #1545b6, #6d60c4, #a080d3, #caa3e3, #eecaf6);
      width: 20%;
      margin: 1em 0.5em 0 0;
      border-radius: 50px;
      padding: 20px 0;
      font-weight: bold;
      text-align: center;
      color: azure;
      font-size: 2em;
}

.btn:hover {
      background-image: linear-gradient(to bottom, #1545b6, #6d60c4, #a080d3, #caa3e3, #eecaf6);
}

#pa-btn {

      position: fixed;
      bottom: 30px;
      left: 20px;
}

#pa-txt {
      margin: 0;
}

/* 
      3/ Display style:
      =================
*/
.displayGame {
      width: 30%;
      margin: 80px auto;
      border-radius: 20px;
      box-shadow: 2px 2px 2px #6d60c4,
            -2px -2px 2px #6d60c4,
            -1px -1px 2px #1545b6,
            1px 1px 2px #1545b6,
            3px 3px 2px #a080d3,
            -3px -3px 2px #a080d3,
            -4px -4px 2px #caa3e3,
            4px 4px 2px #caa3e3;
      background-color: rgba(240, 233, 233, 0.746);
      text-align: center;
      line-height: 3em;
}

.displayFinalResult {
      position: fixed;
      bottom: 30px;
      left: 35%;
      width: 30%;
      border-radius: 20px;
      box-shadow: 2px 2px 2px #6d60c4,
            -2px -2px 2px #6d60c4,
            -1px -1px 2px #1545b6,
            1px 1px 2px #1545b6,
            3px 3px 2px #a080d3,
            -3px -3px 2px #a080d3,
            -4px -4px 2px #caa3e3,
            4px 4px 2px #caa3e3;
      background-color: rgba(240, 233, 233, 0.746);
      text-align: center;
}

.displayFinalResult>p {
      font-size: 2em;
      font-weight: bold;
      margin: 0;
      padding: 1em;
}

/* 
      4/ Media queries & responsive design:
      =====================================
*/
@media screen and (min-width : 942px) and (max-width : 1024px) {
      .btn {
            display: list-item;
            list-style: none;
            min-width: 155px;
            margin: 1em auto;
            padding: 40px;
      }

      .infoContainer {
            width: 90%;
            margin: 40px auto;
      }


      .displayGame {
            width: 90%;
            margin: 80px auto;
      }

      .displayFinalResult {
            width: 90%;
            position: unset;
            margin: 80px auto;
      }

      .displayFinalResult>p {
            padding: 2em;
      }

      #pa-btn {
            position: unset;
            margin: auto;
      }
}

@media screen and (min-width : 625px) and (max-width : 941px) {
      .btn {
            display: list-item;
            list-style: none;
            min-width: 155px;
            margin: 0.5em auto;
            padding: 20px;
      }

      .infoContainer {
            width: 90%;
            margin: 40px auto;
      }

      .displayGame {
            width: 90%;
            margin: 80px auto;
      }

      .displayFinalResult {
            width: 90%;
            position: unset;
            margin: 80px auto;
      }

      .displayFinalResult>p {
            padding: 2em;
      }

      #pa-btn {
            position: unset;
            margin: auto;
      }
}

@media screen and (min-width : 385px) and (max-width : 624px) {
      .btn {
            display: list-item;
            list-style: none;
            min-width: 155px;
            margin: 0.2em auto;
            padding: 10px;
      }

      .infoContainer {
            width: 90%;
            margin: 20px auto;
      }

      .displayGame {
            width: 90%;
            margin: 40px auto;
      }

      .displayFinalResult {
            width: 90%;
            position: unset;
            margin: 40px auto;
      }

      .displayFinalResult>p {
            padding: 0.8em;
      }

      #pa-btn {
            position: unset;
            margin: auto;
      }

}

@media screen and (max-width : 384px) and (min-height : 800px) {
      .btn {
            display: list-item;
            list-style: none;
            min-width: 155px;
            margin: 0.2em auto;
            padding: 20px;
      }

      .infoContainer {
            width: 90%;
            margin: 20px auto;
      }

      .displayGame {
            width: 90%;
            margin: 40px auto;
      }

      .displayFinalResult {
            width: 90%;
            position: unset;
            margin: 40px auto;
      }

      .displayFinalResult>p {
            padding: 0.8em;
      }

      #pa-btn {
            position: unset;
            margin: auto;
      }
}

@media screen and (max-width : 384px) and (max-height : 800px) {
      .btn {
            display: list-item;
            list-style: none;
            min-width: 155px;
            margin: 0.2em auto;
            padding: 10px;
      }

      .infoContainer {
            width: 90%;
            margin: 10px auto;
      }

      .displayGame {
            width: 90%;
            margin: 20px auto;
      }

      .displayFinalResult {
            width: 90%;
            position: unset;
            margin: 20px auto;
      }

      .displayFinalResult>p {
            padding: 0.5em;
      }

      #pa-btn {
            position: unset;
            margin: auto;
      }
}

@media screen and (max-width : 384px) and (max-height : 639px) {
      .btn {
            display: list-item;
            list-style: none;
            min-width: 155px;
            margin: 0.2em auto;
            padding: 10px;
      }

      .infoContainer {
            width: 90%;
            margin: 10px auto;
      }

      .displayGame {
            width: 90%;
            margin: 20px auto;
            line-height: 1.5em;
      }


      .displayFinalResult {
            width: 90%;
            position: unset;
            margin: 20px auto;
      }

      .displayFinalResult>p {
            padding: 0.2em;
      }

      #pa-btn {
            position: unset;
            margin: auto;
      }
}