:root {
    --highlight: rgb(19, 138, 35);
}

html {
    width: 100vw;
    height: auto;
}

body {
    /* Page */
    margin: 0;
    /* height: 100vh;
    width: 100vw; */
    display: flex;
    justify-content: center;

    /* Font */
    font-size: 10pt;
    font-weight: 400;
    color: #000000;
    font-family: 'Source Sans Pro', sans-serif;

    background-color: #eeeeee;
    padding: 1cm;
}

* {
    box-sizing: border-box;
}

.panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: -1cm -1cm -1cm 1cm;
    background-color: #dddddd;
    box-shadow: inset 5px 0px 5px 0px #cccccc;
    animation: 0.5s ease-in fadeIn;
    transition: opacity 500ms;
}
    .panel-content {
        display: flex;
        height: 100%;
    }

    .panel.inactive {
        display: none;
    }

    .panel-content iframe {
        margin-left: 10px;
        border: none;
        flex: 1;
    }

    #close-panel {
        border-radius: 50%;
        background: transparent;
        border: 0px;
        align-self: flex-end;
        margin: 10px;
        aspect-ratio: 1 / 1;
        padding: 0;
    }

        #close-panel > i {
            color: #777777;
            font-size: 24px;
        }

.page {
    flex: 1.5;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 21cm;
        opacity: 1;
    }
}

.hidden {
    opacity: 0;
}

.hover {
    cursor: help;
    background-color: rgba(19, 138, 35, 0.05);
}

.modal {
    width: 21cm;
    padding: 0.25in 0.5in;
    margin: auto;
    margin-bottom: 1cm;
    background-color: white;
    color: #333;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 5px rgb(75 75 75 / 20%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 500ms;

    animation: 2s ease-out slideIn;
}
    
    .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 8px;

        animation: 3s ease-in fadeIn;
        }
        
        .text {
        margin-bottom: 16px;
        font-size: 14px;

        animation: 3s ease-in fadeIn;
        }
    
    .close-button {
        background: #eee;
        border-radius: 50%;
        color: #888;
        font-weight: 400;
        font-size: 16px;
        height: 24px;
        width: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .buttons {
        display: flex;
        gap: 8px;
        
        animation: 3s ease-in fadeIn;
    }

    button {
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
    }
    
    button.print {
        background: royalblue;
        border: 1px solid royalblue;
        color: white;
    }
    
    button.close {
        background: white;
        border: 1px solid #ddd;
        color: royalblue;
    }

.page-inner {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 5px rgb(75 75 75 / 20%);
    width: 21cm;
    min-height: 29.7cm;
    padding: 0.5in;
    margin: auto;
    overflow-wrap: break-word;

    animation: 1.5s ease-in-out fadeIn;
}

.three-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.15cm 0;
}
    .three-panel > .center {
        flex: 0 0 33.33%;
        text-align: center;
    }
        .center > h1 {
            margin: 0;
        }

    .three-panel > .right {
        text-align: right;
        flex: 0 0 33.33%;
    }

    .three-panel > .left {
        flex: 0 0 33.33%;
    }

.two-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.15cm 0;

}
        .two-panel > .right {
            text-align: right;
            flex: 0 0 49%;
        }
    
        .two-panel > .left {
            flex: 0 0 49%;
        }

        #projects > .two-panel > .right {
            text-align: left;
        }

h2 {
    margin-bottom: 0;
    color: var(--highlight);
}

ul {
    list-style-type: circle;
    padding: 0;
    margin: 0;
    margin-left: 0.5cm;
}

a {
    text-decoration: none;
    color: var(--highlight);
}

hr {
    margin: 0.05cm;
}

b {
    font-weight: 600;
}

#icon {
    color: var(--highlight);
}

span {
    border: 1px solid rgba(19, 138, 35, 0.75);
    border-radius: 6px;
    padding: 0 4px;
    color: rgba(19, 138, 35, 0.75);
    background-color: rgba(19, 138, 35, 0.05);
}

#obj {
    display: flex;
    justify-content: center;
}

#obj > span {
    margin: 0 2.5px;
}

@media print {
    @page {
        size: A4;
        margin: 0;
        padding: 0;
    }

    body {
        background-color: white;
    }

	.page-inner {
        /* Thanks to https://github.com/delight-im/HTML-Sheets-of-Paper/blob/gh-pages/css/sheets-of-paper.css */

		width: initial !important;
		min-height: initial !important;
		margin: 0 !important;
		padding: 0 !important;
		border: initial !important;
		border-radius: initial !important;
		background-color: #ffffff !important;
		box-shadow: initial !important;

        /* background-color: #ffffff !important;
        color: #000000 !important;
        box-shadow: 0 4px 5px rgb(75 75 75 / 20%) !important;
        width: 21cm !important;
        min-height: 29.7cm !important;
        padding: 0.5in !important;
        margin: auto !important;
        overflow-wrap: break-word !important; */

		page-break-after: always;
	}

    .modal, .panel {
        display: none;
    }
}

@media screen and (max-width: 820px) {  /* applies to screens smaller than 768px */
    .modal {
        width: 90vw;
        margin-bottom: 5vh;
    
        animation: 2s ease-in-out fadeIn;
    }

    body {
        height: auto;
    }

    .page-inner {
        width: 90vw;
        padding: 0.25in;
    }

    .three-panel {
        flex-direction: column;
    }

        .three-panel > .right {
            text-align: center;
            margin-top: 0.5em;
        }

        .three-panel > .left {
            text-align: center;
            margin-bottom: 0.5em;
        }

    .objective {
        text-align: justify;
    }

    #obj {
        display: flex;
        flex-wrap: wrap;
        max-width: 90%;
        gap: 0.5em;
        margin: auto;
    }

    #projects > .two-panel {
        flex-direction: column;
    }

    #projects .two-panel {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15cm;
    }

    #projects span {
        margin-right: 0.1em;
    }

    .panel {
        transform: translateY(100%);
        transition: transform 0.5s ease;
        height: 80%;
        overflow-y: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        margin: 0;
    }
    .panel.active {
        transform: translateY(0);
        transition: transform 0.5s ease;
    }
    
    
  }
  