body {
    background-color: rgb(241, 241, 241);
    font-family: Arial, Helvetica, sans-serif;
}

.head {
    text-align: center;
}

.container {
    margin-left: 10px;
    margin-right: 10px;
    margin: auto;
}

@media (min-width: 1201px){
    .grid {
        display: grid;
        grid-template-areas: "a b c d e";
        grid-template-columns: repeat(5, 1fr);
        justify-content: center;
    }
}

@media (max-width: 1200px){
    .grid {
        display: grid;
        grid-template-areas: "a b c";
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
}

@media (max-width: 900px){
    .grid {
        display: grid;
        grid-template-areas: "a b";
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
}

@media (max-width: 600px){
    .grid {
        display: grid;
        grid-template-areas: "a";
        grid-template-columns: repeat(1, 1fr);
        justify-content: center;
    }
}

.sitebox {
    margin: 5px;
    border-radius: 0.15rem;
    background-color: d9d9d9;
    min-width: 0;
    max-width: 480px;
    /*box-shadow: 0.1rem 0.1rem 0.3rem;*/
}

.sitebox > .sitehead {
    text-align: left;
    width: 100% - 10px;
    font-size: 1.3rem;
    margin-left: 5px;
    margin-right: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 5px;
}

.sitebox > .sitehead > .sitetitle {
    display: inline-block;
    font-weight: bold;
    box-sizing: border-box;
    width: 100%;
    border-right: none;
    text-align: left;
    height: 100%;
    /*background-color: lightseagreen;
    color: white;*/
    color: #3d6aa1;
    vertical-align: middle;
    white-space: nowrap;
    height: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3rem;
}

.sitebox > .sitehead > .sitetitle:hover {
    /* background-color: green; */
}

.sitebox > .sitehead > .siteremove {
    display: inline-block;
    box-sizing: border-box;
    text-align: right;
    width: 20%;
    height: 25px;
    /*background-color: lightcoral;
    color: white;*/
    color: black;
    vertical-align: middle;
}

.sitebox > .sitehead > .siteremove:hover{
    /*background-color: red;*/
}

.sitebox > .sitehead > .siteremove > i {
    font-size: 1.2em;
}

.sitebox > ul {
    list-style: none;
    padding-inline-start: 0.5rem;
    margin-block-start: 0.4rem;
    width: 100%;
    
}

.sitebox > ul > li {
    min-width: 0px;
    line-height: 1.3rem;
}

.sitebox > ul > li > a {
    display: inline-block;
    color: black;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100% - 40px);
}

.sitebox > ul > li > a:hover {
    text-decoration: underline;
}

.sitebox > ul > li > .linkicon {
    width: 25px;
    font-size: 1.2rem;
}

.data {
    display: none;
}

.closePopup {
    position: absolute;
    text-decoration: none;
    color: red;
    left: -20px;
    top: 0px;
    background-color: bisque;
    border-top-left-radius: 35%;
    border-bottom-left-radius: 35%;
}

#popup {
    display: none;
    position: fixed;
    width: 80%;
    height: 80%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

#popupContent {
    background-color: bisque;
    border-radius: 0.3rem;
    font-family: Arial, Helvetica, sans-serif;
    overflow: none;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    height: 100%;
    
    
    padding: 7px;
    box-shadow: 0.1rem 0.1rem 0.3rem;
    white-space: normal;
    overflow-y: scroll;
    border-color: black;
}

.head {
    font-size: 1rem;
    vertical-align: middle;
}

.head > div {
    display: inline-block;
}

.head input {
    vertical-align: middle;
    height: 25px;
}

.head label {
    vertical-align: middle;
}

.button {
    border: none;
    text-decoration: none;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
    box-sizing: border-box;
    border-radius: 0.3rem;
    width: 55px;
    height: 25px;
}

.yellow {
    background-color: darkgoldenrod;
    color: white;
}

.addbutton { 
    border: none;
    background-color: lightseagreen;
    color: white;
    text-decoration: none;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
    box-sizing: border-box;
    border-top-right-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
    margin-left: 0;
    width: 55px;
    height: 25px;
}

.addbutton:hover {
    background-color: green;
}


.addbutton > i{ 
    line-height: 1rem;
    vertical-align: middle;
}

.sitebox > .head > input[type=text] {
    margin-right: 0;
}
