/* The following CSS applies on all screen sizes */

/* Colors and fonts */
:root {
    /* Fonts */
    --bodyfont: 'Libre Caslon Condensed';
    --headerfont: 'Dela Gothic One';
    --secondary-header-font: 'QuigleyWiggly'; /* Font for secondary headers */

    /* Main colors */
    --background:#0b0b0b; /* Page background */
    --color:#e4e4e4;
    --block:#2a2a2a76; /* Background color for the grid blocks in the content */

    --link:#9b9b9b;
    --linkhover:#bebebe;

    --footerlink:#9b9b9b;
    --footerlinkhover:#bebebe;

    --h1:#e4e4e4;
    --h2:#e4e4e4;
    --h3:#e4e4e4;

    --header:#e4e4e4; /* Title color */
    --footer:#e4e4e4; /* Footer text color */

    /* Menu colors */
    --menubg:#2a2a2a76;
    --menucolor:#e4e4e4;
    --menubghover:#2a2a2a;
    --menucolorhover:#bebebe;
}

@media (prefers-color-scheme:dark) {
    :root {
        --background:#0b0b0b; /* Page background */
        --color:#e4e4e4;
        --block:#2a2a2a76; /* Background color for the grid blocks in the content */

        --link:#9b9b9b;
        --linkhover:#bebebe;

        --footerlink:#9b9b9b;
        --footerlinkhover:#bebebe;

        --h1:#e4e4e4;
        --h2:#e4e4e4;
        --h3:#e4e4e4;

        --header:#e4e4e4;

        /* Menu colors */
        --menubg:#2a2a2a76;
        --menucolor:#e4e4e4;
        --menubghover:#2a2a2a;
        --menucolorhover:#bebebe;
    }
}

* { margin:0; padding:0; }

/* Main body styling */
body {
    background:var(--background);
    font:1rem var(--bodyfont);
    color:var(--color);
}

#main-header {
    font:2.5em var(--headerfont);
    color:var(--header);
    text-align:center;
    margin-bottom:10px;
}


/* Styling for the menu */

#main-menu {
    font:1.1em var(--headerfont);
    width:100%;
    text-align:center;
}

#main-menu ul {
    list-style:none;
}

#main-menu li {
    display:inline-block;
    margin: .25em .25em 0 0;
}

#main-menu li a {
    padding:7px;
    background:var(--menubg);
    color:var(--menucolor);
    text-decoration:none;
    transition:0.5s ease;
}

#main-menu li a:hover, #main-menu li a:focus {
    background: var(--menubghover);
    color:var(--menucolorhover);
    transition:0.5s ease;
}

/* Content styling */

main {
    margin-top:10px;
    /* background:var(--block); */
    padding:8px;
    overflow: auto;
}

main h1 {
    font:1.8em var(--headerfont);
    color:var(--h1);
    margin:0 0 10px 0;
}

main h2 {
    font:1.5em var(--headerfont);
    color:var(--h2);
    margin:20px 0 10px 0;
}

main h3 {
    font:1.3em var(--headerfont);
    color:var(--h3);
}

main h4 {
    font:1em var(--headerfont);
    font-style:italic;
    color:var(--h4);
}

p {
    line-height:1.5;
    margin:10px 0 10px 0;
}

img:hover {
    transform: scale(1.05);
    transition: 0.5s ease;
}

main a {
    color:var(--link);
    transition:0.5s ease;
}

main a:hover, main a:focus {
    color:var(--linkhover);
    transition:0.5s ease;
}

main ul {
    list-style-position: outside;
    margin-left: 25px;
}

main ul li {
    line-height:1.5;
}

main img {
    max-width:100%;
}

main input, textarea, select, button { 
    background: var(--block);  
    color: var(--color);
    font: 1rem var(--bodyfont); 
    border: 1px solid; 
    padding: 8px; 
    margin: 2px;
}

main blockquote, main .box {
    padding:10px;
    border-left:20px solid var(--link);
}

main details {
    background:rgb(0,0,0,0.1);
    padding:10px;
    margin:10px 0 10px 0;
}

main details summary {
    cursor:pointer;
}

#main-footer {
    text-align:center;
    padding:15px;
    color:var(--footer);
}

#main-footer a {
    color:var(--footerlink);
    transition:0.5s ease;
}

#main-footer a:hover, #main-footer a:focus {
    color:var(--footerlinkhover);
    transition:0.5s ease;
}

#interests {
  column-count: 2;
  column-gap: 40px;
  column-rule-style: none;
}

/* The following CSS ONLY applies to mobile/small screens */

/* Container styling */
#container {
    width: calc(100% - 20px);
    padding:10px;
    margin-top:10px;
}

#banner-content {
    width: calc(100% - 20px);
}

#main-menu li {
    margin-bottom:15px;
    display:inline-block;
}

/* Skip to content button */

#skip a {
    position:absolute;
    display:inline-block;
    left:0px;
    top:-1000px;
    overflow:hidden;
    transition:top 0.5s ease;
    background:var(--block);
    color:var(--link);
    z-index:1000;
    padding:5px;
}
 
#skip a:focus {
    top: 0;
    transition:top 0.5s ease;
}

/* Styling for faves gallery */

.faves img {
    width: 75px;
    height: 75px;
}

/* Styling for link icons */
.linkimg img {
    filter: drop-shadow(0px 0px 1px rgba(228,228,228,0.85));
    width: 20px; 
    height: 20px;
}

/* Styling for site buttons */
.buttons {
   display: flex;
   width: 100%;
   padding-bottom: 2%; 
}

.left {
    width: 50%;
}

.right {
    width: 50%;
    padding-left: 15px;
}

/* Styling for 2 column box */

.about-box {
	display:grid;
	grid-template-columns:2fr 1fr;
	grid-gap:5px;
    margin: auto;
    /* height: 452px; */
}

.box-right {
	background: url(/styling/img/webmaster.webp) bottom center;
	background-size:contain;
    background-repeat: no-repeat;
}

.box-left {
    overflow: auto;
}

/* Accordion Menu */

.wrapper {
    max-width: 600px;
    width: 100%;
    margin: 10vh auto;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align:center;
}

input {
    display: none;
}

label {
    display: flex;
    width: 100%;
    height: 50px;
    cursor: pointer;
    border: 3px solid #9b9b9b;
    user-select: none;
    font-family: 'Dela Gothic One';
    scrollbar-width: none;
}

label div:first-child {
    width: 100%;
    line-height: 45px;
    margin-left: 10px;
    font-size: 1.2em;
}

.cross{
    margin-right:15px;
    margin-top:3px;
}

.cross:before,.cross:after {
    content: '';
    border-top: 2px solid #9b9b9b;
    width: 15px;
    display: block;
    margin-top: 18px;
    transition: 0.3s;
}

.cross:after {
    transform: rotate(90deg);
    margin-top: -2px;
}

.content {
    box-sizing: border-box;
    font-size: 0.9em;
    margin: 10px 10px;
    max-height: 0;
    overflow-y: auto;
    transition: max-height, .5s;
    scrollbar-width: none;
}

input:checked ~ .content {
    max-height: 400px;
    transition: max-height, 1s;
}

input:checked ~ label .cross:before {
    transform: rotate(180deg);
}

input:checked ~ label .cross:after {
    transform: rotate(0deg);
}

.questions{
    margin-top:20px;
    max-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    transition: max-height, .5s;
}

.questions label{
    border:none;
    box-shadow: none;
    margin:0;
}

input:checked ~ .questions {
    max-height: 800px;
    border-bottom:2px solid #9b9b9b;
    transition: 1s;
}

/* The following CSS ONLY applies to desktop/big screens */

@media screen and (min-width: 800px) {
    #container {
        max-width:800px;
        width:90%;
        margin:25px auto 0 auto;
        display:flex;
        flex-wrap:wrap;
    }

    #main-header {
        flex: 1 1 100%;
        text-align:left;
    }

    #main-menu {
        flex: 1 1 100%;
        text-align:left;
    }

    #banner {
        flex: 1 1 calc(25% - 20px);
        margin-top:10px;
        height:500px;
        background:var(--banner-image-desktop);
        background-position:var(--banner-position-desktop);
    }

    main {
        flex: 1 1 calc(75% - 30px);
        overflow:auto;
        /* height:calc(500px - 30px); */
    }
    
    #main-footer {
        flex: 1 1 calc(100% - 30px);
    }
}