/*
h1 - 48px
h2 - 36px
h3 - 28px
all other text - 21px

colors: 
   #588C94 
   #1D3C41
*/

/* Global styles  */

body {
    margin: 0;
    /* this font size will effect all elements (other than h1 -> h6) on the page */
    font-size: 30px;
    width: 90%;
}

/* ========
Layout 
======== */

/*header {
    background-color: #588C94;
    color: white;
    padding: 25% 0;
    text-align: center;
}*/

main {
  margin: 100px;
  padding: 100px;
}

p {
  /*padding: 50px;*/
}

span {
  padding: 2px;
}

.container {
    width: 25%;
    max-width: 1000px;
    margin: 0 auto;
}

.container-nav {
    /*display: flex;*/
    /*justify-content: space-between;*/
    float: right;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

/*nav ul li {
  padding: 10px;
}*/


.columns {
    display: flex;
    flex-wrap: wrap;
    position: fixed;
}

.column {
    margin: 0 10px;
}

#es {
  color: green;
}

/*#fr {
  height: 300px;
}*/

textarea {
  width: 100%;
  height: 100px;
  font-size: 40px;
  border: none;
  resize: none;
}

#answer {
  width: 90%;
  /*height: 40px;
  /*font-size: 40px;*/
  /*font-weight: bold;*/
  font-family: serif;
  /*height: 400px;*/
  color: blue;
  /*position: fixed;*/
}

#grade {
  width: 5%;
  margin: 10px;
  padding: 10px;
  position: bottom;
}


/* Styling for notRandom / random toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}





/*https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_tooltip*/
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


#image {
/* the image you want to 'watermark' */
height: 200px; /* or whatever, equal to the image you want 'watermarked' */
width: 200px; /* as above */
background-image: url(path/to/image/to/be/watermarked.png);
background-position: 0 0;
background-repeat: no-repeat;
position: absolute;
visibility: hidden;
}

#image img {
/* the actual 'watermark' */
position: absolute;
top: 0; /* or whatever */
left: 0; /* or whatever, position according to taste */
opacity: 0.10; /* Firefox, Chrome, Safari, Opera, IE >= 9 (preview) */
filter:alpha(opacity=50); /* for <= IE 8 */
}






/* <POPUPS> TAKEN FROM https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_popup */

/* Popup container - can be anything you want */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The actual popup */
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: 50px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class - hide and show the popup */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}


/* </POPUPS> TAKEN FROM https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_popup */
