.modal,
.modal-content,
.modal-overlay {
    box-sizing: border-box;
}

.modal {
    /* This way it could be display flex or grid or whatever also. */
    display: block;
    background-color: #ededed;
    
    /* Probably need media queries here */
    width: 85%;
    /* max-width: 100%; */
    
    height: 85%;
    /* max-height: 100%; */
    
    position: fixed;
    
    z-index: 100;
    
    left: 50%;
    top: 50%;
    
    /* Use this for centering if unknown width/height */
    transform: translate(-50%, -50%);
    
    /* If known, negative margins are probably better (less chance of blurry text). */
    /* margin: -200px 0 0 -200px; */
    box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.9);
  }
  .closed {
    display: none;
  }
  
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    
    background: rgba(0, 0, 0, 0.6);
  }
  .modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 20px;
  }
  
  
.modal .close-button {
    position: absolute;

    /* don't need to go crazy with z-index here, just sits over .modal-guts */
    z-index: 1;

    top: 10px;

    /* needs to look OK with or without scrollbar */
    right: 20px;

    border: 0;
    background: var(--brand-color);
    color: var(--text-color);
    padding: 5px 10px;
    font-size: 0.8rem;
}

 /* Prevent body from scolling when modal ::-webkit-outer-spin-button */

 .overflow {
    overflow-y: hidden;
}

/* Styling */

.modal .modal-content h1 {
    line-height: 1.2;
    margin-top: 3.5rem;
    margin-bottom: 0;
}

.modal .modal-content h2 {
    margin-top: 2rem;
}

/* Styling - Tools */
.modal-content .tool-icons {
    margin-bottom: 1rem;
}

.modal-content .tool-icons img {
    width: 12%;
    margin: .5rem;
}

/* Styling - Buttons */

.modal-content .modal-btns {
    display: flex;
    justify-content: space-between;
}

.modal-content .modal-btns button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    margin: 1rem 0;
}

.modal-content .modal-btns p {
    margin: 0;
}

.modal-content .modal-bottom-btns button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    margin: 1rem 0;
}


.no-git-repository {
	width: 100%;
	text-align: center;
}

/* Styling - Details */

.modal-content .modal-details div {
    margin-bottom: 1.5rem;
}


@media (min-width: 39em) {
    .modal {
        width: 75%;
    }

    .modal .close-button {
        font-size: 1.1rem;
    }
}

@media (min-width: 43em) {
    .modal-content img {
        max-width: 450px;
    }

    .modal-content .modal-bottom-btns button,
    .modal-content .modal-btns button {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
        margin: 1rem 0;
    }
}

@media (min-width: 62em) {
    .modal {
        width: 65%;
    }
    
    .modal-content {
        padding: 20px 50px;
    }
    
    .modal .modal-content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 87em) {
    .modal {
        width: 55%;
    }

    .modal-details h3 {
        font-size: 1.4rem;
    }
}