/*                                                                                                                                                                       
                                                                                                                                                                      
                                                                                                                                                                      
                                %%%%%%%%%*                                                                       #%%%%%%%%%%%%%%%%%%%%#                               
                             #%%%#=+=+##%%%%%%%%%%%%%#                                                    *%%%%%%#++++++++++++++++++++#%%%%#                          
                            %%%-------------#%----*#%%%%%*                                            #%%%%*++++++++**###############*++++*%%%                        
                        +%%%%+------#%------------------#%%%%%*                                    %%%%*+++++#############################+%%%%                       
                     %%%%%*%------%%----------------------=%%*%%%%                              #%%%*+++##################################%%%%*                       
                  %%%%%--=%------%=-------------------------=%*--%%%%                         #%%%++####################################%%%=-*%%#                     
                %%%%*----%+-----%=----------------------------%#---=%%%                     *%%%+####################################%%%*-------%%%                   
              #%%%#------%-----*%-------------------%----------%=-----%%%                  %%%####################################%%%*------------%%#                 
             %%%%--------%-----%=-------------------+*--------------+%%%%%#               %%%##################################%%%*----------------=%%                
            %%%*---------%=----%=--------------=-----%-------------%%==-%%%             +%%#################################%%%=---------------------%%%              
           %%%-----------*%----#%--------------%-----%------------%#=====%%%*          #%%##############################%%%%=-------------------------+%%             
          %%%-------------%%----%--------------%-----%--------*#-*%++=====%%%          %%%###########################%%%%-------------------------------%%            
         %%%---------------%%---+%------------=#----#+--------*#-%*++++*+==%%         %%%########################%%%%+-*%------------------------%+*%+---%%           
        %%%=-------%%%%%+----%#--+%-----------%----#%---------%%*%**+%%=%*%%%         %%%############%%%#####%%%%#-------%=-------=*+==------==#%*++++#+=*%%          
       +%%%--%--=%%------#%%%--%%*-%#--------#+---#*---------%#-%%*%%---%%%%          %%%%%%%%%%%%*****%#%%%%#------------#%-------*#*********++++++++++#-%%          
       %%%=-%--**-------=====%%%---#%%%-----#+--#%---------=%*--#%%+-----+%%#         %%++++++++******%*%=%-----------------%*-------=%*******++++++++++*+%%          
       %%%-##----------=====++++%%---------#--%%----------%#----%%#----====%%%       %%++++++++++****%--#%-------------------=%=--------##****++++++++++%=%%          
       %%%=##---------=====+++****#%-----##%%=---------%%#--------%===+=====%%%     *%+++++++++++***%--%-----------------------*%---------=%*++++++++++%==%%          
       %%%+=%=--------%%%%%%%#*****#%+--=---------+%%#+----------#%===%+=====%%%    #%++++++++++++##-=%-----*%%%---------+**=----#%-----#--==+%#+++++*%===%%          
       %%%%==#%#=---%#--------+#%%#*#%----------=%-------------#*-%==%#=======%%     %%#++++++++*%+-##----+------------------+%*---#%===#========*#%*=====%%          
       %%%=======***===============-=======#%===%------------%=--#+#%%#=======%%=     #%%%#++#%%=#=%+--------------------------------#%=#==========#%=====%#          
       %%*================================+%+==+%-----%---#%----%#%%%%%=======%%*       %%=======%%------------------------------------#%==========%%====#%           
       %%================================#%+%==##-=#--##*-+*%%%%%#*--%%#======%%        %%======#%=----------%%=------------------------%==========%*====%%           
       %%=====%=============*========+*#%%##%%#%%=+%---##%#****##----%%%=====%%%        %%======%%=+----=*%%%%-------------#*#----------%==========%=====%*           
       %%+====%======================#%+----=*%+%+-------%******%=--=%%#====%%%         +%+=====##=*%#+#%%%=%=--------------=%##%=-----+%=========%%%===%%            
       %%%====%%=====%%%#*+===+*%%%%%#%%%%%%*---=%+-----=%++%++++%=%%#%====%%%           %#=====##=%%===%*===---------------=%=#%%%%%%%%#=========%+%===%%            
       %%%#====%#=========##-%%%%%%%##*#------------------=*%%%%%%*=##==*%%%%*           %%=====**===========---------------======*%===%=========%%-%==*%             
        #%%#===+%%=========%+--%***%****#---*%-----=========----+=%%=+%%%#==%%*          %%======%==========----------------==========+%=========%*+%==%%             
          %%%====%%=========%%=%*++#++++*#%%=-==============------+#*-%%====#%*          %%======%========-------------------=========%#========%%-%===%%             
          %%%%%#==#%%========*%*%*#%%%%%+=%*-============-------------%%==#%%#           *%#=====%*---------------------------=======-%========*%+%====%#             
         %%%==+#%%%%%%=========*%#--=#--------====-------------------%%==%%#              %%=====+%-------------------------------===%=========%%+====*%%             
         %%%============+=========+#%%------------------------------%%==%%                %%+=====%*-----------=%#=--------+%#+-----%#========%%======#%*             
         %%*========+=====#%%%%%%%*-----------------------=------*%%+==%%                 +%%=====*%%-----------------===----------#%========%%=======#%*             
         %%#========%=========#%+---------%%#-------*%%%+-----%%%%=====*%%                 %%*=====%%%%=--------------------------*%========%%========*%%             
         %%%=========%*==========+%%%%%%#+=%=------=-----*%%%%**%%%=====-#%%*               %%======%%%%%%+----------------------#%========%%==========%%             
          %%%%#=======#%==================%=----=*%%%%%%%*         #%%%%%#                  #%%======%# *%%%%%%=--------------#%%%========%%===========%%%            
           %%%%%%%%%%%%%%%%+===========#%%%%%%%%#%+                                          %%%+=====%#      #%%%%%%%%%%%%%%%%%+========%%%%%%%%%%%%%%%%%#           
                            #%%%%%%%%%#                                                       =***#%%%#%%                   #%%%%%%%%%%%%*                            
                                                                                                                                                          /



/*── BASE ── */
:link, :visited {
  text-decoration: none;
  outline: none;
}
ul, ol {
  list-style: none;
}
ul, ol, li, h1, h3, h4, h5, h6, blockquote, pre, form, body, html, fieldset, input {
  margin: 0;
  padding: 0;
}
a img, :link img, :visited img {
  border: none;
}
address {
  font-style: normal;
}
/* ─── BODY ─── */
body {
  text-align: left;
  color: #676767;
  background-color: #000105;
  font: 62.5% "Lucida Grande", "Lucida Sans", "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif;
  min-width: 1420px;
  min-height: 920px;
  overflow: auto;

}
/* ─── CUSTOM FONT ─── */
@font-face {
  font-family: 'Y1BadBoy';
  src: url('/res/Y1BadBoySlabRegular.eot');
  src: local(''),
       url('/res/Y1BadBoySlabRegular.woff') format('woff'),
       url('/res/Y1BadBoySlabRegular.ttf') format('truetype'),
       url('/res/Y1BadBoySlabRegular.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}
#toc-title {
  font-family: "Y1BadBoySlab", sans-serif;
  background: linear-gradient(to right, #274986, #09275c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; 

}
/* ─── BG ─── */
#bgpicture {
  display: flex;
  justify-content: flex-end; 
  width: 100%;
}

#bg2 {
  background: url(/res/bg2.png) no-repeat;
  top: 0;
  left: 0;
  height: 877px;
  width: 789px;
  margin-top: 0;
  z-index: -1;            
  pointer-events: none;   
}

/* ─── WRAP ─── */
#wrapper {
  position: relative;
  width: 1920px;
  height: 940px;
  margin: 0 auto;
}
/* ─── NAV ─── */
#navi {
  position: absolute;
  top: 15px;
  left: 61%;           
  transform: translateX(-50%);
  padding: 30px 0;
  font: 2.85em Y1BadBoySlab, "Lucida Grande", "Lucida Sans", Verdana, sans-serif;
  text-align: center;
  font-weight: bold;
}

#navi a {
  margin: 0 13px;
  background: linear-gradient(to right, #274986, #09275c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; 
}

#navi a:hover {
  text-shadow: 0 0 5px #274986, 0 0 10px #09275c, 0 0 15px #274986;
  box-shadow: 0 0 1px rgba(29, 23, 34, 0.6);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  text-decoration: none;

}
/* ─── MAIN ─── */
#main {
  position: absolute;
  top: 50px;
  left: 40px;
  width: 970px;
  height: 800px;  
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-color: #0A1124   #000000;
  scrollbar-width: auto;  
  padding: 10px 20px 10px 10px;
  box-sizing: border-box;
  line-height: 16px;
  text-align: justify;
  font-size: 1.3em;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}


/* ─── SUB ─── */
#subcontent {
  position: absolute;
  top: calc(40px + 600px + 20px); 
  left: 870px;
  width: 507px;
  text-align: center;
}

/* ─── QUOTE ─── */
.quote {
  padding: 10px 20px;
  margin: 10px 0;
  background-color: #000;
  color: #fff;
  font: 1.4em "Futura", "Lucida Grande", "Lucida Sans", "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif;
}

/* ─── HEAD ─── */
h1 {
  margin: 4px 0 6px 20px;
  color: #ffffff;
  background-color: #0f0f0f;
  font-size: 1.4em;
  border-bottom: 5px solid transparent;
  font-weight: normal;
  font-family: "Oswald", "Lucida Grande", "Lucida Sans", "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif;
}
/* ─── COLOR-TEXT ─── */

p {
	margin-bottom: 20px}

h1 {
	margin-bottom: 45px;
	padding: 0 60px 0 0;

	color: #0a51a2;
	font-family: "Simonetta", cursive;
	font-size: 30px;
	font-weight: normal;
	letter-spacing: 1px;
	text-align: right;
	}

h2 {
	margin: 50px auto 20px;
	padding: 0 0 0 40px;

	color: #0a51a2;
	font-family: "Droid Serif", cursive;
	font-size: 24px;
	letter-spacing: 1px;
	text-align: left;}

h3 {
	margin: 40px auto 10px;
	padding: 0 0 0 30px;

	color: #0a51a2;
	font-family: "Droid Serif", cursive;
	font-size: 14px;
	letter-spacing: 1px;
	text-align: left;}

b, strong {
	color: #aabcc9;}

i, em {
	color: #70adea;}

li {
  color: #889dc5;}

u {
	border-bottom: 2px solid #3062ac;
	color: #004279;
	text-decoration: none;}

.def {
    border-bottom: 2px dotted #70adea;}

.source {
	display: block;
	margin: -30px auto 20px;

	color: #fff;
	font-family: "Crimson Text", serif;
	font-size: 29px;
	font-weight: bold;
	text-align: right;}

ul.list {
	width: 85%;
	margin: 30px 0;
	padding-left: 60px;
	color: #8aa1ce;}

ol.quote {
	margin-bottom: auto;}


a:active, a:link, a:visited {
	color: #7387e0;
	text-decoration: none;
	transition: 0.8s;}

a:hover {
	color: #4f5fe0;}

/* ─── IMG ─── */

img.thumbnail {
	width: 166px;
	height: 93px;
	padding: 4px;
	border-radius: 15px;}

p.center {
	margin-top: 50px;
	letter-spacing: 20px;
	line-height: 60px;
	text-align: center;}

.prof {
	margin: 30px auto;
	min-height: 128px;}

.profpic {
	float: left;
	width: 120px;
	height: 120px;
	padding: 4px;

	border-radius: 50%;

	margin-right: 2rem; 
	-webkit-shape-outside:circle();
	shape-outside:circle();}

.headrow {
	height: 230px;
	width: 760px;
	margin: auto;
	text-align: center;}


img.petit {
	float: right; 
	margin: 5px 20px auto 10px;
	padding: 4px;}

img.buttons {
	padding: 4px;}


::-webkit-scrollbar {
	width: 10px;
	height: 10px;}

::-webkit-scrollbar-thumb {
	background: #6088f8;}

::-webkit-scrollbar-track {
	background: #000;}

::selection {
	color: #121241;
	background: #6088f8;}

::-moz-selection {
	color: #121241;
	background: #6088f8;}

:root {
  --theme-border-color: #3a4c63;
  --theme-page-text-color: #d6e7ff;
  --p3-highlight: #58a6ff;

}
/* ─── TABLE OF CONTENTS ─── */
  .toc {
  display: inline-block;             
  width: 190px;                      
  background-color: #000000;
  border: 1px solid var(--theme-border-color);
  border-radius: 3px;
  font-size: 95%;
  margin: 24px auto 24px 0;
  padding: 0;
  line-height: 1;
}

    .toc input[type="checkbox"] {
      display: none;
    }

    .toctitle {
      align-items: center;
      border-bottom: 1px solid var(--theme-border-color);
      display: flex;
      justify-content: space-between;
      padding: 3px;
      text-align: center;
      direction: ltr;
    }

    .toctitle h2 {
      align-items: center;
      border: 0;
      color: var(--theme-page-text-color);
      display: flex;
      font-family: inherit;
      font-size: inherit;
      font-weight: 500;
      line-height: 1.25;
      margin: 0;
      padding: 0;
    }

    .toctogglespan {
      cursor: pointer;
    }

    .toctogglelabel::before {
      content: "▼";
      font-size: 1rem;
      padding-left: 8px;
      transition: transform 0.3s;
    }

    #toc-toggle:checked + .toctitle .toctogglelabel::before {
      transform: rotate(-90deg);
    }

    #toc-toggle:checked ~ .toc-list {
      display: none;
    }

    .toc-list {
      list-style: none;
      padding-left: 0;
      margin: 0;
      margin-top: 1rem;
    }

    .toc-list li {
      margin-left: 12px;
      margin-bottom: 0.1em;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .toc-list li a {
      display: block;
      padding: 0px 6px;
      border-radius: 3px;
      line-height: 1.75;
      color: var(--theme-page-text-color);
      text-decoration: none;
      transition: background-color 0.3s, color 0.3s;
    }

    .toc-list li a:hover {
      background-color: #2c3e50;
    }

    .toc-list ul {
      list-style: none;
      margin-left: 1rem;
      margin-top: 0.25rem;
    }

    @media (max-width: 600px) {
      .toc {
        font-size: 0.95rem;
      }
    }
/* ─── ANIM ─── */
@keyframes p3FadeIn {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.toc-container {
  animation: p3FadeIn 0.6s ease-out;
}


.toctogglelabel:hover {
  text-shadow: 0 0 6px var(--p3-highlight);
}


.toc-list li a:hover {
  box-shadow: 0 0 4px var(--p3-highlight);
}


.toc-list li a,
.toctogglelabel {
  transition: all 0.3s ease;
}

/* ─── AUDIO ─── */
.audio-box {
  background-color: #111;
  color: #eee;
  padding: 10px;
  border-radius: 8px;
  max-width: 400px;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.audio-description {
  margin-bottom: 10px;
  font-size: 0.95em;
  font-style: italic;
}

/* ─── TOGGLE ─── */

.glow-toggle summary::-webkit-details-marker,
.glow-toggle summary::marker {
  display: none;
}


.glow-toggle summary {
  position: relative;
  cursor: pointer;
  padding-left: 1.2em;              
  user-select: none;
}
.glow-toggle summary::before {
  content: "▶";
    color: #eee;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s, text-shadow 0.3s;
  
}
.glow-toggle summary:hover::before {
  text-shadow: 0 0 6px var(--p3-highlight);
}


.glow-toggle[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.glow-toggle summary {
  
  list-style: none;
}


.glow-toggle summary::-webkit-details-marker {
  display: none;
}


.glow-toggle summary::marker {
  display: none;
}


.glow-toggle summary::-moz-list-bullet {
  display: none;
}

/* ─── SPOILER ─── */
 .spoiler {
  filter: blur(5px);
  cursor: pointer;
  transition: filter 0.3s ease;
}

.spoiler.revealed {
  filter: blur(0);
}