/* CSS for ryanrasc.com */ 

:root {
  --primary-color: #50241c;
  --secondary-color: #ffffff;
  --accent-color: #fcdfbb;
  --background-color: #f7e2d0;
  --text-color: #2c1b0d;
  --border-color: #dddddd;
  --header-color: #55432e;
  --section-bg: #b31f1f;
  --transition-speed: 0.3s;
}

body {
  font-family: Times, Times New Roman, serif	;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 20px;
  transition: color var(--transition-speed), background-color var(--transition-speed);
}

.maincolumn {
  background-color: var(--background-color);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 10.5em;
  color: var(--primary-color)s;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 10px;
  text-align: center;
  transition: color var(--transition-speed);
}

h2 {
  font-size: 2em;
  color: var(--header-color);
  margin-top: 0.5em;
  border-left: 5px solid var(--primary-color);
  padding-left: 10px;
  transition: color var(--transition-speed), border-color var(--transition-speed);
}

h3 {
  font-size: 1.6em;
  color: var(--header-color);
  transition: color var(--transition-speed);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-color);
  transition: color var(--transition-speed), border-color var(--transition-speed);
}

a:hover {
  color: var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}


.itemlist {
  padding-left: 20px;
}

.itemlist .item {
  margin-bottom: 8px;
  position: relative;
}

.itemlist .item::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.tocviewlink {
  text-decoration: none;
  color: rgb(115, 76, 25) !important;
}

.tocviewsublistonly {
  margin-left: 0.4em;
  border-left: 2px solid rgb(115, 76, 25) !important;
  padding-left: 0.8em;
}

img {
    box-shadow: 0 0 5px rgba(40, 15, 28, 0.3);
      border-radius: 10px;
}

.boxed {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.boxed tr:nth-child(even) {
  background-color: var(--section-bg);
}

.boxed tr:first-child {
  background-color: var(--primary-color);
  color: white;
}

.boxed td, .boxed th {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-speed);
}

.skills-container {
  margin: 40px 0;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-container tr {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-container img {
  transition: transform 0.2s;
}

.contact-container a:hover img {
  transform: scale(1.1);
}

.collapsible-section {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.collapsible-section:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.collapsible-header {
  background-color: var(--section-bg);
  padding: 10px 15px;
  cursor: pointer;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-speed);
}

.collapsible-header::after {
  content: "+";
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s, color var(--transition-speed);
}

.collapsible-header.active::after {
  content: "−";
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 15px;
}

/* Table of Contents <- Fix in Viewport */
.tocview, .tocsub {
  text-align: left;
  padding-left: 15px;
  margin-top: 1.8em;
  margin-left: auto;
  margin-right: 30px;
  width: 130%;
  background-color: #f7e1cc;
  border: .5px solid #c09779;
  font-size: 1.15em;  
  box-shadow: 0 0 2px rgba(10, 10, 10, 15);
  resize: horizontal;
  overflow: auto;
  
  top: 20px; 
  z-index: 100; 
  
  min-width: 155px;
  max-width: 250px;
  opacity: .8;
  border-radius: 10px;
  
  transition: opacity 0.3 ease;
}


.tocview:hover, .tocsub:hover {
  opacity: 1;
  border: 1.8px solid #c09b79;
  box-shadow: 0 0 2px rgba(10, 10, 10, 15);

}

.tocsub {
  height: 100%;
}

.tocview {
  display: none;
}

.tocviewselflink {
  text-decoration: underline;
  color: rgb(92, 43, 3);
}

.tocviewtoggle {
text-decoration: none;
  color: #8b4513;
  font-size: 75%;
}

a:hover {
  color: var(--text-color);
  background-color: #f5cdb3;
  border-radius: 4px;
  border-bottom: 1px solid var(--text-color);
  border-radius: 1px;
}

.collapsible-content.active {
  max-height: 500px;
  padding: 15px;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#theme-toggle-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#theme-toggle-btn:hover {
  background-color: var(--secondary-color);
}

a {
  color: 	#154f65;
  font-weight: 600;
  border-bottom: 2px solid #0e3748;
}

a:hover {
  color: #256B86;
  background-color: rgba(26, 92, 139, 0.1);
  border-bottom: 2px solid #07273d;
} 

a b {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(252, 223, 187, 0.6), rgba(247, 226, 208, 0.8));
  padding: 1.8px 10px;
  border: 1px solid #c09779;
  border-bottom: 1px solid var(--primary-color);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(80, 36, 28, 0.12);
  transition: all 0.25s ease;
}

a:hover b {
  background: linear-gradient(135deg, var(--accent-color), rgba(252, 223, 187, 0.9));
  border-bottom: 1px solid var(--header-color);
  box-shadow: 0 3px 8px rgba(19, 23, 80, 0.2);
  color: var(--header-color);
}

a:has(b) {
  border-bottom: none !important;
  background-color: transparent !important;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }

table img {
  box-shadow: none !important;
}

a {
  font-size: 0.88em !important;
}

@media screen and (max-width: 950px) {
  .tocview, .tocsub {
    display: none; 
  }

  .maincolumn {
    width: 90%;
    height: 90%;
  }  

  body, body * {
    text-align: center !important;
  }


  h2 {
    border-left: none;
    padding-left: 0;
  }
  
  table {
    display: table;
    border-collapse: separate;
    box-sizing: border-box;
    padding-left: 8px;
    text-indent: -8px;
    unicode-bidi: isolate;
    border-spacing: 100spx;
    border-color: rgb(129, 126, 126);
}
  table img {
    padding-left: 120px;
  }
}

table {
    margin-left: -10px;
}
