:root{
  --background-color:white;
  --nav-color:black;
  --nav-font-color:white;
  --footer-color:black;
  --footer-font-color:black;
  --logo:white;
  --shadow:5px 5px 3px black;
  --outline:1px solid white;
  --img-outline:2px 2px 1px black ;
}

.darkmode{
  --background-color:black;
  --nav-color:white;
  --nav-font-color:black;
  --footer-color:rgb(15, 15, 15);
  --footer-font-color:white;
  --logo:black;
  --shadow:5px 5px 3px white;
  --outline:1px solid black;
  --img-outline: 1px solid white;
}

#container{
    background-color: var(--nav-color);
    height: 100px;
    width: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: row;
    grid-template-columns:50% 25% 25% ;
    box-shadow: var(--shadow);
    border:var(--outline);
    
}

#theme-switch{
    height:50px;
    width:50px;
    padding:0;
    border-radius: 50%;
    background-color:var(--background-color);
    display:flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 28px;
    right: 7px;
}

#theme-switch svg{
    fill: var(--footer-font-color);

}

.sun{
    color:white;
}


#theme-switch svg:first-child{
    display: none;
}


.darkmode #theme-switch svg:last-child{
    display: none;
}


.darkmode #theme-switch svg:first-child{
    display: block;
}


#logo{
    color: var(--logo);
    font-size: 0.9cm;
    flex-grow: 3;
}



.links{
    color:var( --nav-font-color);
    list-style: none;
    justify-content: space-evenly;
    flex-grow: 1;
    cursor: pointer;

}


body{
    background-color: var(--background-color);
}


.imgbox{
    --gap:16px;
    --num-cols:4;
    --row-height:300px;

    box-sizing: border-box;
    padding:var(--gap);
   

    display: grid;
    grid-template-columns: repeat(var(--num-cols), 1fr);
    grid-auto-rows:var(--row-height) ;
    gap: var(--gap);
}


.imgbox > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    border: var(--img-outline);
    box-shadow: var(--img-outline);
    
}

.imgbox-col-2{
    grid-row: span 2;
}

.imgbox-col-9{
    grid-column: span 2;
}

.imgbox-col-3{
    grid-row: span 2;
}

/* Anything under 1024px*/
@media screen and (max-width: 1024px){
    .imgbox{
        --num-cols:1;
        --row-height:200px;
        --num-rows:1;
        grid-auto-rows:var(--row-height) ;
        grid-template-columns: var(--num-cols);
    }

    #logo{
    color: var(--logo);
    font-size: 0.7cm;
    flex-grow: 3;
}

    .links{
    margin-right: 30px;
    color:var( --nav-font-color);
    list-style: none;
    justify-content: space-evenly;
    flex-grow: 1;
    cursor: pointer;
}

    #theme-switch{
    height:30px;
    width:30px;
    border-radius: 50%;
    background-color:var(--background-color);
    display:flex;
    justify-content: center;
    align-items: center;
    top: 40px;
    right:1pc;
}
}



}

#theme{
    background-color: black;
    color: white;
    border-radius: 4px;
}

footer{
  background-color:var(--footer-color);
  border-radius: 3px;
  width:100%;
  height:6cm;
  color:var(--footer-font-color)
}
