﻿.overlay {
    position: fixed;
    /* Sit on top of the page content */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none;
    /* Hidden by default */
    width: 100%;
    /* Full width (cover the whole page) */
    height: 100%;
    /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
    z-index: 2;
    /* Specify a stack order in case you're using a different order for other elements */
    cursor: url(/images/glove.png), pointer;
}

/*Fading animation for the overlay*/
.overlay_revealroleanimation {
    animation: fade 15s ease-in-out;
}

/* Lobby items and containers */
.templateholder {
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.styled_button {
    border-radius:5px;
    margin-top:1rem;
    color: #fff;
    background-color: #b91c1c;
    border-color: #b91c1c;
}

    .styled_button:hover {
        border-color: #731b19;
        background-color: rgb(220 38 38);
        color: white;
    }

.game_container {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media only screen and (min-width: 576px) {
    .game_container {
        width: 30%;
    }
}

.roomcode {
    text-align: center;
    background-color: #a91d1d;
    padding: 5px;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 0px;
    color: white;
}

.card {
    color: white;
    height: auto;
    background-color: #343434;
    padding: 20px;
    border-radius: 20px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.roleCard {
    opacity: 0;
    animation: fade 15s ease-in-out;
}

.startDiv {
    display: none;
    width: 90%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.visible {
    display: flex;
}
.scary {
    text-shadow: 1px 1px crimson;
}

.scarier {
    text-shadow: 1.5px 1.5px crimson;
}

.scarier_alternative {
    background: #f00;
}

.inknut {
    font-family: 'Inknut Antiqua', serif;
}

.courier {
    font-family: "courier-prime", Courier, sans-serif;
    font-weight: 700;
    font-style: italic;
}

.president {
    color: #1e90ff;
}

.chancellor {
    color: cadetblue;
}

/*policy cards*/
.card_text {
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.card_image {
    border-radius: 20px;
    margin-bottom: 1rem;
    max-width: 80%;
}

.voting_image_chancellor {
    border-radius: 20px;
    margin-bottom: 1rem;
    max-width: 130px;
    border-color: #5d9ca0;
    border-style: inset;
}

.voting_image_president {
    border-radius: 20px;
    margin-bottom: 1rem;
    max-width: 130px;
    border-color: #1e90ff;
    border-style: inset;
}

@media only screen and (min-width: 576px) {
    .voting_image_president {
        max-width: 200px;
    }
    .voting_image_chancellor {
        max-width: 200px;
    }
}

.grid-container_policy_president {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    padding: 1px;
}

.grid-container_policy_chancellor {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    padding: 1px;
}

/*Div holding discarded and non-discarded policies*/
.policydiv {
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-align: center;
}

.policystatus {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    float: left;
    align-items: center;
}

.policycard {
    max-width: 60%;
}

@media only screen and (min-width: 576px) {
    .policycard {
        max-width: 80%;
    }
}
 

/*Namegrid*/
.grid_text {
    text-align: center;
    margin: 0px;
    font-size: 13px;
    max-width:300px;
}

@media only screen and (min-width: 1180px) {
    .grid_text {
        max-width: 600px;
        font-size: 16px;
    }
}

.grid_image {
    border-radius: 20px;
    margin-bottom: 1rem;
    height: 100px;
    width: 100px;
    border-color: black;
    border-width: 5px;
    border-style: inset;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
}

.grid_image:hover {
    filter: drop-shadow(0 0 0.75rem #757575);
}

.grid_policy_image {
    margin-top: 0.5rem;
    height: 100px;
}

.grid_policy_image:hover {
    filter: drop-shadow(0 0 0.75rem #757575);
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    padding: 1px;
}

@media only screen and (min-width: 1180px) {
    .grid-container {
        grid-template-columns: auto auto auto auto auto;
        padding: 10px;
    }
}

.grid-container_choose_chancellor{
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    padding: 1px;
    grid-gap: 10px;
}

.grid-container-voting {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    padding: 1px;
    grid-gap: 10px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-items: center;
}

.grid_image_voting {
    border-radius: 10px;
    margin-bottom: 1rem;
    width: 140px;
}

.grid_image_voting:hover {
    filter: drop-shadow(0 0 0.75rem #757575);
}

@media only screen and (min-width: 1180px) {
    .grid_image_voting {
        width: 180px;
    }
}