
/* The following CSS applies on all screen sizes */

/* Colors and fonts */

@font-face {
  font-family: 'Fredoka';
  src: url(Fonts/Fredoka.ttf);
  font-weight:normal;
}

@font-face {
  font-family: 'FredokaBold';
  src: url(Fonts/FredokaBold.ttf);
  font-weight:normal;
}

     
@font-face {
  font-family: 'BalsamiqSans';
  src: url(Fonts/BalsamiqSans.ttf);
  font-weight:normal;
}

@font-face {
  font-family: 'BalsamiqSansItalic';
  src: url(Fonts/BalsamiqSansItalic.ttf);
}

@font-face {
  font-family: 'BalsamiqSansBold';
  src: url(Fonts/BalsamiqSansBold.ttf);
}

@font-face {
  font-family: 'BalsamiqSans';
  src: url(Fonts/BalsamiqSansBoldItalic.ttf);
}



* { margin:0; padding:0; }

/* Main body styling */
body {
    background-attachment:fixed;
    font: 13px 'BalsamiqSans';
    color:white;
      text-shadow: 
        -1px -1px 0px #000,
         0px -1px 0px #000,
         1px -1px 0px #000,
        -1px  0px 0px #000,
         1px  0px 0px #000,
        -1px  1px 0px #000,
         0px  1px 0px #000,
         1px  1px 0px #000;
   
        background-image: url('Images/Backgrounds/pineapple.png');
  
}

/* Rounded corners - feel free to get rid of this or change it */

main section, #sidebar-content, #main-footer {
    border-radius:5px;
    border:2px solid black;
  background: url('Images/Backgrounds/bubbles.png'), linear-gradient(to bottom, aquamarine, blue);
  background-size:15%;
  background-repeat:round;
}

/* Sidebar styling */

#sidebar-content {
    text-align:center;
    background: white;
    color: var(--sidebarcolor);
    padding:10px;
}

#sidebar-content header {
    color:var(--title);
    font:1.8em FredokaBold;
    margin:8px;
}

#sidebar-content p a {
    color:var(--sidebarlink);
    transition:0.5s ease;
}

#sidebar-content p a:hover {
    color:var(--sidebarlinkhover);
    transition:0.5s ease;
}

.icon img {
    border-radius:100%; /* This makes the icon a circle - feel free to remove or reduce for a rectangle or square */
    max-width:150px; /* This can be changed to make the icon smaller; you might have to mess with the border radius too */
}

/* Styling for the menu */

#main-menu {
    font:1.1em BalsamiqSans;
    width:100%;
}

#main-menu ul {
    list-style:none;
}

#main-menu li a {
    padding:7px;
            background: gold;
    color:var(--menucolor);
    text-decoration:none;
    transition:0.5s ease;
    font:BalsamiqSans;
}

#main-menu li a:hover, #main-menu li a:focus {
    color:var(--menucolorhover);
    transition:0.5s ease;
}

/* Content styling */

main {
    margin-top:10px;
}

/* Styling for blocks */

main section, #main-footer {
    padding:15px;
    background:url('Images/Backgrounds/spongebob.jpeg') brightness(150%);
    margin-bottom:10px;
}

main h1 {
    font:1.8em FredokaBold;
    color:var(--h1);
}

main h2 {
    font:1.5em FredokaBold;
    color:var(--h2);
}

main h3 {
    font:1.3em FredokaBold;
    color:var(--h3);
}

main h4 {
    font:1em FredokaBold;
    font-style:italic;
    color:var(--h4);
}

p {
    line-height:1.5;
    margin:10px 0 10px 0;
}

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-footer {
    text-align:center;
}

/* The following CSS ONLY applies to mobile/small screens */

/* Container styling */
#container {
    width: calc(100% - 20px);
    padding:10px;
    margin-top:10px;
}

#sidebar-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;
}

/* The following CSS ONLY applies to desktop/big screens */

@media screen and (min-width: 800px) {
    #container {
        max-width:950px;
        width:90%;
        margin:25px auto;
        display:flex;
        gap:20px;
    }

    #sidebar {
        flex: 1 1 calc(25% - 20px);
        margin-top:10px;
    }
    
    /* Remove or comment out this block if you don't want a sticky sidebar */
    #sidebar-content {
        position:sticky;
        top:10px;
    }

    /* Make menu links into a column */

    #main-menu li {
        display:block;
        margin:0;
    }

    #main-menu li a {
        display:block;
        border-bottom:1px solid;
    }

    main {
        flex: 1 1 calc(75% - 30px);
        display:flex;
        flex-wrap:wrap;
        gap:10px;
    }

    main section {
        margin:0;
    }
    
    #main-footer {
        flex: 1 1 calc(100% - 40px);
    }

    /* Defining grid blocks */

    .full { flex: 1 1 calc(100% - 40px);}
    .half { flex: 1 1 calc(50% - 40px); }
    .third { flex: 1 1 calc(33% - 40px); }
    .twothird { flex: 1 1 calc(66% - 40px); }
    .quarter { flex: 1 1 calc(25% - 40px); }
    .threequarter { flex: 1 1 calc(75% - 40px); }
}
