/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
   *
   * Raisin Black #262525
   * Off White #F2F2F2
   * Primary Domain Blue #3C4473
   * Secondary Domain Blue #8187A6
   * Bright Red #D94436
   * PDB Crystal Green #99BF7E
   * Muted Pink #B2908F
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+SC:wght@300;400;500;600;700&family=Nanum+Myeongjo:wght@400;700&display=swap');

/* variables */
:root {
  /* Colors */
  --primary-color: #3C4473;
  --secondary-color: #D95448;
  --contrast-color: #E1A1A1;
  --text-color-dark: #262525;
  --text-color-light: #F2F2F2;
  --bg-primary: #F2F2F2;
  --bg-secondary: #8187A6;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color-dark);
}

/* Main styling */
body {
  font-family: 'Georgia', serif;
  margin: 0;
  padding: 0;
  color: #000;
}
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 50px;
}
h1, h2, h3 {
  margin-bottom: 5px;
}
h1 {
  font-size: 28px;
  border-bottom: 2px solid #000; /* Resume settings */
  padding-bottom: 5px;
}
h2 {
  font-size: 20px;
  margin-top: 30px;
}
.section {
  margin-bottom: 20px;
}
.job-title {
  font-weight: bold;
  font-size: 16px;
}
.company {
  font-style: italic;
  font-size: 15px;
}
.date-location {
  font-size: 13px;
  color: #444;
}
ul {
  padding-left: 20px;
}
li {
  margin-bottom: 6px;
}
.contact {
  text-align: right;
  font-size: 14px;
}

/* PRINT STYLES */
@media print {
  body {
    background: white;
  }
  .container {
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
  }
  .contact {
    text-align: left;
    font-size: 12px;
  }
  ul {
    margin: 0;
  }
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.profile-image {
  width: 150px;
  border-radius: 50%;
}

/* Header texts */
.header-container .content-text {
  font-family: 'Nanum Myeongi', serif;
}
.header-container {
  padding: 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.header-container h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.content-text {
  margin: 20px 0;
}

.content-text p {
  font-size: 1.1em;
  line-height: 1.6;
}

.content-text img {
  width: 100%;
  height: auto;
  margin-top: 15px;
  border-radius: 8px;
}

/* Mobile-first responsive styles */
@media (max-width: 600px) {
  .header-container {
    padding: 10px;
  }

  .header-container h2 {
    font-size: 1.5em;
  }

  .content-text p {
    font-size: 1em;
  }

  .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
  }
}


/* Navbar */
.navbar {
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--contrast-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  z-index: 20;
  height: 75px;
  width: 100%;
}
.navbar .social {
  margin: 0em 1.5rem .3em;
}
.navbar .social img {
  width: 15px;
  height: 15px;
}
.navbar .social a {
  margin: 0 0.5rem;
}
.navbar a:hover {
  opacity: 0.6;
}
.navbar .name-logo{
  position: flex;
  margin: 0 1.5rem 3em;
  font-size: 2rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color-light);
  width: 30%;
}
@media (min-width: 769px) { 
.navbar .menu__box {
  display: flex;
  align-items: center;
  width: 100%;
}
.navbar .menu-container {
  display: flex;
  justify-content: flex-end;
  width: 70%;
}
.navbar .menu__item {
  margin: 0 1rem;
  font-size: 1.2rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color-light);
}
.navbar #menu__toggle {
  display: None;
}
    }

/* Responsiveness */

@media (max-width: 768px) {
.navbar #menu__toggle {
  opacity: 0;
}
#menu__toggle:checked + .menu__btn > span {
  transform: rotate(45deg);
}
#menu__toggle:checked + .menu__btn > span::before {
  top: 0;
  transform: rotate(0deg);
}
#menu__toggle:checked + .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
  left: 0 !important;
}
.menu__btn {
  position: fixed;
  top: 45px;
  right: 10px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  z-index: 1;
}
.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #FFF;
  transition-duration: .25s;
}
.menu__btn > span::before {
  content: '';
  top: -8px;
}
.menu__btn > span::after {
  content: '';
  top: 8px;
}
.menu__box {
  display: block;
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 100px 0;
  list-style: none;
  background-color: var(--primary-color);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
  transition-duration: .25s;
  opacity: 80%;
}
.menu__item {
  display: block;
  padding: 25px 25px;
  color: var(--text-color-light);
  font-family: 'Cormorant SC', serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition-duration: .25s;
}
.menu__item:hover {
  background-color: var(--bg-secondary);
}
.navbar .social {
  margin: .3em 1.5rem .3em;
  align-items: center;
}
.navbar .social img {
  width: 30px;
  height: 30px;
}

/* Resume */


/* Contact */
#contact .container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  column-count: 2;
  column-width: 768px;
  column-gap: 20px;
  margin: 0em 1rem 0em;
  font-family: 'Nanum Myeongi', serif;
}
#contact .label{
  font-family: 'Nanum Myeongi', serif;
}
#contact .card{
  margin: 0 0 1em 0;
  border: 0px;
  float: left;
  justify-content: center;
  width: 100%;
  padding: 0 10px;
  font-family: 'Nanum Myeongi', serif;
}
#contact .submission-container{
  position: relative;
  width: auto;
  height: 40%;
  margin: 0 auto;
  padding: 10px;
  font-size: 2rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color-dark);
}
#contact .textarea {
  width: 100%;        /* or try 600px, 80%, etc. */
  max-width: 768px;    /* ensures it doesn't overflow */
  padding: 10px;
  font-size: 15px;
}
#contact .datetime{
  display: flex;
  flex-direction: row;
  column-count: 2;
  column-gap: 0.9rem
}

@media (max-width: 768px) {
#contact .container{
  align-items: center;
  flex-direction: row;
}
#contact .card{
  border: 0px;
  width: 100%;
  float: none;
}
    }

/* For Contact Form */
input[type=text],
input[type=email],
input[type=date],
input[type=time],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  font-family: 'Nanum Myeongi', serif;
}

input[type=text],
select,
textarea {
  min-height: 40px;
  max-height: 200px;
  resize: vertical;
}

input[type=text],
input[type=email],
input[type=date],
input[type=time],
select,
textarea:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

input[type=submit] {
  background: var(--primary-color);
  color: var(--text-color-light);
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  border: var(--text-color-dark);
}

input[type=submit]:hover {
  background-color: var(--bg-secondary);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* Footer */
#footer {
  width:100%;
  background: var(--bg-primary);
  box-shadow: 0 50vh 0 50vh var(--bg-primary);
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  text-align: center;
}

#footer a {
  font-size: 1rem;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}
#footer p {
  font-size: 0.8rem;
  font-family: 'Nanum Myeongi', serif;
  color: var(--text-color-dark);
}

/* Add rounded corners to the top left and the top right corner of the image */
.img {
  border-radius: 10px;
  height: auto;
}
.img:hover {
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.2);
}
