/*
External CSS for website: 
Created by John Denbutter
*/

/*
General style
*/
/* Body */
Body{
    background-color: rgb(222,225,225);
    color: black;
    margin: 0;
    padding: 0;
    font-family: Inter;
    min-width: 900px;
}

Body.darkMode{
    background-color: rgb(22,22,29);
    color: rgb(240,240,240); /*almost white*/
    transition: background-color 0.7s, color 0.4s;
}

Body.lightMode{
    background-color: rgb(222,225,225);
    color: black;
    transition: background-color 0.7s, color 0.4s;
}

/*
Classes
*/

/* Containers */
.headDiv{
    min-height: 356px;
}

.centerBlock{
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    padding: 150px;
    padding-top: 100px;
    padding-bottom: 100px;
    line-height: 1.6;
    overflow: auto;
}

.displayBlock{
    background-color: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 25px;
    transition: background-color 0.7s, color 0.4s;
    min-height: 400px;
    min-width: 500px;
    overflow: auto;
}

.thinDisplayBlock{
    background-color: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 25px;
    transition: background-color 0.7s, color 0.4s;
    min-height: 350px;
    min-width: 200px;
    width: 48%;
    box-sizing: border-box;
}

.displayBlockDarkMode{
    background-color: rgba(180, 180, 180, 0.1);
    transition: background-color 0.7s, color 0.4s;
}

.breakBlock{
    width: 100%;
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: rgba(100,100,100,0.05);
    line-height: 1.6;
}

.breakblock:target{
    scroll-margin-top: 20px;
}

.twoSectionContainer:after{
    content: "";
    display: table;
    clear: both;
}

.leftBox{
    box-sizing: border-box;
    float: left;
    max-width: 45%;
    padding: 20px;
    padding-left: 10%;
    padding-right: 40px;
}

.rightBox{
    box-sizing: border-box;
    float: right;
    width: 55%;
    padding: 20px;
    padding-right: 20%;
}

.picture{
    max-width: 100%;
    max-height: 600px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.portraitTextBox{
    max-width: 60%;
}

.picturePortrait{
    width: 30%;
    margin: 5px;
    margin-right: 2%;
    margin-top: 2%;
    border-radius: 15px;
    float: right;
    box-shadow: 1px 4px 8px 0 rgba(0, 0, 0, 0.21), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/*
Text Format
*/
.Name{
    text-align: center;
    font-size: 42pt;
    font-family: Trebuchet MS;
    padding-top: 75px;
    padding-bottom: 75px;
}

h1{
    margin-top: 0;
    margin-bottom: 0;
    text-shadow: 2px 4px 8px rgba(100, 100, 100, 0.6);
}

h2{
    margin-top: 0;
    font-family: Rubik;
    font-size: 28pt;
    color:rgb(150, 80, 160);
}

.breakText{
    font-size: 16pt;
}

/*
Element customization
*/

/* Navigation bar & dropdown menu */
#navigationBar{
    background-color: rgb(125, 78, 138);
    color: rgb(21, 21, 21);
    overflow: hidden;
    top: 0;
    width: 80%;
    min-width: 500px;
    padding-left: 60px;
    transform: skew(-20deg);
    translate: -20px;
    transition: all .3s ease-in;
}

#navigationBar a{
    color: rgb(242,242,242);
    float: left;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    font-family: Rubik;
    font-size: 16pt;
    font-weight: bold;

    /* add angle to navbar */
    overflow: hidden;
    transform: skew(20deg); /* undo parent's transform */
}

.dropdownMenu{
    float: right;
    overflow: hidden;
    direction: rtl;
    border-radius: 10px 10px 0px 0px;
    margin: 10px;
}

.dropdownMenu .menuButton{
    color: rgb(21, 21, 21);
    padding: 22px;
    border: none;
    cursor: pointer;
    margin: 0;
}

.menuButton{
    background-image: url(gear.png);
    background-color: rgba(222,225,225, 0.1);
    background-size: 44px;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    width: 55px;
}

.dropdownMenuPage{
    display: none;
    min-height: 200px;
    min-width: 160px;
    background-color: rgb(170, 100, 190);
    position: absolute;
    padding-right: 10px;
    border-radius: 10px 0px 10px 10px;
}

/* Active navigation bar & dropdown menu components */
.dropdownMenu:hover .dropdownMenuPage{
    display: block;
}

#navigationBar a:hover, .dropdownMenu:hover .menuButton{
    background-color: rgb(170, 100, 190);
    animation: spin 1s linear infinite;
}

.hideContent{ /* div that hides content with button */
    padding-top: 10px;
    transition: padding-top 0.7s;
}

/* Buttons & menu items */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {/*hide original switch*/
    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%;
}

/* Rounded contact buttons */
.contactButton{
    height: 100px;
    width: 100px;
    flex-basis: auto;
    border-radius: 20px;
    margin: 5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
    cursor: pointer;
}