/* ==============================================
   CONSOLIDATED STYLES FOR 6A KLASWEBSITE
   ============================================== */

/* ==============================================
   GLOBAL STYLES
   ============================================== */

/* Universal box-sizing */
* {
    box-sizing: border-box;
}

/* Body and heading styles */
body, h1, h2, h3, h4, h5 {
    font-family: "Poppins", sans-serif;
}

body {
    font-size: 16px;
}

/* ==============================================
   IMAGE STYLES
   ============================================== */

/* W3 half image styles */
.w3-half img {
    margin-bottom: -6px;
    margin-top: 16px;
    opacity: 0.8;
    cursor: pointer;
}

.w3-half img:hover {
    opacity: 1;
}

/* ==============================================
   TABLE STYLES
   ============================================== */

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border: 1px solid #f1f1f1;
    text-align: left;
    padding: 8px;
}

td:hover {
    background-color: #f1f1f1;
}

/* ==============================================
   SEARCH BOX STYLES
   ============================================== */

#myInput {
    background-image: url('https://klaswebsite.live/searchicon.png');
    background-position: 10px 12px;
    background-repeat: no-repeat;
    width: 100%;
    font-family: arial, sans-serif;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    border: 1px solid #f1f1f1;
    margin-bottom: 12px;
}

#myUL {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-family: arial, sans-serif;
}

#myUL li a {
    border: 1px solid #f1f1f1;
    margin-top: -1px;
    padding: 12px;
    text-decoration: none;
    font-family: arial, sans-serif;
    font-size: 18px;
    color: black;
    display: block;
}

#myUL li a:hover:not(.header) {
    background-color: #f1f1f1;
}

/* ==============================================
   BUTTON STYLES
   ============================================== */

/* Back to top button */
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: 2px solid #aac7d4;
    outline: none;
    background-color: #aac7d4;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

#myBtn:hover {
    background-color: white;
    color: #aac7d4;
}

/* Exercise buttons */
.oefenknop {
    display: block;
    width: 100%;
    border: 2px solid #c6cb8c;
    border-radius: 15px;
    background-color: #c6cb8c;
    color: white;
    padding: 14px 28px;
    font-size: 18px;
    cursor: pointer;
    text-align: left;
}

.oefenknop:hover {
    background-color: white;
    color: #c6cb8c;
}

/* General button styles */
.button {
    background-color: white;
    color: black;
    border: 0.5px solid black;
    border-radius: 4px;
    width: 70%;
    height: 30px;
    font-size: 20px;
}

.button:hover {
    background-color: #c6cb8c;
    color: black;
    border-radius: 4px;
    width: 70%;
    height: 30px;
    font-size: 20px;
}


/* Upload button styles */
.upload-button {
    display: block;
    width: 100%;
    border: 1px solid #f1f1f1;
    background-color: white;
    color: black;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    font-family: arial, sans-serif;
    margin-bottom: -1px;
}

.upload-button:hover {
    background-color: #f1f1f1;
    color: black;
}


/* ==============================================
   MODAL STYLES
   ============================================== */

/* Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 5; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s;
}

/* Modal Content */
.modal-content {
    position: fixed;
    z-index: 4; /* Sit on top */
    left: 0;
    bottom: 0;
    background-color: #fefefe;
    width: 100%;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
}

/* Modal Header */
.modal-header {
    padding: 15px 20px;
    background-color: #aac7d4;
    color: white;
    font-family: arial, sans-serif;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: normal;
}

/* Modal Body */
.modal-body {
    padding: 20px;
    font-family: arial, sans-serif;
}

/* Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    margin-top: -5px;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}

/* ==============================================
   LAYOUT STYLES
   ============================================== */

/* Center layout for upload zone */
.center {
    font-family: arial, sans-serif;
    text-align: center;
    background-color: white;
    margin: 0;
    position: absolute;
    top: 25%;
    left: 50%;
    -ms-transform: translate(-25%, -50%);
    transform: translate(-50%, -50%);
    width: 75%;
    border-radius: 25px;
}

/* ==============================================
   LINK STYLES
   ============================================== */

a:link {
    color: black;
}

a:visited {
    color: black;
}

a:hover {
    color: #c6cb8c;
}

a:link:active {
    color: black;
}

/* ==============================================
   ANIMATIONS
   ============================================== */

/* Add fade animation to modals */
@-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

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

/* Add slide animation to modal content */
@-webkit-keyframes slideIn {
    from {bottom: -300px; opacity: 0;}
    to {bottom: 0; opacity: 1;}
}

@keyframes slideIn {
    from {bottom: -300px; opacity: 0;}
    to {bottom: 0; opacity: 1;}
}