@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Permanent+Marker&family=Press+Start+2P&display=swap');

body{
    background-color:#303030;
    /*background-image:url(./images/back1.webp);
    background-size:auto;
    background-position: center;*/
    text-align: center;
    font-family: "Verdana";
}

.password_definition{
    padding: 20px;
}

a{
    text-decoration: none;
    color: yellowgreen;
}

a:visited{
    color: yellowgreen;
}

#header{
    text-align: center;
    display: inline;
    text-shadow: 1px 1px 2px black;
}

h1{
    font-family: "Press Start 2P";
    font-size: 2em;
    color: yellowgreen;
}

h2{
    font-size: 1em;
    margin-bottom: 10px;
    margin-top: 0;
}

h3{
    font-family: "Fredoka One";
    font-size: 1.5em;
    color: white;
    margin-top: 0px;
    margin-bottom: 10px;
}

#comment{
    font-family: "Verdana";
    font-size: 0.7em;
    color: #303030;
}

#password{
    background-color:yellowgreen;
    font-family: "Press Start 2P";
    color: yellow;
    padding: 1em;
}

#passphrase{
    background-color:yellowgreen;
    font-family: "Press Start 2P";
    color: yellow;
    font-size: 0.85em;
    padding: 1em;
    border: 0;
    width: 100%;
    text-align: center;    
}

@media screen and (max-width: 600px) {
    #passphrase {
      font-size: 0.5em;
    }
}

#passphrase input:active{
    border: 0;
}

#main{
    background-color:whitesmoke;
    opacity: 0.9;
}

#logo{
    text-align: center;
    width: 100%;
    height: 130px;
    padding: 0;
    margin-top: 0;
    display: table-cell;
    vertical-align: middle;
    background-size:contain;
    background-repeat:no-repeat;
    background-image:url(./images/logo.webp);
    background-position: center;
}

#footer, h2{
    font-family: "Permanent Marker";
    color: yellowgreen;
    text-shadow: 1px 1px 2px black;
}

#footer{
    font-size: 0.8em;
}

.cc-selector input{
    margin:0;padding:0;
    -webkit-appearance:none;
       -moz-appearance:none;
            appearance:none;
}

.diceware_comics{background-image:url(./images/diceware_comics.webp);}
.diceware_en{background-image:url(./images/diceware_en.webp);}
.diceware_fr{background-image:url(./images/diceware_fr.webp);}
.diceware_games{background-image:url(./images/diceware_games.webp);}
.diceware_manga{background-image:url(./images/diceware_manga.webp);}

.cc-selector input:active +.dico-cc{opacity: .9;}
.cc-selector input:checked +.dico-cc{
    -webkit-filter: none;
       -moz-filter: none;
            filter: none;
}
.dico-cc{
    cursor:pointer;
    background-size:contain;
    background-repeat:no-repeat;
    background-position: center;
    display:inline-block;
    width:100%;
    height:70px;
    -webkit-transition: all 100ms ease-in;
       -moz-transition: all 100ms ease-in;
            transition: all 100ms ease-in;
    -webkit-filter: brightness(1.8) grayscale(1) opacity(.7);
       -moz-filter: brightness(1.8) grayscale(1) opacity(.7);
            filter: brightness(1.8) grayscale(1) opacity(.7);
}

.dico-cc:hover{
    -webkit-filter: brightness(1.2) grayscale(.5) opacity(.9);
       -moz-filter: brightness(1.2) grayscale(.5) opacity(.9);
            filter: brightness(1.2) grayscale(.5) opacity(.9);
}
#generatebtn {
    background-color: yellowgreen;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}
button {
    background-color: #B200FF;
    border: none;
    color: white;
    padding: 10px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}
#boxes{
    display: table;
    table-layout: fixed;
    width:100%;
    height:70px;
    padding-bottom: 20px;
}

.div_diceware {
    float: left;
    width: 20%;
    text-align: center;
    font-size: 12px;
    color: #303030;
    margin-left: auto;
    margin-right: auto;
}
#contact{
    color: whitesmoke;
}
#decomposed{
    color:#303030;
    font-size: 0.5em;
    margin-bottom: 20px;
}

.typewriter h1{
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid yellowgreen; /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em; /* Adjust as needed */
    animation: 
      typing 3.2s steps(13, end),
      blink-caret .8s step-end infinite;
  }
  
  /* The typing effect */
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  /* The typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: yellowgreen; }
  }

#about{
    position: absolute;
    top: 10px;
    right: 30px;
    z-index: 1;
    width: 40%;
}

#about_icon{
    width: 30px;
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1;
}

#about_description{
    width: 100%;
    height: auto;
    display: none;
    background-color: #303030;
    border-radius: 10px;
    opacity: 0.95;
    text-align: left;
    padding: 10px;
    color: white;
    text-shadow: none;
}

#wcb{
    margin: 3em;
}

#troubador_img{
    width: 100%;
}

  @media screen and (max-width: 600px) {
    #passphrase {
      font-size: 0.5em;
    }
    #about{
        width: 90%;
    }
    .typewriter h1{
        /*overflow: hidden; /* Ensures the content is not revealed until the animation */
        border-right: none;
        white-space: normal;
        margin: 0; /* Gives that scrolling effect as the typing happens */
        /*letter-spacing: .15em; /* Adjust as needed */
        /*animation: 
          typing 3.5s steps(40, end),
          blink-caret .75s step-end infinite;*/
      }
      @keyframes typing {
        /*from { width: 0 }
        to { width: 100% }*/
      }
      
      /* The typewriter cursor effect */
      @keyframes blink-caret {
        /*from, to { border-color: transparent }
        50% { border-color: yellowgreen; }*/
      }
}