/*
Title: UofSC theme for Xaringan presentations
Author: Sanghoon Park
Updated: 1/9/2022
Description: A UofSC theme for Xaringan presentations. Modifid based on
             Joseph V. Casillas's Rutgers theme
References: https://github.com/jvcasillas/ru_xaringan
*/

/* Package defaults with slightly modification*/
a, a > code {
  color: #0047bb; /* rgb(252,76,2) */
  text-decoration: none;
}

/* slightly lower and bigger than default */
.footnote {
  position: absolute;
  bottom: 1em;
  padding-right: 4em;
  font-size: 95%;
}

/* important code slightly red */
.remark-code-line-highlighted {
  background-color: #FFD3DE !important;
}

/* color tweak */
.inverse {
  background-color: #FFD3DE;
  color: #ece3dd;
  text-shadow: 0 0 20px #333;
}

/* slightly spacing change */
.inverse h1, .inverse h2, .inverse h3 {
  color: #f3f3f3;
  line-height: 1.0em;
}

/* Two-column layout */
.left-column {
  color: #282728	;
  width: 35%;
  float: left;
}
.left-column h2:last-of-type, .left-column h3:last-child {
  color: #000;
}
.right-column {
  width: 63%;
  float: right;
}

.left-column2 {
  width: 70%;
  float: left;
  padding-top: 0em;
  height: 92%;
}
.left-column2 h2:last-of-type, .left-column2 h3:last-child {
  color: #000;
}
.right-column2 {
  width: 25%;
  float: right;
  padding-top: 0em;
}

.pull-left {
  padding-top: 0px;
  float: left;
  width: 45%;
}

.pull-right {
  padding-top: 0px;
  float: right;
  width: 45%;
}

.pull-right + * {
  clear: both;
}

.pull-left-short {
  float: left;
  width: 33%;
}

.pull-right-short {
  float: right;
  width: 65%;
}

.pull-left-short2 {
  float: left;
  width: 65%;
}

.pull-right-short2 {
  float: right;
  width: 33%;
}

img, video, iframe {
  max-width: 100%;
}

blockquote {
  border-left: solid 5px lightgray;
  padding-left: 1em;
}

/* adjust table horizontal spacing */
th, td {
    padding:0 15px 0 15px;
}

.remark-slide table {
  margin: auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}
.remark-slide table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: #eee }

/* leave this alone */
@page { margin: 0; }
@media print {
  .remark-slide-scaler {
    width: 100% !important;
    height: 100% !important;
    transform: scale(1) !important;
    top: 0 !important;
    left: 0 !important;
  }
}

/*~~~~~~~~~~~~~~~~~~~~~~*/
/* UW-Madison additions */
/*~~~~~~~~~~~~~~~~~~~~~~*/

/* Title slide */

/* Add image and change bg color */
.title-slide {
  background-image: url("knu_wide.png");
  background-position: 9% 15%;
  background-size: 300px;
  background-color: #fff;
  padding-left: 100px;  /* delete this for 4:3 aspect ratio */
}

/* H1 fonts */
.title-slide h1 {
  color: #515151;
  padding-top: 250px;
  font-weight: bold;
  font-size: 40px;
  line-height: 0.05;
  text-align: left;
  text-shadow: none;
  padding-bottom: 25px;
  margin-bottom: 18px;
}

/* H2 fonts */
.title-slide h2 {
  color: #0047bb;
  font-size: 26px;
  text-align: left;
  text-shadow: none;
  padding-top: 0px;
  margin-top: 0px;
}

/* H3 fonts */
.title-slide h3 {
  font-size: 22px;
  font-weight: normal;
  color: #666666;
  text-align: left;
  text-shadow: none;
  padding-bottom: 5px;
  margin: 0px;
  line-height: 1;
}

/* Remove slide count shadow */
.title-slide .remark-slide-number {
  text-shadow: none;
}

/*~~~~~~~~~~~~~~~~~~~~*/
/* Global adjustments */
/*~~~~~~~~~~~~~~~~~~~~*/

/* Add padding to all slides for 16:9 aspect ratio */
.remark-slide-content {
  padding-left: 100px;  /* delete this for 4:3 aspect ratio */
  font-size: 25px;
  line-height: 1.3; /* 원하는 줄간격 */
}

.title-slide .remark-slide-number {
  text-shadow: none;
}

/* Body slide headers (separate from title slide) */
.remark-slide-content h1 {
  color: #0047bb; /* UofSC blue */
  font-size: 40px; /* Adjust as needed */
}

.remark-slide-content h2 {
  color: #666666; /* UofSC yellow */
  font-size: 30px;  /* Adjust as needed */
}

.remark-slide-content h3 {
  color: #000000;
  font-size: 26px; /* Adjust as needed */
}

/* Color adjustments for text */

strong {
  color: #0047bb;
}

.bold { font-weight: bold; }

.usc-red{
  color: #73000a;
}

.usc-gray-blue{
  color: #dadfe1;
}

.usc-gray-darker{
  color: #646569;
}

.usc-gray-darkest{
  color: #282728;
}

.usc-anchor-color{
  color: #0479a8;
}

.p1-yellow {
  color: #f9ed69;
}

.p1-white {
  color: #FFFFFF;
}

.p1-orange {
  color: #f08a5d;
}

.p1-darkred {
  color: #73000a;
}

.p1-red {
  color: #c5050c;
}

.p1-purple {
  color: #6a2c70;
}

.p1-blue {
  color: #769fcd;
}

.p1-green {
  color: #59a059;
}


.p2-green {
  color: #95e1d3;
  font-weight: bold;
}

.p2-blue {
  color: #769fcd;
  font-weight: bold;
}

.p2-yellow {
  color: #fce38a;
  font-weight: bold;
}

.p2-red {
  color: #c5050c;
  font-weight: bold;
}

/* Color adjustments to headers */
h1 {
  color: #0047bb;
}

h2 {
  color: #ffbb3f;

}

h3 {
  color: #66666;
}

/* Font size tags */
.big {
  font-size: 1.5em;
}

/* uw-madison blockquote */
usc-blockquote {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 40px;
  margin-right: 40px;
  border-left: solid 20px #0047bb;
  background-color: #dadfe1	;
  padding: 1em;
  color: #000000;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}


/*~~~~~~~~~~~~~~*/
/* Highlight    */
/*~~~~~~~~~~~~~~*/

.highlight-last-item > ul > li,
.highlight-last-item > ol > li {
  opacity: 0.5;
}
.highlight-last-item > ul > li:last-of-type,
.highlight-last-item > ol > li:last-of-type {
  opacity: 1;
}

.bold-last-item > ul > li:last-of-type,
.bold-last-item > ol > li:last-of-type {
  font-weight: bold;
}

/******************
 * Coloured content boxes
 ****************/
.content-box {
    box-sizing: border-box;
    background-color: #e2e2e2;
}
.content-box-blue,
.content-box-gray,
.content-box-grey,
.content-box-army,
.content-box-green,
.content-box-purple,
.content-box-red,
.content-box-yellow {
  box-sizing: border-box;
  border-radius: 15px;
  margin: 0 0 15px;
  overflow: hidden;
  padding: 0px 20px 0px 20px;
  width: 100%;
}

.content-box-long {
    box-sizing: border-box;
    border-radius: 15px;
    margin: 10 10 15px;
    overflow: hidden;
    padding: 10px 20px 10px 20px;
    width: 100%;
}

.content-box-blue { background-color: #F0F8FF; }
.content-box-gray { background-color: #e2e2e2; }
.content-box-grey {	background-color: #F5F5F5; }
.content-box-army {	background-color: #737a36; }
.content-box-green { background-color: #d9edc2; }
.content-box-purple { background-color: #e2e2f9; }
.content-box-red { background-color: #ffcccc; }
.content-box-yellow { background-color: #fef5c4; }
.content-box-blue .remark-inline-code,
.content-box-blue .remark-inline-code,
.content-box-gray .remark-inline-code,
.content-box-grey .remark-inline-code,
.content-box-army .remark-inline-code,
.content-box-green .remark-inline-code,
.content-box-purple .remark-inline-code,
.content-box-red .remark-inline-code,
.content-box-yellow .remark-inline-code {
  background: none;
}

.content-box-long { background-color: green;}

.full-width {
    display: flex;
    width: 100%;
    flex: 1 1 auto;
}

/*-- CODE CHUNKS --*/

/*-- Code chunk background layer --*/
pre {
  /*border: 2px solid rgba(204, 189, 204, 0.8); /* code chunk border*/
  border:             none;
  box-shadow:         2px 2px 2px 2px #eee;
  padding:            0.1em;                    /* padding between code chunk and border */
  background:         none !important;
  overflow-x:         auto;                     /* enable horizontal scrolling with overflow */
  border-radius:      1px;                      /* modify rounding of corners*/
}

/*--  --*/
pre code {
  background:          none;
  font-size:           18px !important;
}

/*-- TABLES --*/
.remark-slide table {
  margin:              auto;
  border-top:          1px solid #768692;
  border-bottom:       1px solid #768692;
}

/*-- Table header --*/
.remark-slide table thead th {
  border-bottom:       1px solid #768692;
}

/*-- Table rows (even) --*/
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
  background:          #E8EDEE;
}
