/*****************************************************************************\
  #GLOBAL parameters
\*****************************************************************************/

* {
  box-sizing: border-box;
  font-family: -apple-system, 
    BlinkMacSystemFont, "segoe ui", roboto, oxygen, 
    ubuntu, cantarell, "fira sans", "droid sans", 
    "helvetica neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #ffffff; /* WebKit/Blink Browsers */
}

::-moz-selection {
  background: #ffffff; /* Gecko Browsers */
}

/* Color definition */
:root {
  --nav_bg:  #333;
  --hover_color: green;/*#FA0806*/
}


  /***************************************************************************\
    #Scrollbar settings - GLOBAL
  \***************************************************************************/

  /* width */
  ::-webkit-scrollbar {
    width: 20px;
  }
  ::-webkit-scrollbar-track {
    background: #BBB; 
  }
  /* Track */
  div ::-webkit-scrollbar-track {
    background: #333; 
    border-radius:0 10px 10px 0;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius:10px;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background-color: green; 
    transition: background-color 0.2s;
  }
  
  /***************************************************************************\
    #Type settings - GLOBAL
  \***************************************************************************/
  
  body {
    background-color: #FFFFFF;
    margin: 0;
    font-weight: bold;
    overflow-y: scroll; /* Show vertical scrollbar */
  }

  input[type="password"], 
  input[type="text"], 
  input[type="email"] {
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
    outline:none;
  }
  
  td input[type="password"], 
  td input[type="text"], 
  td input[type="email"] {
    margin: 2px 0;
    width:100%;
  }
  
  input::selection, textarea::selection { 
    background: greenyellow; 
  }
  
  td select {
    height: 50px;
    border: 1px solid #dee0e4;
    padding: 0 15px;
    margin: 2px 0;
    outline:none;
    width: 100%;
  }

  input[type="submit"] {
    display:block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: var(--nav_bg);
    border: 0;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.2s;
    font-weight:bold;
  }

  input[type="submit"]:hover{
    background-color: var(--hover_color);
    transition: background-color 0.2s;
  }

  button{
    font-weight:bold;
  }
  
  a:link, a:visited, a:hover, a:active { 
    text-decoration: none; 
  }
  
  /***************************************************************************\
    #Class settings - GLOBAL
  \***************************************************************************/

  .content {
    width: 90%;
    max-width: 1200px;
    min-width: 800px;
    margin: 0 auto;
  }

  .content h2 {
    margin: 0;
    padding: 25px 0;
    font-size: 22px;
    border-bottom: 1px solid #e0e0e3;
    color: #4a536e;
  }

  .content i{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size:22px;
    width: 50px;
    height: 50px;
    margin: 5px 0;
    background-color: var(--nav_bg);
    color: #ffffff;
  }

  .content_input {
    width: 100%;
    height: 50px;
    border: 1px solid #dee0e4;
    margin: auto 0;
    padding: 0 15px;
  }

  .content > p, .content > div {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    margin: 25px 0;
    padding: 25px;
    background-color: #fff;
  }

  .content > p table td, .content > div table td {
    padding: 5px;
  }

  .content > p table td:first-child, .content > div table td:first-child {
    color: #4a536e;
    padding-right: 15px;
  }

  .content > div p {
    padding: 5px;
    margin: 0 0 10px 0;
  }
  
  #billardpad_container {
	padding:auto;
	margin:25px auto;
  }
  
  #billardpad_container div {
	margin:auto;
	padding:0;
  }
  
  .slideswitch {
    -webkit-appearance: none;
    width: 40px;
    border: 2px solid #121234; 
    border-radius:20px;
    height: 20px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
  }

  .slideswitch:hover {
    opacity: 1;
    -webkit-transition: .2s;
    transition: opacity .2s;
  }

  .slideswitch::-webkit-slider-thumb {
   -webkit-appearance: none;
    appearance: none;  
    border-radius:20px;
    width: 20px;
    height: 20px;
    background: #121234;
    cursor: pointer;
  }

  .slideswitch::-moz-range-thumb {
    border-radius:20px;
    width: 20px;
    height: 20px;
    background: #121234;
    cursor: pointer;
  }
  
  .slideswitch_container p{
    font-size: 12px;
  }
  
  .slideswitch_container{
    text-align: center; 
	display: block; 
	width: 12.5%;
	margin: 5px;
	padding: auto;
  }
  
  .slideswitch_thumb {
	 max-width:100px; 
	 width:100%; 
	 border:2px solid  white;
	 border-radius:20px; 
  }
  
    /*************************************************************************\
      #Checkbox custom - GLOBAL
    \*************************************************************************/

    .checkbox {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 50px;
      height: 50px;
      background-color: var(--hover_color);
      color: #ffffff;
    }
    
    /* Hide the browser's default checkbox */
    .checkbox input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      height: 0;
      width: 0;
    }

    /* Create a custom checkbox */
    .checkmark {
      border-radius: 6px;
      position: relative;
      top: 0;
      left: 0;
      height: 25px;
      width: 25px;
      background-color: #eee;
    }

    /* On mouse-over, add a grey background color */
    .checkbox:hover input ~ .checkmark {
      background-color: var(--nav_bg);
    }

    /* When the checkbox is checked, add a blue background */
    .checkbox input:checked ~ .checkmark {
      background-color: var(--nav_bg);
    }

    /* Create the checkmark/indicator (hidden when not checked) */
    .checkmark:after {
      content: "";
      position: absolute;
      display: none;
    }

    /* Show the checkmark when checked */
    .checkbox input:checked ~ .checkmark:after {
      display: block;
    }

    /* Style the checkmark/indicator */
    .checkbox .checkmark:after {
      left: 9px;
      top: 5px;
      width: 5px;
      height: 10px;
      border: solid white;
      border-width: 0 3px 3px 0;
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg);
    }

  /***************************************************************************\
    #Navigation bar - GLOBAL
  \***************************************************************************/

  .navbar {
    overflow: hidden;
    background-color: var(--nav_bg);
    font-family: Arial, Helvetica, sans-serif;
    max-height:57px;
  }
  
  .navbar a {
    float: right;
    text-align: center;
    padding: 18px 16px;
    text-decoration: none;
    font-size: 16px;
    color: white;
  }

  .navbar h1 {
    float: left;
    font-variant: small-caps; 
    text-align: center;
    font-size:20px;
    text-decoration: none;
    color: white;
    margin:0;
  }

  .navbar .fas {
    padding: 2px 8px 0 4px;
  }

  .navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus {
    background-color: var(--hover_color);
    transition: background-color 0.2s;
  }
  
  .footer_content a, .footer_content p{
    float: right; 
    font-size: 16px;
    padding:16px 16px;
    color:black;
  }

  /***************************************************************************\
    #Icons from fontawesome.com - GLOBAL
  \***************************************************************************/

  /*General Icon Styling (50x50 squares in green)*/
  .fas.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--hover_color);
    color: #ffffff;
  }

  .fas.icon.button{
    cursor: pointer;
    font-size:22px;
    margin: 5px;
    background-color: var(--nav_bg);
  }

  .fas.button:hover{
    background-color: var(--hover_color);
    transition: background-color 0.2s;
  }

  /*Inline icons are attached to a text input or similar*/
  .fas.inline{
    margin: 5px 0;
  }

  /*Inline buttons are attached to a text input 
  or similar and change color on hover*/
  .fas.button-inline{
    cursor: pointer;
    font-size:22px;
    margin: 5px 0;
    background-color: var(--hover_color);
  }

  .fas.button-inline:hover{
    background-color: var(--nav_bg);
    transition: background-color 0.2s;
  }


/*****************************************************************************\
  #Site-specific settings
\*****************************************************************************/

  /***************************************************************************\
    #Dropdown Menu - INDEX.PHP
  \***************************************************************************/
      
  .dropdown {
    float: right;
    overflow: hidden;
  }

  .dropdown .dropbtn {
    cursor: pointer;
    border: none;
    outline: none;
    padding: 18px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0px;
    text-decoration: none;
    font-size: 16px;
    color: white;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    right:0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }

  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
          
  .dropdown-content a:hover {
    background-color: #ddd;
  }

  .dropdown-content input[type="password"], 
  .dropdown-content input[type="text"], 
  .dropdown-content input[type="email"] {
    width: 310px;
  }
  /*****************************************************************************\
    #Login and Register Dropdown Menu - INDEX.PHP
  \*****************************************************************************/

  .login, .register {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  }

  .login h1, .register h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
  }

  .login .links, .register .links {
    display: flex;
    padding: 0 15px;
  }

  .login .links a, .register .links a {
    color: #adb2ba;
    text-decoration: none;
    display: inline-flex;
    padding: 0 10px 10px 10px;
  }

  .login .links a:hover, .register .links a:hover {
    color: #9da3ac;
  }

  .login .links a.active, .register .links a.active {
    border-bottom: 3px solid var(--hover_color);
    color: var(--hover_color);
  }

  .login form, .register form, .add_drill form{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
  }

  /*****************************************************************************\
    #Drill Form - HOME.PHP
  \*****************************************************************************/


  .form_left {
    margin:10px 0;
    width:40%;
    float: left; 
  }

  .form_right {
    margin:10px 0;
    width:60%;
  }

  .add_drill .form_item{
    display:flex;
  }

  .add_drill form textarea{
    border: 1px solid #dee0e4;
    padding: 5px 10px;
    width: 100%; 
    margin:5px 0 0 0;
    /*max-height: 50%;*/
    resize: none;
    outline:none;
  }

  .add_drill form input[type="text"] {
    width: calc(100% - 65px);
    margin: 5px 0;
  }

  /*****************************************************************************\
    # RESETPASSWORD.PHP
  \*****************************************************************************/

  .new_password label{
    display:flex;
    width:100%;
  }

  /*****************************************************************************\
    #Dynamic Drill content - DRILLS.PHP
  \*****************************************************************************/

  .drill_row{
    display:flex;
    min-width: 500px;
    width:100%;
  }

  .drill_tile{
    display:flex;
    width:100%;
    margin:0px;;
  }

  .drill_row div, .drill_tile div{
    margin: 0 10px;
  }

  .drill_row h3, .drill_tile h3{
    margin: 0 0 10px 0;
    padding: 0;
    color: #4a536e;
  }


  .filter_bar select{
    display:flex;
    height:50px;
    width:50px;
    margin: auto 5px;
    text-align:center;
    color:white;
    background-color: var(--nav_bg);
    font-weight:bold;
    border:none;
  }

  .sort_bar select{
    display:flex;
    height:50px;
    width:100%;
    margin: 10px 10px 0 0;
    text-align:left;
    border: 1px solid #dee0e4;
    outline:none;
  }

  .filter_bar label{
    display: flex;
    justify-content: center;
    align-items: center;
    height:50px;
    margin: auto -5px auto 5px;
    padding: 0 10px;
    text-align:center;
    color:white;
    background-color: var(--nav_bg);
    font-weight:bold;
  }

  #drills_per_page:hover{
    background-color: var(--nav_bg);
  }

  #trash:hover{
    background-color: red ;
    transition: background-color 0.2s;
  }

  .gallery_container{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(auto-fill);
    grid-column-gap: 25px;
    grid-row-gap: 25px;
  }

  .gallery_container >div{
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    padding: 25px;
    background-color: #fff;
  }

  .tile_thumbnail{
    float:left; 
    margin:0;  
    width:calc(100% - 50px);
  }

  .thumbnail{
     display: block;
     width:100%;
     max-width: 100%;
     height: auto;
     width: auto\9; /* ie8 */
}
  }
  
  /*****************************************************************************\
    #Update/Delete Profile - PROFILE.PHP
  \*****************************************************************************/

  
  .update_profile input[type="text"]{
    width:100%;
  }

  #delete_account_button{
    background:darkred;
  }

  #delete_account_button:hover{
    background:red;
  }

  #delete_dialog td{
    border-radius:10px;
    padding:5px 30px 30px 30px;
    border: 1px solid #dee0e4;
  }

/*****************************************************************************\
  #Switches - GLOBAL
\*****************************************************************************/

.show{
  display: block;
}

.show-flex{
  display:flex;
}

.hidden-flex{
  min-height:0px;
  display:none;
}