/*---------------------------------------------------------
   Austin Lovell
   IST239-W01
   Final Exam Project
   styles.css
---------------------------------------------------------*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f2f4f7;
    color:#333;
    line-height:1.6;
}


/*---------------------------------------------------------
   Header
---------------------------------------------------------*/

header{
    background:#003366;
    color:white;
    text-align:center;
    padding:35px 20px;
}

.profile-pic{
    width:160px;
    height:160px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid white;
    margin-bottom:15px;
}

header h1{
    margin-bottom:10px;
    font-size:2.2em;
}

header p{
    margin:6px 0;
}

header a{
    color:white;
    text-decoration:none;
}

header a:hover{
    text-decoration:underline;
}


/*---------------------------------------------------------
   Navigation
---------------------------------------------------------*/

nav{
    background:#0d4f8b;
    color:white;
    text-align:center;
    padding:20px;
}

nav h2{
    color:white;
    margin-bottom:10px;
}

nav label{
    display:block;
    margin-bottom:10px;
}

nav select{
    width:320px;
    max-width:90%;
    padding:10px;
    margin-bottom:15px;
    border-radius:5px;
    border:none;
}

nav button{
    padding:10px 25px;
    background:white;
    color:#003366;
    border:none;
    border-radius:5px;
    cursor:pointer;
    font-weight:bold;
}

nav button:hover{
    background:#dfeeff;
}


/*---------------------------------------------------------
   Three Column Layout
---------------------------------------------------------*/

main{
    display:flex;
    gap:20px;
    padding:20px;
    align-items:flex-start;
}

#leftColumn{
    flex:1;
}

#centerColumn{
    flex:2;
}

#rightColumn{
    flex:1;
}


/*---------------------------------------------------------
   Sections
---------------------------------------------------------*/

section{
    background:white;
    margin-bottom:20px;
    padding:20px;
    border-radius:8px;
    box-shadow:0 3px 8px rgba(0,0,0,.15);
}

h2{
    color:#003366;
    margin-bottom:15px;
}

h3{
    margin-bottom:10px;
}


/*---------------------------------------------------------
   Project List
---------------------------------------------------------*/

.project{
    border-bottom:1px solid #ddd;
    padding:15px 0;
}

.project:last-child{
    border-bottom:none;
}

.project a{
    color:#003366;
    font-weight:bold;
    text-decoration:none;
}

.project a:hover{
    text-decoration:underline;
}


/*---------------------------------------------------------
   Interactive Graphic
---------------------------------------------------------*/

#graphicArea{
    position:relative;
    height:180px;
    margin:20px 0;
    border:2px solid #003366;
    overflow:hidden;
    background:#f8fbff;
}

#graphicObject{
    position:absolute;
    left:20px;
    top:45px;

    width:80px;
    height:80px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#003366;
    color:white;

    font-size:24px;
    font-weight:bold;

    border-radius:10px;
}

.buttonGroup{
    text-align:center;
}

.buttonGroup button{
    margin:6px;
    padding:10px 18px;
    cursor:pointer;
}


/*---------------------------------------------------------
   Target Game
---------------------------------------------------------*/

#gameArea{
    position:relative;
    width:100%;
    height:300px;
    margin-top:20px;
    border:2px solid #003366;
    background:#eef6ff;
    overflow:hidden;
}

#targetButton{
    position:absolute;
    top:120px;
    left:120px;
    padding:10px 18px;
    cursor:pointer;
}


/*---------------------------------------------------------
   News Blog
---------------------------------------------------------*/

article{
    margin-bottom:25px;
    padding-bottom:15px;
    border-bottom:1px solid #ddd;
}

article:last-child{
    border-bottom:none;
}

.newsDate{
    color:#666;
    font-style:italic;
    margin-bottom:10px;
}


/*---------------------------------------------------------
   Calculator
---------------------------------------------------------*/

#calculatorForm{
    display:flex;
    flex-direction:column;
}

#calculatorForm label{
    margin-top:12px;
}

#calculatorForm input{
    padding:10px;
    margin-top:5px;
}

#calculatorForm button{
    margin-top:20px;
    padding:12px;
    cursor:pointer;
}

#calculatorOutput{
    margin-top:20px;
    padding:15px;
    background:#eef4ff;
    border-left:5px solid #003366;
    border-radius:5px;
    font-weight:bold;
}


/*---------------------------------------------------------
   Course Information
---------------------------------------------------------*/

#courseInfo p{
    margin-bottom:10px;
}


/*---------------------------------------------------------
   Footer
---------------------------------------------------------*/

footer{
    background:#003366;
    color:white;
    text-align:center;
    padding:25px;
}

footer p{
    margin:5px 0;
}


/*---------------------------------------------------------
   Responsive Layout
---------------------------------------------------------*/

@media (max-width:900px){

    main{
        flex-direction:column;
    }

    nav select{
        width:100%;
    }

}