*,
*::before,
*::after {
  box-sizing: border-box;
}

#page {
    width: min(90vw, 600px);
    height: 90%;
    
    display: flex;
    flex-direction: column;

    margin: 0;
    background-image: url("../p/paper.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border: 2px solid #262628;
}

#header {
    border-bottom: 2px solid #262628;
    padding: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Carbon;
    font-size: 1.4rem;
}

#grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 60px;
    overflow-y: scroll;
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #262628;
    padding: 0.2em;
}

.grid-item p {
    font-family: Punk Typewriter;
    font-size: 2rem;
    font-size: 1.6rem;
}

.grid-item p:hover {
    text-decoration: underline;
}

body {
    font-family: "Hanken Grotesk";
    color: #262628;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0;
    margin: 0;
}

#pre-header {
    display: flex;
    justify-content: left;
    width: min(90vw, 600px);
    padding: 10px 0;
    gap: 20px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    z-index: 9999;
    background-color: white;
    padding: 5px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-content a {
    padding: 5px;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    width: 100px;
}

.larger-subtitle {
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.tooltip {
    position: relative;
}

.tooltip p {
    cursor: pointer;
}

a, .fake-link {
  color: black;
}

a:hover, .fake-link:hover {
  background-color: #c4c4cb;
}

.fake-link {
    text-decoration: underline;
    cursor: pointer;
}

.grid-item p {
    white-space: pre;
}

.grid-item p span {
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 130px;
    background-color: black;
    color: #fff;
    font-family: Flexi IBM;
    font-size: 20px;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    top: 45px;
    left: 60px;
    z-index: 1;

    width: max-content;
    max-width: 300px;
    padding: 5px 10px;
}

.tooltip p:hover ~ .tooltip-text {
    visibility: visible;
}

#grid::-webkit-scrollbar {
    width: 8px;        
}

#grid::-webkit-scrollbar-track {
    background: transparent;   
}

#grid::-webkit-scrollbar-thumb {
    background-color: #c9c9cc; 
    border: 2px solid transparent;  
}

#grid::-webkit-scrollbar-button {
    display: none;
}
