@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/*CHANGE COVER PHOTOS HERE!!! All cover photos should have background-size:cover*/
#project-1 {
    background-image: url("media/gettingstarted.png");
    background-size: cover;
}

#project-2 {
    background-image: url("media/Covers.png");
    background-size: cover;
}

#project-3 {
    background-image: url("../trench-book-reader/public/images/cover.png");
    background-size: cover;
}

#project-4 {
    background-image: url("media/coverphotoforlightbox.jpeg");
    background-size: cover;
}

#project-5 {
    background-image: url("../openContextReader/ocSearchCover.png");
    background-size: cover;
}

#project-6 {
    background-image: url("../3d-viewer/imgs/3dViewercoverimage.png");
    background-size: cover;
}

#project-last {
    background-image: url("media/GitHub.jpg");
    background-size: cover;
}

/*DO NOT TOUCH*/

/*Modifies the whole webpage*/
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /*This makes sure that the website grows downward instead of to the right*/
    font-family: "Outfit", sans-serif;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.col {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    margin: 0;
    box-sizing: border-box;
    min-height: 500px;
    background-position: center;
}

/*Contains the page's content*/
.contains {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #a2cde6;
    padding-top: 30px;
    padding-bottom: 40px;
}

/*Heading of the page*/
#projheading {
    text-align: center;
    width: 100%;
    position: relative;
    left: 0%;
    width: 100%;
    height: 0vh;
    font-size: 80px;
    color: #fff;
    font-family: "Outfit", sans-serif;
    padding-top: 10px;
    margin-bottom: 100px;
}

/*This is the formatting that applies to each project*/
.project {
    border-radius: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    text-align: center;
    position: relative;
    margin-top: 15px;

    font-family: "Outfit", sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: #166b53;
    flex-basis: calc(33.33% - 45px);
    width: calc(33.33% - 20px);
    box-sizing: border-box;
    background-position: center;
}

/*This controls the layout of the entire page of projects*/
.projectspage {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    width: 90%;
    min-height: 78vh;
}

/*This controls the appearance of the overlays*/
.overlay {
    position: absolute;
    border-radius: 30px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0; /*This makes sure that the overlays do not appear when they are not hovered over*/
    transition: .5s ease;
    background-color: #fff;
}

/*This makes sure that the overlays only appear when hovered over*/
.overlay:hover {
    opacity: 1;
    cursor: pointer;
}

/*Controls the appearance of the text within the overlay*/
.text {
    color: #0079bf;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    /*Makes sure the appearance is the same across different platforms*/
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

/*Sidebar Stuff*/
.openbtn { /*controls the appearance of the three lines to open the sidebar*/
    font-size: 20px;
    cursor: pointer;
    background-color: rgba(162,205,230,0);
    color: #fff;
    padding: 10px 15px;
    border: none;
    position: fixed;
    right: 10px;
    top: 10px;
    border-radius: 50%;
    font-size: 30px;
    opacity: 1;
}

.openbtn:hover { /*controls the appearance of the three lines when hovered over*/
    color: rgba(162,205,230,1)
}

.sidebar { /*controls the appearance of the sidebar itself*/
    height: 80%;
    width: 0;
    position: fixed; /* Stay in place */
    right: 20px;
    border-radius: 30px;
    z-index: 1; /* Stay on top */
    top: 10;
    background-color: #fff;
    overflow-x: hidden; /* Disable horizontal scroll */
    overflow-y: scroll;
    padding-top: 60px;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
}

/* The sidebar links */
.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: rgba(162,205,230,1);
    display: block; /*Makes sure they take up an entire row*/
    font-family: "Outfit", sans-serif;
    transition: 0.3s;
    text-align: center;
}

/*Sidebar links on hover*/
.sidebar a:hover {
    color: rgba(162,205,230,0.3)
}

/* Position and style the close button (top right corner of sidebar) */
.sidebar .closebtn {
    position: absolute;
    top: 0;
    font-size: 36px;
}

/* Style the back arrow */
 .back-arrow {
      text-decoration: none;
      font-size: 24px;
      color: black;
      display: inline-flex;
      align-items: center;
      padding: 10px;
    }

    .back-arrow:hover {
      opacity: 0.7;
    }

    .arrow-icon {
      margin-right: 8px;
    }
