@import "./CSS Reset.css";
@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Tangerine:wght@400;700&display=swap');

/* Bob */
@-webkit-keyframes hvr-bob {
  0% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  50% {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
  }
  100% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}
@keyframes hvr-bob {
  0% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  50% {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
  }
  100% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}
@-webkit-keyframes hvr-bob-float {
  100% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}
@keyframes hvr-bob-float {
  100% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}

/* For Smooth Scrolling */

html {
    scroll-behavior: smooth;
}

/* Underline from Center Hover Effect from Hover.CSS*/

.border-animation a {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  overflow: hidden;
}
.border-animation a::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 51%;
  right: 51%;
  bottom: 0;
  background: #0F4C75;
  height: 2px;
  -webkit-transition-property: left, right;
  transition-property: left, right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.border-animation a:hover::before {
  left: 0;
  right: 0;
}

* {
    transition: color 200ms linear, background-color 200ms linear;
}



:root {
    font-size: 110%;
    --main-color: #1B262C;
    --sec-color: #3282B8;
    --ter-color: #0F4C75;
    --extra-color: #BBE1FA;
    --bg-color: aliceblue;
    --white-color: white;
    --black-color: black;
    --green-color: #79D7BE;
    --red-color: maroon;
    --yellow-color:#FDFFB8;
}

:root.dark {
    --main-color: aliceblue; 
    --sec-color: #3282B8;
    --ter-color: #BBE1FA;
    --extra-color: #0F4C75;
    --bg-color: #1B262C;
    --white-color: black;
    --black-color: white;
    --green-color: #053B50;
    --red-color: #d40000;
    --yellow-color:#332D56;
}

ul, ol {
    padding-left: 2rem;
}

a {
    color: var(--main-color)
}

body {
    background-color: var(--bg-color);
    color: var(--main-color);
    /* text-align: center; */
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 2;
}



header {
    padding: 1.25rem;
    text-align: center;
}

header h1 {
    color: var(--sec-color);
    font-weight: 700;
    margin-top: 1.25rem;
    font-size: 4rem;
    font-family: Cambria;
    letter-spacing: 0.5rem;
}

header h3 {
    color: var(--sec-color);
    font-weight: 400;
    font-size: 3rem;
    font-family: "Tangerine";
}

nav {
    position: fixed;
    right: 2%;
    top: 3%;
    padding: 0.5rem;
    background-color: var(--white-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 5px dimgray;
    opacity: 0.8;
    z-index: 99;
}

nav a{
    text-decoration: none;
    color: var(--ter-color);
    letter-spacing: 0.05rem;
}

#darkmode {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.2rem;
}

/* The switch - the box around the slider */
#switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

/* Hide default HTML checkbox */
#switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.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: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--white-color);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--ter-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--ter-color);
}

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

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

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

blockquote {
    margin: 2rem auto;
    margin-top: 2rem;
    padding: 0.8rem 0.2rem;
    background-color: var(--white-color);
    border-left: 20px solid var(--sec-color);
    border-radius: 10px;
    font-style: italic;
    width: 90%;
    box-shadow: 0 0 30px #0f4c7546;
    font-size: 1.1rem;
}

section {
    margin: 4rem 1rem;
}

.card {
    padding: 1.2rem;
    border-radius: 10px;
    margin: 2.4rem 0;
}

h2 {
    color: var(--sec-color);
    font-size: 1.8rem;
    display: inline-block;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    padding: 0 1rem;
    margin-bottom: 1rem;
    border: 3px solid var(--sec-color);
    border-right: none;
    border-bottom: none;
    /* box-shadow: -3px -3px 5px 1px dodgerblue; */
    border-radius: 20px;
    transition: all 100ms linear;
}

h2:hover {
    /* box-shadow: 3px 3px 5px 1px dodgerblue; */
    border-radius: 10px;
}

#definition-section div h4 {
    color: var(--ter-color);
    transition: letter-spacing 300ms linear;
}

#definition-section div:hover h4 {
    letter-spacing: 0.1rem;
}

#definition-section div {
    background-color: var(--extra-color);
    /* border: 2px solid #14161aa2; */
}

.blue {
    color: blue;
}

.green {
    color: green;
}

.yellow {
    color: rgb(179, 179, 0);
}

.red {
    color: var(--red-color);
}

ul {
    padding: 0;
    list-style-position:inside;
    list-style-type: disc;
}

#definition-section ul {
    list-style-type: "-  ";
}

#grading {
    display: flex;
}


#grading img {
    width: 60%;
    object-fit: contain;
}

#grading div {
    border: none;
    margin: 0;
    padding: 0;
}

#contents {
    margin: 2rem 0;
}

#contents ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

#contents ul li {
    list-style-type:none;
}

#contents ul li a{
    color: var(--red-color);
    text-decoration: none;
}

#contents p:first-of-type {
    padding: 10px; 
    border-radius: 5px;
    border-left: 10px solid var(--sec-color);
    background-color: var(--extra-color);
    display: inline-block;
}

#star {
    display:inline;
}

.special {
    list-style-image: url(../media/star.png);
}

article h4{
    color:var(--black-color);
    transition: all 300ms linear;
}

.essay{
    margin-left: 1.5rem;
    list-style-type:upper-roman;
}

.odd {
    background-color: var(--green-color);
}

.even {
    background-color: var(--yellow-color);
}

#tips-section article:nth-child(even):hover h4 {
    color:var(--red-color);
    letter-spacing: 0.1rem;
}

#tips-section article:nth-child(odd):hover h4 {
    color: var(--ter-color);
    letter-spacing: 0.1rem;
}

#truth li {
    list-style-type: circle;
}

#truth h3{
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    letter-spacing: 0.1rem;
    transition: all 300ms linear;
}

#truth div:hover h3 {
    color: olivedrab;
    letter-spacing: 0.15rem;
}

#samples {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

#samples a {
    text-decoration: none;
    color: var(--main-color);
    font-size: 1.2rem;
    /* box-shadow: 0 0 5px 1px black; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 3rem;
    width: 20%;
    height: 2.5rem;
    border-radius: 25px;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    background: var(--extra-color);
    -webkit-transition-property: all;
    transition-property: all;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
}

#samples a::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--main-color);
    border-radius: 100%;
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transition-property: all;
    transition-property: all;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

#samples a:hover {
    color: var(--bg-color);
    /* box-shadow: 0 0 5px 1px midnightblue; */
    -webkit-animation-name: hvr-bob-float, hvr-bob;
    animation-name: hvr-bob-float, hvr-bob;
    -webkit-animation-duration: .4s, 2s;
    animation-duration: .4s, 2s;
    -webkit-animation-delay: 0s, .4s;
    animation-delay: 0s, .4s;
    -webkit-animation-timing-function: ease-out, ease-in-out;
    animation-timing-function: ease-out, ease-in-out;
    -webkit-animation-iteration-count: 1, infinite;
    animation-iteration-count: 1, infinite;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-direction: normal, alternate;
    animation-direction: normal, alternate;
}

#samples a:hover::before {
    -webkit-transform: scale(2);
    transform: scale(2);
}

#samples a:active {
    color: var(--red-color);
}

#services-div {
    background-color: var(--main-color);
    border-radius: 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    margin-top: 1rem;
}

.service {
    background-color: var(--bg-color);
    width: 30%;
    min-width: 250px;
    padding: 1.2rem;
    gap: 0.8rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 200ms ease-in-out !important;
}

.service:hover {
    transform: scale(1.05);
    background-color: var(--ter-color);
    color: var(--white-color);
    box-shadow: -5px 5px 1px 0 var(--sec-color);
    border-radius: 0;
}

.service i {
    font-size: 7rem;
}

.service h3 {
    font-family:"Sansation", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 1.8rem;
}

.form-link {
    text-decoration: none;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    padding: 0.5rem;
    margin: 0.5rem;
    /* Sweep To Right */
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
    -webkit-transition-property: all;
    transition-property: all;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.service:hover .form-link {
    border: 2px solid var(--bg-color);
    color: var(--bg-color);
}

.form-link:hover {
  border-radius: 20px;
}

.form-link::before {
    /* Sweep To Right */
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--main-color);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 0 50%;
  transform-origin: 0 50%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

.form-link:hover::before {
    /* Sweep To Right */
  border-radius: 20px;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

#practice-date {
    color: var(--main-color);
    font-style: italic;
    transition: all 300ms linear;
}

.service:hover #practice-date {
    color: gray;
}

footer {
    border-top: 2px solid var(--main-color);
    padding: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-around;
}

footer div {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--main-color);
}

#logo {
    width: 20%;
    min-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer h3 {
    font-family: "Sansation";
}

@media screen and (min-width: 1440px) {
    :root {
        font-size: 110%;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    #samples a {
        width: 27%;
        margin: 1rem 2rem;
    }

    .service {
        width: 45%;
    }

    #grading {
        flex-direction: column;
        align-items: center;
    }

    footer div {
        padding-left: 0.5rem;
        margin-left: 0.5rem;
    }
    #logo {
        width: 40%;
    }
}

@media (max-width: 767px) and (min-width: 616px) {
    :root {
        font-size: 95%;
    }

    #grading {
        flex-direction: column;
        align-items: center;
    }

    #samples a {
        width: 27%;
    }

    #samples {
        justify-content: space-evenly;
    }

    .service {
        width: 45%;
    }
}

@media (max-width: 615px) and (min-width: 426px) {
    :root {
        font-size: 95%;
    }

    #grading {
        flex-direction: column;
        align-items: center;
    }

    nav {
        position: fixed;
        top: 2%;
        left: 8%;
        right: 8%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        gap: 1rem;
    }

    nav h4 {
        display: none;
    }

    #samples a {
        width: 40%;
        margin: 1rem 0.5rem;
    }

    #samples {
        justify-content: space-evenly;
    }

    .service {
        width: 75%;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    footer div {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 2rem;
    }
}

@media (max-width: 425px) {
    :root {
        font-size: 85%;
    }

    header h1 {
        margin-top: 2rem;
    }

    h2 {
        border: 3px solid var(--sec-color);
        border-bottom: none;
    }

    nav {
        position: fixed;
        top: 2%;
        left: 5%;
        right: 5%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        gap: 0.5rem;
    }

    nav h4 {
        display: none;
    }
    
    /* The switch - the box around the slider */
    #switch {
        width: 30px;
        height: 18px;
    }

    /* The slider */

    .slider:before {
        height: 12px;
        width: 12px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .slider:before {
        -webkit-transform: translateX(12px);
        -ms-transform: translateX(12px);
        transform: translateX(12px);
    }

    section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #grading {
        flex-direction: column;
        align-items: center;
    }
    
    #samples a {
        width: 50%;
        margin: 1rem 0.5rem;
    }

    .service {
        width: 90%;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    footer div {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 2rem;
    }

}