* {
    margin: 0px;
}

body {
    background-color: darkslateblue;
    overflow-y: hidden; 
    overflow-x: hidden; 
}

.container {
    display:grid;
    height:100vh;
    grid-template-columns: auto 400px auto;
    grid-template-rows: auto 750px auto ;  /* updated 9-19-2026 */
    grid-template-areas:
    "nav nav nav"
    "sidebar1 main sidebar2"
    "footer footer footer";   
    grid-gap: 0.2rem;
}

nav {
    background-color:#222428;
    grid-area:nav;
}

main {
    height: 100%;
    width: 100%;
    grid-area:main;
    /*background-color:rgb(190, 76, 0);*/
    background-image:linear-gradient(315deg, rgb(190, 76, 0), #a900ff);
    border-radius: 20px;
    border: 4px solid darkred;
}

footer {
    height: 0px;    /* updated 9-19-2026 */
    background-color:#222428;
    grid-area:footer;
}

#sidebar1 {
    background-color:black;
    grid-area:sidebar1;
}

#sidebar2 {
    background-color:black;
    grid-area:sidebar2;
}

/* CALCULATOR -------------------------------------------------*/
#calculator {
    background-color: #db197c;
    height:92%;
    width:80%;
    text-align: center;
    /*border: 1px solid darkred; */
    border: 2px solid rgb(84, 50, 205);
    border-radius: 20px;
    margin-left:auto;   /* centered */
    margin-right:auto;
    margin-top: 1rem;   /* vertical alignment */
    margin-bottom: 1rem;
    overflow: clip;
}

#marquee {
    /* vertical-align: middle; */
    height: 30%;
}

#marqueImage {
    max-width: 350px;
    
}

#moreGamesButton {
    position: absolute;
    width:5%;
    margin-top: -8%;
    border-radius: 10px;
}

#orangeLogo {
    background: url("./orange.png");
    background-size: 100% 100%;
    width:4.5rem;
    height:4.5rem;

    float:right;
    display:block;

    position:absolute;
    z-index: 0;

    margin-top:-2.5rem;
    margin-left:-1rem;

    border-radius: 50px;
    box-shadow: 2px 2px 10px black;
}

#orangeLogo:hover {
    transform: scale(1.1);
}

#logoText {
    color: orange;
    font-family: sans-serif;
    text-shadow: 2px 2px 5px black;

    position:relative;
    z-index: 1;
}

#logoText:hover {
    color: orchid;
}

#output {
    max-width: 300px;   /* prevents input text from increasing width of a div */
    border-radius: 10px;

    height:50%;
    margin-top: 0px;
    margin-bottom: 0px;
    background-image: linear-gradient( rgb(0, 0, 0), rgb(41, 0, 46));
    box-shadow: inset 0px 0px 0px 4px darkred;
    border: 5px solid brown;

    overflow-x:auto;    /* automatically places a horizontal scroll bar */
    text-overflow: ellipsis;
}

#outputText {
    
    color:coral;
    font-family:fantasy;
    font-size:4rem;
    
}

#buttons { /* switched this from table div to row, this affects entire row */
    height: 100%;
    border-spacing: 0.5rem;
    /* background-color: rgb(190, 76, 0);*/
    /*background-image:linear-gradient(rgb(47, 85, 11), olive);*/
    /*background-color:#55af0c;*/
    background-image:linear-gradient(#af970c, rgb(167, 0, 167));
    
}

.button {
    width:0px;  /* don't want squashed oranges! */

    /* color:burlywood; */ /* beige like*/
    /* color:#00FF00; */
    color:rgb(235, 221, 97);
    text-shadow: 3px 3px 10px black;
    text-align: center;
    vertical-align: middle;
    border: 1px darkred solid;
    border-radius: 60px;
    background: url("./orangeHalf.jpg");
    
    background-size: 100% 100%;
                        
    box-shadow: 2px 2px 10px 2px black;
    margin-left: 0.5rem;

}

.button:hover {
    transform: scale(0.90);
    box-shadow: 1px 1px 5px black;
}

#details {
    height: 5%;
    background-image:linear-gradient(#b10a6b, rgb(11, 34, 85));
    border: 1px solid green;
    vertical-align: middle;
    box-shadow: 0px 2px 5px darkred;
}

#detailsText {
    font-family: monospace;
    color: darkorange;
    text-shadow: 1px 1px 5px black;
}

ion-icon {
    height: 2rem;
    width: 2rem;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
  }

/* --------------------------------------------------------------*/

.table {
    width:100%;
    height:100%;
    display: table;
}

.row {
    display: table-row;
}

.cell {
    display: table-cell;
}

#buttons {
    border: 1px black solid;
}

@media screen and (min-height:750px) and (max-width:500px)  {
    .container {
        grid-template-columns:1fr;
        grid-template-rows: 0px 1fr 0px 0px 0px;
        grid-template-areas:
        "nav"
        "main"
        "footer";
    }

    /*
    #buttons {
        border-spacing: 1px 0.9rem;
    }
    */
    
    #calculator {
        background-image: linear-gradient(#db197c, rgb(39 66 13));
    }
}

@media screen and (max-width:650px) {
    .container {
        grid-template-columns:1fr;
        grid-template-rows: 0px 1fr 0px 0px 0px;
        grid-template-areas:
        "nav"
        "main"
        "footer";
    }
}

